LCOV - code coverage report
Current view: top level - /mnt/build/buildbot/bld/build-lcov/gcc - generic-match-7.cc (source / functions) Coverage Total Hit
Test: gcc.info Lines: 49.4 % 6727 3321
Test Date: 2025-12-13 14:10:19 Functions: 67.2 % 64 43
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: - 0 0

             Branch data     Line data    Source code
       1                 :             : /* Generated automatically by the program `genmatch' from
       2                 :             :    a IL pattern matching and simplification description.  */
       3                 :             : #pragma GCC diagnostic push
       4                 :             : #pragma GCC diagnostic ignored "-Wunused-variable"
       5                 :             : #pragma GCC diagnostic ignored "-Wunused-function"
       6                 :             : 
       7                 :             : #include "generic-match-auto.h"
       8                 :             : 
       9                 :             : bool
      10                 :    99282504 : tree_maybe_cmp (tree t, tree *res_ops)
      11                 :             : {
      12                 :    99282504 :   const tree type = TREE_TYPE (t);
      13                 :    99282504 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
      14                 :    99282504 :   if (TREE_SIDE_EFFECTS (t)) return false;
      15                 :    99282504 :   switch (TREE_CODE (t))
      16                 :             :     {
      17                 :      412521 :     case LT_EXPR:
      18                 :      412521 :     case LE_EXPR:
      19                 :      412521 :     case EQ_EXPR:
      20                 :      412521 :     case NE_EXPR:
      21                 :      412521 :     case GE_EXPR:
      22                 :      412521 :     case GT_EXPR:
      23                 :      412521 :     case UNORDERED_EXPR:
      24                 :      412521 :     case ORDERED_EXPR:
      25                 :      412521 :     case UNLT_EXPR:
      26                 :      412521 :     case UNLE_EXPR:
      27                 :      412521 :     case UNGT_EXPR:
      28                 :      412521 :     case UNGE_EXPR:
      29                 :      412521 :     case UNEQ_EXPR:
      30                 :      412521 :     case LTGT_EXPR:
      31                 :      412521 :       {
      32                 :      412521 :         tree _p0 = TREE_OPERAND (t, 0);
      33                 :      412521 :         tree _p1 = TREE_OPERAND (t, 1);
      34                 :      412521 :         {
      35                 :      412521 :           tree captures[3] ATTRIBUTE_UNUSED = { t, _p0, _p1 };
      36                 :      412521 :           {
      37                 :      412521 :             res_ops[0] = captures[0];
      38                 :      412521 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 5, __FILE__, __LINE__, false);
      39                 :      412521 :             return true;
      40                 :             :           }
      41                 :             :         }
      42                 :    17071237 :         break;
      43                 :             :       }
      44                 :    17071237 :     CASE_CONVERT:
      45                 :    17071237 :       {
      46                 :    17071237 :         tree _p0 = TREE_OPERAND (t, 0);
      47                 :    17071237 :         switch (TREE_CODE (_p0))
      48                 :             :           {
      49                 :        1425 :           case LT_EXPR:
      50                 :        1425 :           case LE_EXPR:
      51                 :        1425 :           case EQ_EXPR:
      52                 :        1425 :           case NE_EXPR:
      53                 :        1425 :           case GE_EXPR:
      54                 :        1425 :           case GT_EXPR:
      55                 :        1425 :           case UNORDERED_EXPR:
      56                 :        1425 :           case ORDERED_EXPR:
      57                 :        1425 :           case UNLT_EXPR:
      58                 :        1425 :           case UNLE_EXPR:
      59                 :        1425 :           case UNGT_EXPR:
      60                 :        1425 :           case UNGE_EXPR:
      61                 :        1425 :           case UNEQ_EXPR:
      62                 :        1425 :           case LTGT_EXPR:
      63                 :        1425 :             {
      64                 :        1425 :               tree _q20 = TREE_OPERAND (_p0, 0);
      65                 :        1425 :               tree _q21 = TREE_OPERAND (_p0, 1);
      66                 :        1425 :               {
      67                 :        1425 :                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
      68                 :        1425 :                 if (tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
      69                 :             : )
      70                 :             :                   {
      71                 :         762 :                     {
      72                 :         762 :                       res_ops[0] = captures[0];
      73                 :         762 :                       if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 6, __FILE__, __LINE__, false);
      74                 :         762 :                       return true;
      75                 :             :                     }
      76                 :             :                   }
      77                 :             :               }
      78                 :             :               break;
      79                 :             :             }
      80                 :             :           default:;
      81                 :             :           }
      82                 :             :         break;
      83                 :             :       }
      84                 :       79537 :     case BIT_XOR_EXPR:
      85                 :       79537 :       {
      86                 :       79537 :         tree _p0 = TREE_OPERAND (t, 0);
      87                 :       79537 :         tree _p1 = TREE_OPERAND (t, 1);
      88                 :       79537 :         {
      89                 :       79537 :           tree captures[3] ATTRIBUTE_UNUSED = { t, _p0, _p1 };
      90                 :       79537 :           if (INTEGRAL_TYPE_P (type)
      91                 :       79537 :  && TYPE_PRECISION (type) == 1
      92                 :             : )
      93                 :             :             {
      94                 :       35510 :               {
      95                 :       35510 :                 res_ops[0] = captures[0];
      96                 :       35510 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 7, __FILE__, __LINE__, false);
      97                 :       35510 :                 return true;
      98                 :             :               }
      99                 :             :             }
     100                 :             :         }
     101                 :             :         break;
     102                 :             :       }
     103                 :             :     default:;
     104                 :             :     }
     105                 :             :   return false;
     106                 :             : }
     107                 :             : 
     108                 :             : bool
     109                 :           0 : tree_float_value_p (tree t)
     110                 :             : {
     111                 :           0 :   const tree type = TREE_TYPE (t);
     112                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     113                 :           0 :   if (TREE_SIDE_EFFECTS (t)) return false;
     114                 :           0 :   {
     115                 :           0 :     tree captures[1] ATTRIBUTE_UNUSED = { t };
     116                 :           0 :     if (TYPE_MAIN_VARIANT (TREE_TYPE (captures[0])) == float_type_node
     117                 :             : )
     118                 :             :       {
     119                 :           0 :         {
     120                 :           0 :           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 45, __FILE__, __LINE__, false);
     121                 :           0 :           return true;
     122                 :             :         }
     123                 :             :       }
     124                 :             :   }
     125                 :             :   return false;
     126                 :             : }
     127                 :             : 
     128                 :             : tree
     129                 :       71264 : generic_simplify_7 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
     130                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
     131                 :             :  const enum tree_code ARG_UNUSED (op))
     132                 :             : {
     133                 :       71264 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     134                 :       71264 :   {
     135                 :       71264 :  bool wascmp0, wascmp1;
     136                 :       71264 :       if (bitwise_inverted_equal_p (captures[1], captures[3], wascmp0)
     137                 :        1178 :  && bitwise_inverted_equal_p (captures[0], captures[2], wascmp1)
     138                 :       71268 :  && ((!wascmp0 && !wascmp1)
     139                 :           0 :  || element_precision (type) == 1)
     140                 :             : )
     141                 :             :         {
     142                 :           4 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail79;
     143                 :           4 :           {
     144                 :           4 :             tree res_op0;
     145                 :           4 :             res_op0 = captures[0];
     146                 :           4 :             tree res_op1;
     147                 :           4 :             res_op1 = captures[3];
     148                 :           4 :             tree _r;
     149                 :           4 :             _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
     150                 :           4 :             if (TREE_SIDE_EFFECTS (captures[1]))
     151                 :           0 :               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
     152                 :           4 :             if (TREE_SIDE_EFFECTS (captures[2]))
     153                 :           0 :               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
     154                 :           4 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 56, __FILE__, __LINE__, true);
     155                 :           4 :             return _r;
     156                 :             :           }
     157                 :           0 : next_after_fail79:;
     158                 :             :         }
     159                 :             :   }
     160                 :       71260 :   return NULL_TREE;
     161                 :             : }
     162                 :             : 
     163                 :             : tree
     164                 :     3068181 : generic_simplify_17 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
     165                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
     166                 :             :  const enum tree_code ARG_UNUSED (inner_op),
     167                 :             :  const enum tree_code ARG_UNUSED (neg_inner_op),
     168                 :             :  const enum tree_code ARG_UNUSED (outer_op))
     169                 :             : {
     170                 :     3068181 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     171                 :     3068181 :   if (!TYPE_SATURATING (type)
     172                 :             : )
     173                 :             :     {
     174                 :     3068181 :       if ((!FLOAT_TYPE_P (type) || flag_associative_math)
     175                 :     6136112 :  && !FIXED_POINT_TYPE_P (type)
     176                 :             : )
     177                 :             :         {
     178                 :     3067931 :           if (!ANY_INTEGRAL_TYPE_P (type) || TYPE_OVERFLOW_WRAPS (type)
     179                 :             : )
     180                 :             :             {
     181                 :     2035235 :               if (!CONSTANT_CLASS_P (captures[0])
     182                 :             : )
     183                 :             :                 {
     184                 :     2035228 :                   if (outer_op == PLUS_EXPR
     185                 :             : )
     186                 :             :                     {
     187                 :     2035228 :                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail89;
     188                 :     2035228 :                       {
     189                 :     2035228 :                         tree res_op0;
     190                 :     2035228 :                         {
     191                 :     2035228 :                           tree _o1[1], _r1;
     192                 :     2035228 :                           _o1[0] = captures[0];
     193                 :     2035228 :                           if (TREE_TYPE (_o1[0]) != type)
     194                 :             :                             {
     195                 :      836369 :                               _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o1[0]);
     196                 :             :                             }
     197                 :             :                           else
     198                 :             :                             _r1 = _o1[0];
     199                 :     2035228 :                           res_op0 = _r1;
     200                 :             :                         }
     201                 :     2035228 :                         tree res_op1;
     202                 :     2035228 :                         {
     203                 :     2035228 :                           tree _o1[2], _r1;
     204                 :     2035228 :                           _o1[0] = captures[2];
     205                 :     2035228 :                           {
     206                 :     2035228 :                             tree _o2[1], _r2;
     207                 :     2035228 :                             _o2[0] = captures[1];
     208                 :     2035228 :                             if (TREE_TYPE (_o2[0]) != type)
     209                 :             :                               {
     210                 :      830008 :                                 _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o2[0]);
     211                 :             :                               }
     212                 :             :                             else
     213                 :             :                               _r2 = _o2[0];
     214                 :     2035228 :                             _o1[1] = _r2;
     215                 :             :                           }
     216                 :     2035228 :                           _r1 = fold_build2_loc (loc, inner_op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
     217                 :     2035228 :                           if (EXPR_P (_r1))
     218                 :           0 :                             goto next_after_fail89;
     219                 :     2035228 :                           res_op1 = _r1;
     220                 :             :                         }
     221                 :     2035228 :                         tree _r;
     222                 :     2035228 :                         _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
     223                 :     2035228 :                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 66, __FILE__, __LINE__, true);
     224                 :     2035228 :                         return _r;
     225                 :             :                       }
     226                 :             : next_after_fail89:;
     227                 :             :                     }
     228                 :             :                   else
     229                 :             :                     {
     230                 :           0 :                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail90;
     231                 :           0 :                       {
     232                 :           0 :                         tree res_op0;
     233                 :           0 :                         {
     234                 :           0 :                           tree _o1[1], _r1;
     235                 :           0 :                           _o1[0] = captures[0];
     236                 :           0 :                           if (TREE_TYPE (_o1[0]) != type)
     237                 :             :                             {
     238                 :           0 :                               _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o1[0]);
     239                 :             :                             }
     240                 :             :                           else
     241                 :             :                             _r1 = _o1[0];
     242                 :           0 :                           res_op0 = _r1;
     243                 :             :                         }
     244                 :           0 :                         tree res_op1;
     245                 :           0 :                         {
     246                 :           0 :                           tree _o1[2], _r1;
     247                 :           0 :                           _o1[0] = captures[2];
     248                 :           0 :                           {
     249                 :           0 :                             tree _o2[1], _r2;
     250                 :           0 :                             _o2[0] = captures[1];
     251                 :           0 :                             if (TREE_TYPE (_o2[0]) != type)
     252                 :             :                               {
     253                 :           0 :                                 _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o2[0]);
     254                 :             :                               }
     255                 :             :                             else
     256                 :             :                               _r2 = _o2[0];
     257                 :           0 :                             _o1[1] = _r2;
     258                 :             :                           }
     259                 :           0 :                           _r1 = fold_build2_loc (loc, neg_inner_op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
     260                 :           0 :                           if (EXPR_P (_r1))
     261                 :           0 :                             goto next_after_fail90;
     262                 :           0 :                           res_op1 = _r1;
     263                 :             :                         }
     264                 :           0 :                         tree _r;
     265                 :           0 :                         _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
     266                 :           0 :                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 67, __FILE__, __LINE__, true);
     267                 :           0 :                         return _r;
     268                 :             :                       }
     269                 :             : next_after_fail90:;
     270                 :             :                     }
     271                 :             :                 }
     272                 :             :             }
     273                 :             :           else
     274                 :             :             {
     275                 :     2065392 :               if (!ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
     276                 :     2065392 :  || TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[0]))
     277                 :             : )
     278                 :             :                 {
     279                 :      235730 :                   if (outer_op == PLUS_EXPR
     280                 :             : )
     281                 :             :                     {
     282                 :      235730 :                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail91;
     283                 :      235730 :                       {
     284                 :      235730 :                         tree res_op0;
     285                 :      235730 :                         {
     286                 :      235730 :                           tree _o1[2], _r1;
     287                 :      235730 :                           _o1[0] = captures[0];
     288                 :      235730 :                           {
     289                 :      235730 :                             tree _o2[2], _r2;
     290                 :      235730 :                             {
     291                 :      235730 :                               tree _o3[1], _r3;
     292                 :      235730 :                               _o3[0] = captures[2];
     293                 :      235730 :                               if (TREE_TYPE (_o3[0]) != TREE_TYPE (_o1[0]))
     294                 :             :                                 {
     295                 :      235730 :                                   _r3 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, TREE_TYPE (_o1[0]), _o3[0]);
     296                 :             :                                 }
     297                 :             :                               else
     298                 :             :                                 _r3 = _o3[0];
     299                 :      235730 :                               _o2[0] = _r3;
     300                 :             :                             }
     301                 :      235730 :                             _o2[1] = captures[1];
     302                 :      235730 :                             _r2 = fold_build2_loc (loc, inner_op, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
     303                 :      235730 :                             if (EXPR_P (_r2))
     304                 :           0 :                               goto next_after_fail91;
     305                 :      235730 :                             _o1[1] = _r2;
     306                 :             :                           }
     307                 :      235730 :                           _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
     308                 :      235730 :                           res_op0 = _r1;
     309                 :             :                         }
     310                 :      235730 :                         tree _r;
     311                 :      235730 :                         _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
     312                 :      235730 :                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 68, __FILE__, __LINE__, true);
     313                 :      235730 :                         return _r;
     314                 :             :                       }
     315                 :             : next_after_fail91:;
     316                 :             :                     }
     317                 :             :                   else
     318                 :             :                     {
     319                 :           0 :                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail92;
     320                 :           0 :                       {
     321                 :           0 :                         tree res_op0;
     322                 :           0 :                         {
     323                 :           0 :                           tree _o1[2], _r1;
     324                 :           0 :                           _o1[0] = captures[0];
     325                 :           0 :                           {
     326                 :           0 :                             tree _o2[2], _r2;
     327                 :           0 :                             {
     328                 :           0 :                               tree _o3[1], _r3;
     329                 :           0 :                               _o3[0] = captures[2];
     330                 :           0 :                               if (TREE_TYPE (_o3[0]) != TREE_TYPE (_o1[0]))
     331                 :             :                                 {
     332                 :           0 :                                   _r3 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, TREE_TYPE (_o1[0]), _o3[0]);
     333                 :             :                                 }
     334                 :             :                               else
     335                 :             :                                 _r3 = _o3[0];
     336                 :           0 :                               _o2[0] = _r3;
     337                 :             :                             }
     338                 :           0 :                             _o2[1] = captures[1];
     339                 :           0 :                             _r2 = fold_build2_loc (loc, neg_inner_op, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
     340                 :           0 :                             if (EXPR_P (_r2))
     341                 :           0 :                               goto next_after_fail92;
     342                 :           0 :                             _o1[1] = _r2;
     343                 :             :                           }
     344                 :           0 :                           _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
     345                 :           0 :                           res_op0 = _r1;
     346                 :             :                         }
     347                 :           0 :                         tree _r;
     348                 :           0 :                         _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
     349                 :           0 :                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 69, __FILE__, __LINE__, true);
     350                 :           0 :                         return _r;
     351                 :             :                       }
     352                 :             : next_after_fail92:;
     353                 :             :                     }
     354                 :             :                 }
     355                 :             :               else
     356                 :             :                 {
     357                 :      796966 :                   if (types_match (type, captures[0]) && !TYPE_OVERFLOW_SANITIZED (type)
     358                 :             : )
     359                 :             :                     {
     360                 :      795735 :                       {
     361                 :      795735 :  tree cst = const_binop (outer_op == inner_op
     362                 :             :  ? PLUS_EXPR : MINUS_EXPR,
     363                 :             :  type, captures[1], captures[2]);
     364                 :      795735 :                           if (cst
     365                 :             : )
     366                 :             :                             {
     367                 :      795735 :                               if (INTEGRAL_TYPE_P (type) && !TREE_OVERFLOW (cst)
     368                 :             : )
     369                 :             :                                 {
     370                 :      795721 :                                   if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail93;
     371                 :      795721 :                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail93;
     372                 :      795721 :                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail93;
     373                 :      795721 :                                   {
     374                 :      795721 :                                     tree res_op0;
     375                 :      795721 :                                     res_op0 = captures[0];
     376                 :      795721 :                                     tree res_op1;
     377                 :      795721 :                                     res_op1 =  cst;
     378                 :      795721 :                                     tree _r;
     379                 :      795721 :                                     _r = fold_build2_loc (loc, inner_op, type, res_op0, res_op1);
     380                 :      795721 :                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 70, __FILE__, __LINE__, true);
     381                 :      795721 :                                     return _r;
     382                 :             :                                   }
     383                 :             : next_after_fail93:;
     384                 :             :                                 }
     385                 :             :                               else
     386                 :             :                                 {
     387                 :          28 :                                   if (INTEGRAL_TYPE_P (type)
     388                 :          28 :  && wi::to_wide (cst) == wi::min_value (type)
     389                 :             : )
     390                 :             :                                     {
     391                 :           7 :                                       if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail94;
     392                 :           7 :                                       if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail94;
     393                 :           7 :                                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail94;
     394                 :           7 :                                       {
     395                 :           7 :                                         tree res_op0;
     396                 :           7 :                                         res_op0 = captures[0];
     397                 :           7 :                                         tree res_op1;
     398                 :           7 :                                         res_op1 =  wide_int_to_tree (type, wi::to_wide (cst));
     399                 :           7 :                                         tree _r;
     400                 :           7 :                                         _r = fold_build2_loc (loc, neg_inner_op, type, res_op0, res_op1);
     401                 :           7 :                                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 71, __FILE__, __LINE__, true);
     402                 :           7 :                                         return _r;
     403                 :             :                                       }
     404                 :             : next_after_fail94:;
     405                 :             :                                     }
     406                 :             :                                   else
     407                 :             :                                     {
     408                 :           7 :                                       {
     409                 :           7 :  tree utype = unsigned_type_for (type);
     410                 :           7 :                                           if (utype
     411                 :             : )
     412                 :             :                                             {
     413                 :           7 :                                               if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail95;
     414                 :           7 :                                               if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail95;
     415                 :           7 :                                               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail95;
     416                 :           7 :                                               {
     417                 :           7 :                                                 tree res_op0;
     418                 :           7 :                                                 {
     419                 :           7 :                                                   tree _o1[2], _r1;
     420                 :           7 :                                                   {
     421                 :           7 :                                                     tree _o2[1], _r2;
     422                 :           7 :                                                     _o2[0] = captures[0];
     423                 :           7 :                                                     if (TREE_TYPE (_o2[0]) != utype)
     424                 :             :                                                       {
     425                 :           7 :                                                         _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, utype, _o2[0]);
     426                 :             :                                                       }
     427                 :             :                                                     else
     428                 :             :                                                       _r2 = _o2[0];
     429                 :           7 :                                                     _o1[0] = _r2;
     430                 :             :                                                   }
     431                 :           7 :                                                   {
     432                 :           7 :                                                     tree _o2[1], _r2;
     433                 :           7 :                                                     _o2[0] =  TREE_OVERFLOW (cst)
     434                 :           7 :  ? drop_tree_overflow (cst) : cst;
     435                 :           7 :                                                     if (TREE_TYPE (_o2[0]) != utype)
     436                 :             :                                                       {
     437                 :           7 :                                                         _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, utype, _o2[0]);
     438                 :             :                                                       }
     439                 :             :                                                     else
     440                 :             :                                                       _r2 = _o2[0];
     441                 :           7 :                                                     _o1[1] = _r2;
     442                 :             :                                                   }
     443                 :           7 :                                                   _r1 = fold_build2_loc (loc, inner_op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
     444                 :           7 :                                                   res_op0 = _r1;
     445                 :             :                                                 }
     446                 :           7 :                                                 tree _r;
     447                 :           7 :                                                 _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
     448                 :           7 :                                                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 72, __FILE__, __LINE__, true);
     449                 :           7 :                                                 return _r;
     450                 :             :                                               }
     451                 :             : next_after_fail95:;
     452                 :             :                                             }
     453                 :             :                                       }
     454                 :             :                                     }
     455                 :             :                                 }
     456                 :             :                             }
     457                 :             :                       }
     458                 :             :                     }
     459                 :             :                 }
     460                 :             :             }
     461                 :             :         }
     462                 :             :     }
     463                 :             :   return NULL_TREE;
     464                 :             : }
     465                 :             : 
     466                 :             : tree
     467                 :          16 : generic_simplify_74 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
     468                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
     469                 :             : {
     470                 :          16 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     471                 :          32 :   if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
     472                 :          32 :  && TYPE_PRECISION (TREE_TYPE (captures[0])) == 1
     473                 :             : )
     474                 :             :     {
     475                 :           0 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail162;
     476                 :           0 :       {
     477                 :           0 :         tree res_op0;
     478                 :           0 :         res_op0 = captures[0];
     479                 :           0 :         tree res_op1;
     480                 :           0 :         {
     481                 :           0 :           tree _o1[2], _r1;
     482                 :           0 :           _o1[0] = captures[1];
     483                 :           0 :           _o1[1] =  build_one_cst (type);
     484                 :           0 :           _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
     485                 :           0 :           res_op1 = _r1;
     486                 :             :         }
     487                 :           0 :         tree _r;
     488                 :           0 :         _r = fold_build2_loc (loc, BIT_IOR_EXPR, type, res_op0, res_op1);
     489                 :           0 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 137, __FILE__, __LINE__, true);
     490                 :           0 :         return _r;
     491                 :             :       }
     492                 :           0 : next_after_fail162:;
     493                 :             :     }
     494                 :             :   return NULL_TREE;
     495                 :             : }
     496                 :             : 
     497                 :             : tree
     498                 :           0 : generic_simplify_82 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
     499                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
     500                 :             : {
     501                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     502                 :           0 :   if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail174;
     503                 :           0 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail174;
     504                 :           0 :   {
     505                 :           0 :     tree _r;
     506                 :           0 :     _r = captures[2];
     507                 :           0 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 144, __FILE__, __LINE__, true);
     508                 :             :     return _r;
     509                 :             :   }
     510                 :             : next_after_fail174:;
     511                 :             :   return NULL_TREE;
     512                 :             : }
     513                 :             : 
     514                 :             : tree
     515                 :           1 : generic_simplify_91 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
     516                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
     517                 :             : {
     518                 :           1 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     519                 :           1 :   if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail183;
     520                 :           1 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail183;
     521                 :           1 :   {
     522                 :           1 :     tree _r;
     523                 :           1 :     _r = captures[0];
     524                 :           1 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 150, __FILE__, __LINE__, true);
     525                 :             :     return _r;
     526                 :             :   }
     527                 :             : next_after_fail183:;
     528                 :             :   return NULL_TREE;
     529                 :             : }
     530                 :             : 
     531                 :             : tree
     532                 :           0 : generic_simplify_97 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
     533                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
     534                 :             :  const enum tree_code ARG_UNUSED (op))
     535                 :             : {
     536                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     537                 :           0 :   if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail189;
     538                 :           0 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail189;
     539                 :           0 :   {
     540                 :           0 :     tree _r;
     541                 :           0 :     _r = captures[0];
     542                 :           0 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 143, __FILE__, __LINE__, true);
     543                 :             :     return _r;
     544                 :             :   }
     545                 :             : next_after_fail189:;
     546                 :             :   return NULL_TREE;
     547                 :             : }
     548                 :             : 
     549                 :             : tree
     550                 :          21 : generic_simplify_105 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
     551                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
     552                 :             :  const enum tree_code ARG_UNUSED (bitop),
     553                 :             :  const enum tree_code ARG_UNUSED (rbitop))
     554                 :             : {
     555                 :          21 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     556                 :          21 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail201;
     557                 :          21 :   {
     558                 :          21 :     tree _r;
     559                 :          21 :     _r = captures[0];
     560                 :          21 :     if (TREE_SIDE_EFFECTS (captures[1]))
     561                 :           0 :       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
     562                 :          21 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 159, __FILE__, __LINE__, true);
     563                 :             :     return _r;
     564                 :             :   }
     565                 :           0 : next_after_fail201:;
     566                 :           0 :   return NULL_TREE;
     567                 :             : }
     568                 :             : 
     569                 :             : tree
     570                 :           2 : generic_simplify_108 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
     571                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
     572                 :             :  const enum tree_code ARG_UNUSED (bitop),
     573                 :             :  const enum tree_code ARG_UNUSED (rbitop))
     574                 :             : {
     575                 :           2 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     576                 :           2 :   if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail204;
     577                 :           2 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail204;
     578                 :           2 :   {
     579                 :           2 :     tree res_op0;
     580                 :           2 :     res_op0 = captures[0];
     581                 :           2 :     tree res_op1;
     582                 :           2 :     res_op1 = captures[2];
     583                 :           2 :     tree _r;
     584                 :           2 :     _r = fold_build2_loc (loc, bitop, type, res_op0, res_op1);
     585                 :           2 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 162, __FILE__, __LINE__, true);
     586                 :             :     return _r;
     587                 :             :   }
     588                 :             : next_after_fail204:;
     589                 :             :   return NULL_TREE;
     590                 :             : }
     591                 :             : 
     592                 :             : tree
     593                 :           2 : generic_simplify_113 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
     594                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
     595                 :             :  const enum tree_code ARG_UNUSED (bitop),
     596                 :             :  const enum tree_code ARG_UNUSED (rbitop))
     597                 :             : {
     598                 :           2 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     599                 :           2 :   if (bitop == BIT_AND_EXPR
     600                 :             : )
     601                 :             :     {
     602                 :           1 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail209;
     603                 :           1 :       {
     604                 :           1 :         tree _r;
     605                 :           1 :         _r =  build_zero_cst (type);
     606                 :           1 :         if (TREE_SIDE_EFFECTS (captures[0]))
     607                 :           0 :           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
     608                 :           1 :         if (TREE_SIDE_EFFECTS (captures[1]))
     609                 :           0 :           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
     610                 :           1 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 164, __FILE__, __LINE__, true);
     611                 :           1 :         return _r;
     612                 :             :       }
     613                 :           0 : next_after_fail209:;
     614                 :             :     }
     615                 :             :   else
     616                 :             :     {
     617                 :           1 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail210;
     618                 :           1 :       {
     619                 :           1 :         tree _r;
     620                 :           1 :         _r =  build_minus_one_cst (type);
     621                 :           1 :         if (TREE_SIDE_EFFECTS (captures[0]))
     622                 :           0 :           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
     623                 :           1 :         if (TREE_SIDE_EFFECTS (captures[1]))
     624                 :           0 :           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
     625                 :           1 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 165, __FILE__, __LINE__, true);
     626                 :           1 :         return _r;
     627                 :             :       }
     628                 :           0 : next_after_fail210:;
     629                 :             :     }
     630                 :             :   return NULL_TREE;
     631                 :             : }
     632                 :             : 
     633                 :             : tree
     634                 :           0 : generic_simplify_122 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
     635                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
     636                 :             :  const enum tree_code ARG_UNUSED (cmp),
     637                 :             :  const enum tree_code ARG_UNUSED (icmp))
     638                 :             : {
     639                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     640                 :           0 :   if (integer_zerop (captures[5])
     641                 :           0 :  && invert_tree_comparison (cmp, HONOR_NANS (captures[2])) == icmp
     642                 :             : )
     643                 :             :     {
     644                 :           0 :       if (integer_onep (captures[4])
     645                 :             : )
     646                 :             :         {
     647                 :           0 :           if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail221;
     648                 :           0 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail221;
     649                 :           0 :           {
     650                 :           0 :             tree res_op0;
     651                 :           0 :             {
     652                 :           0 :               tree _o1[3], _r1;
     653                 :           0 :               _o1[0] = captures[1];
     654                 :           0 :               _o1[1] = captures[6];
     655                 :           0 :               _o1[2] = captures[9];
     656                 :           0 :               _r1 = fold_build3_loc (loc, VEC_COND_EXPR, TREE_TYPE (_o1[1]), _o1[0], _o1[1], _o1[2]);
     657                 :           0 :               res_op0 = _r1;
     658                 :             :             }
     659                 :           0 :             tree res_op1;
     660                 :           0 :             res_op1 = captures[4];
     661                 :           0 :             tree _r;
     662                 :           0 :             _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
     663                 :           0 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 174, __FILE__, __LINE__, true);
     664                 :           0 :             return _r;
     665                 :             :           }
     666                 :             : next_after_fail221:;
     667                 :             :         }
     668                 :             :       else
     669                 :             :         {
     670                 :           0 :           if (integer_minus_onep (captures[4])
     671                 :             : )
     672                 :             :             {
     673                 :           0 :               if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail222;
     674                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail222;
     675                 :           0 :               {
     676                 :           0 :                 tree res_op0;
     677                 :           0 :                 res_op0 = captures[1];
     678                 :           0 :                 tree res_op1;
     679                 :           0 :                 res_op1 = captures[6];
     680                 :           0 :                 tree res_op2;
     681                 :           0 :                 res_op2 = captures[9];
     682                 :           0 :                 tree _r;
     683                 :           0 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
     684                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 175, __FILE__, __LINE__, true);
     685                 :           0 :                 return _r;
     686                 :             :               }
     687                 :             : next_after_fail222:;
     688                 :             :             }
     689                 :             :         }
     690                 :             :     }
     691                 :             :   else
     692                 :             :     {
     693                 :           0 :       if (integer_zerop (captures[4])
     694                 :           0 :  && invert_tree_comparison (cmp, HONOR_NANS (captures[2])) == icmp
     695                 :             : )
     696                 :             :         {
     697                 :           0 :           if (integer_onep (captures[5])
     698                 :             : )
     699                 :             :             {
     700                 :           0 :               if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail223;
     701                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail223;
     702                 :           0 :               {
     703                 :           0 :                 tree res_op0;
     704                 :           0 :                 {
     705                 :           0 :                   tree _o1[3], _r1;
     706                 :           0 :                   _o1[0] = captures[1];
     707                 :           0 :                   _o1[1] = captures[9];
     708                 :           0 :                   _o1[2] = captures[6];
     709                 :           0 :                   _r1 = fold_build3_loc (loc, VEC_COND_EXPR, TREE_TYPE (_o1[1]), _o1[0], _o1[1], _o1[2]);
     710                 :           0 :                   res_op0 = _r1;
     711                 :             :                 }
     712                 :           0 :                 tree res_op1;
     713                 :           0 :                 res_op1 = captures[5];
     714                 :           0 :                 tree _r;
     715                 :           0 :                 _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
     716                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 176, __FILE__, __LINE__, true);
     717                 :           0 :                 return _r;
     718                 :             :               }
     719                 :             : next_after_fail223:;
     720                 :             :             }
     721                 :             :           else
     722                 :             :             {
     723                 :           0 :               if (integer_minus_onep (captures[5])
     724                 :             : )
     725                 :             :                 {
     726                 :           0 :                   if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail224;
     727                 :           0 :                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail224;
     728                 :           0 :                   {
     729                 :           0 :                     tree res_op0;
     730                 :           0 :                     res_op0 = captures[1];
     731                 :           0 :                     tree res_op1;
     732                 :           0 :                     res_op1 = captures[9];
     733                 :           0 :                     tree res_op2;
     734                 :           0 :                     res_op2 = captures[6];
     735                 :           0 :                     tree _r;
     736                 :           0 :                     _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
     737                 :           0 :                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 177, __FILE__, __LINE__, true);
     738                 :           0 :                     return _r;
     739                 :             :                   }
     740                 :             : next_after_fail224:;
     741                 :             :                 }
     742                 :             :             }
     743                 :             :         }
     744                 :             :     }
     745                 :             :   return NULL_TREE;
     746                 :             : }
     747                 :             : 
     748                 :             : tree
     749                 :          18 : generic_simplify_145 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
     750                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
     751                 :             :  const enum tree_code ARG_UNUSED (op))
     752                 :             : {
     753                 :          18 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     754                 :          36 :   if (INTEGRAL_TYPE_P (type)
     755                 :          54 :  && (tree_nonzero_bits (captures[0]) & tree_nonzero_bits (captures[2])) == 0
     756                 :             : )
     757                 :             :     {
     758                 :           0 :       {
     759                 :           0 :  tree t = type;
     760                 :           0 :  if (!TYPE_OVERFLOW_WRAPS (t))
     761                 :           0 :  t = unsigned_type_for (t);
     762                 :           0 :  wide_int c = wi::add (wi::to_wide (captures[3]), 1);
     763                 :           0 :           if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail280;
     764                 :           0 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail280;
     765                 :           0 :           {
     766                 :           0 :             tree res_op0;
     767                 :           0 :             {
     768                 :           0 :               tree _o1[2], _r1;
     769                 :           0 :               {
     770                 :           0 :                 tree _o2[1], _r2;
     771                 :           0 :                 _o2[0] = captures[2];
     772                 :           0 :                 if (TREE_TYPE (_o2[0]) != t)
     773                 :             :                   {
     774                 :           0 :                     _r2 = fold_build1_loc (loc, NOP_EXPR, t, _o2[0]);
     775                 :             :                   }
     776                 :             :                 else
     777                 :             :                   _r2 = _o2[0];
     778                 :           0 :                 _o1[0] = _r2;
     779                 :             :               }
     780                 :           0 :               _o1[1] =  wide_int_to_tree (t, c);
     781                 :           0 :               _r1 = fold_build2_loc (loc, MULT_EXPR, t, _o1[0], _o1[1]);
     782                 :           0 :               res_op0 = _r1;
     783                 :             :             }
     784                 :           0 :             tree _r;
     785                 :           0 :             _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
     786                 :           0 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 168, __FILE__, __LINE__, true);
     787                 :           0 :             return _r;
     788                 :             :           }
     789                 :           0 : next_after_fail280:;
     790                 :           0 :       }
     791                 :             :     }
     792                 :             :   return NULL_TREE;
     793                 :             : }
     794                 :             : 
     795                 :             : tree
     796                 :           0 : generic_simplify_149 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
     797                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
     798                 :             : {
     799                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     800                 :           0 :   if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail284;
     801                 :           0 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail284;
     802                 :           0 :   {
     803                 :           0 :     tree _r;
     804                 :           0 :     _r = captures[1];
     805                 :           0 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 206, __FILE__, __LINE__, true);
     806                 :             :     return _r;
     807                 :             :   }
     808                 :             : next_after_fail284:;
     809                 :             :   return NULL_TREE;
     810                 :             : }
     811                 :             : 
     812                 :             : tree
     813                 :         589 : generic_simplify_153 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
     814                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
     815                 :             : {
     816                 :         589 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     817                 :         589 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail288;
     818                 :         589 :   {
     819                 :         589 :     if (! tree_invariant_p (captures[3])) goto next_after_fail288;
     820                 :           1 :     tree res_op0;
     821                 :           1 :     {
     822                 :           1 :       tree _o1[2], _r1;
     823                 :           1 :       _o1[0] = captures[2];
     824                 :           1 :       _o1[1] = unshare_expr (captures[3]);
     825                 :           1 :       _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
     826                 :           1 :       res_op0 = _r1;
     827                 :             :     }
     828                 :           1 :     tree res_op1;
     829                 :           1 :     {
     830                 :           1 :       tree _o1[2], _r1;
     831                 :           1 :       {
     832                 :           1 :         tree _o2[1], _r2;
     833                 :           1 :         _o2[0] = captures[4];
     834                 :           1 :         _r2 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
     835                 :           1 :         if (EXPR_P (_r2))
     836                 :           0 :           goto next_after_fail288;
     837                 :           1 :         _o1[0] = _r2;
     838                 :             :       }
     839                 :           1 :       _o1[1] = captures[3];
     840                 :           1 :       _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
     841                 :           1 :       if (EXPR_P (_r1))
     842                 :           0 :         goto next_after_fail288;
     843                 :           1 :       res_op1 = _r1;
     844                 :             :     }
     845                 :           1 :     tree _r;
     846                 :           1 :     _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
     847                 :           1 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 210, __FILE__, __LINE__, true);
     848                 :             :     return _r;
     849                 :             :   }
     850                 :             : next_after_fail288:;
     851                 :             :   return NULL_TREE;
     852                 :             : }
     853                 :             : 
     854                 :             : tree
     855                 :          11 : generic_simplify_162 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
     856                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
     857                 :             : {
     858                 :          11 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     859                 :          11 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail297;
     860                 :          11 :   {
     861                 :          11 :     tree res_op0;
     862                 :          11 :     res_op0 = captures[0];
     863                 :          11 :     tree _r;
     864                 :          11 :     _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
     865                 :          11 :     if (TREE_SIDE_EFFECTS (captures[2]))
     866                 :           0 :       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
     867                 :          11 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 219, __FILE__, __LINE__, true);
     868                 :             :     return _r;
     869                 :             :   }
     870                 :           0 : next_after_fail297:;
     871                 :           0 :   return NULL_TREE;
     872                 :             : }
     873                 :             : 
     874                 :             : tree
     875                 :           0 : generic_simplify_167 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
     876                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
     877                 :             : {
     878                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     879                 :           0 :   if (tree_nop_conversion_p (type, TREE_TYPE (captures[1]))
     880                 :           0 :  && tree_nop_conversion_p (type, TREE_TYPE (captures[2]))
     881                 :             : )
     882                 :             :     {
     883                 :           0 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail302;
     884                 :           0 :       {
     885                 :           0 :         tree res_op0;
     886                 :           0 :         {
     887                 :           0 :           tree _o1[1], _r1;
     888                 :           0 :           _o1[0] = captures[1];
     889                 :           0 :           if (TREE_TYPE (_o1[0]) != type)
     890                 :             :             {
     891                 :           0 :               _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
     892                 :             :             }
     893                 :             :           else
     894                 :             :             _r1 = _o1[0];
     895                 :           0 :           res_op0 = _r1;
     896                 :             :         }
     897                 :           0 :         tree res_op1;
     898                 :           0 :         {
     899                 :           0 :           tree _o1[1], _r1;
     900                 :           0 :           _o1[0] = captures[2];
     901                 :           0 :           if (TREE_TYPE (_o1[0]) != type)
     902                 :             :             {
     903                 :           0 :               _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
     904                 :             :             }
     905                 :             :           else
     906                 :             :             _r1 = _o1[0];
     907                 :           0 :           res_op1 = _r1;
     908                 :             :         }
     909                 :           0 :         tree _r;
     910                 :           0 :         _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
     911                 :           0 :         if (TREE_SIDE_EFFECTS (captures[0]))
     912                 :           0 :           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
     913                 :           0 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 224, __FILE__, __LINE__, true);
     914                 :           0 :         return _r;
     915                 :             :       }
     916                 :           0 : next_after_fail302:;
     917                 :             :     }
     918                 :             :   return NULL_TREE;
     919                 :             : }
     920                 :             : 
     921                 :             : tree
     922                 :           0 : generic_simplify_177 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
     923                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
     924                 :             :  const combined_fn ARG_UNUSED (COPYSIGN_ALL))
     925                 :             : {
     926                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     927                 :           0 :   if (!tree_expr_maybe_nan_p (captures[0]) && !HONOR_SIGNED_ZEROS (type)
     928                 :             : )
     929                 :             :     {
     930                 :           0 :       if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail314;
     931                 :           0 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail314;
     932                 :           0 :       {
     933                 :           0 :         tree res_op0;
     934                 :           0 :         {
     935                 :           0 :           tree _o1[1], _r1;
     936                 :           0 :           _o1[0] = captures[0];
     937                 :           0 :           _r1 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
     938                 :           0 :           res_op0 = _r1;
     939                 :             :         }
     940                 :           0 :         tree _r;
     941                 :           0 :         _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
     942                 :           0 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 233, __FILE__, __LINE__, true);
     943                 :           0 :         return _r;
     944                 :             :       }
     945                 :             : next_after_fail314:;
     946                 :             :     }
     947                 :             :   return NULL_TREE;
     948                 :             : }
     949                 :             : 
     950                 :             : tree
     951                 :        1206 : generic_simplify_186 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
     952                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
     953                 :             :  const enum tree_code ARG_UNUSED (cmp))
     954                 :             : {
     955                 :        1206 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     956                 :        1206 :   if (fold_before_rtl_expansion_p ()
     957                 :             : )
     958                 :             :     {
     959                 :           0 :       if (INTEGRAL_TYPE_P (type)
     960                 :           0 :  && INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
     961                 :             : )
     962                 :             :         {
     963                 :           0 :           if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail325;
     964                 :           0 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail325;
     965                 :           0 :           {
     966                 :           0 :             tree res_op0;
     967                 :           0 :             res_op0 = captures[0];
     968                 :           0 :             tree res_op1;
     969                 :           0 :             res_op1 = captures[3];
     970                 :           0 :             tree res_op2;
     971                 :           0 :             res_op2 =  build_zero_cst (type);
     972                 :           0 :             tree _r;
     973                 :           0 :             _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
     974                 :           0 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 241, __FILE__, __LINE__, true);
     975                 :           0 :             return _r;
     976                 :             :           }
     977                 :             : next_after_fail325:;
     978                 :             :         }
     979                 :             :     }
     980                 :             :   return NULL_TREE;
     981                 :             : }
     982                 :             : 
     983                 :             : tree
     984                 :           2 : generic_simplify_193 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
     985                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
     986                 :             :  const combined_fn ARG_UNUSED (SQRT_ALL))
     987                 :             : {
     988                 :           2 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     989                 :           2 :   if (flag_unsafe_math_optimizations
     990                 :             : )
     991                 :             :     {
     992                 :           2 :       if (!tree_expr_maybe_signaling_nan_p (captures[1])
     993                 :             : )
     994                 :             :         {
     995                 :           2 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail333;
     996                 :           2 :           {
     997                 :           2 :             tree _r;
     998                 :           2 :             _r = captures[1];
     999                 :           2 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 248, __FILE__, __LINE__, true);
    1000                 :           2 :             return _r;
    1001                 :             :           }
    1002                 :           0 : next_after_fail333:;
    1003                 :             :         }
    1004                 :             :     }
    1005                 :             :   return NULL_TREE;
    1006                 :             : }
    1007                 :             : 
    1008                 :             : tree
    1009                 :           2 : generic_simplify_199 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1010                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    1011                 :             :  const combined_fn ARG_UNUSED (POW))
    1012                 :             : {
    1013                 :           2 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1014                 :           2 :   if (flag_unsafe_math_optimizations && canonicalize_math_p ()
    1015                 :             : )
    1016                 :             :     {
    1017                 :           2 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail339;
    1018                 :           2 :       {
    1019                 :           2 :         tree res_op0;
    1020                 :           2 :         {
    1021                 :           2 :           tree _o1[2], _r1;
    1022                 :           2 :           _o1[0] = captures[1];
    1023                 :           2 :           _o1[1] = captures[4];
    1024                 :           2 :           _r1 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    1025                 :           2 :           res_op0 = _r1;
    1026                 :             :         }
    1027                 :           2 :         tree res_op1;
    1028                 :           2 :         res_op1 = captures[2];
    1029                 :           2 :         tree _r;
    1030                 :           2 :         _r = maybe_build_call_expr_loc (loc, POW, type, 2, res_op0, res_op1);
    1031                 :           2 :         if (!_r)
    1032                 :           0 :           goto next_after_fail339;
    1033                 :           2 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 254, __FILE__, __LINE__, true);
    1034                 :           2 :         return _r;
    1035                 :             :       }
    1036                 :             : next_after_fail339:;
    1037                 :             :     }
    1038                 :             :   return NULL_TREE;
    1039                 :             : }
    1040                 :             : 
    1041                 :             : tree
    1042                 :        2577 : generic_simplify_209 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1043                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    1044                 :             :  const enum tree_code ARG_UNUSED (cmp))
    1045                 :             : {
    1046                 :        2577 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1047                 :        5154 :   if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
    1048                 :        3364 :  && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
    1049                 :        4280 :  && tree_expr_nonzero_p (captures[1])
    1050                 :             : )
    1051                 :             :     {
    1052                 :          12 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail352;
    1053                 :          12 :       {
    1054                 :          12 :         tree res_op0;
    1055                 :          12 :         res_op0 = captures[0];
    1056                 :          12 :         tree res_op1;
    1057                 :          12 :         res_op1 = captures[2];
    1058                 :          12 :         tree _r;
    1059                 :          12 :         _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
    1060                 :          12 :         if (TREE_SIDE_EFFECTS (captures[1]))
    1061                 :           0 :           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1062                 :          12 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 266, __FILE__, __LINE__, true);
    1063                 :          12 :         return _r;
    1064                 :             :       }
    1065                 :           0 : next_after_fail352:;
    1066                 :             :     }
    1067                 :             :   return NULL_TREE;
    1068                 :             : }
    1069                 :             : 
    1070                 :             : tree
    1071                 :           3 : generic_simplify_217 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1072                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    1073                 :             :  const enum tree_code ARG_UNUSED (op))
    1074                 :             : {
    1075                 :           3 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1076                 :           3 :   if (tree_nop_conversion_p (TREE_TYPE (captures[1]), TREE_TYPE (captures[2]))
    1077                 :           3 :  && tree_nop_conversion_p (TREE_TYPE (captures[0]), TREE_TYPE (captures[2]))
    1078                 :           3 :  && (CONSTANT_CLASS_P (captures[3]) || (single_use (captures[1]) && single_use (captures[0])))
    1079                 :             : )
    1080                 :             :     {
    1081                 :           3 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail373;
    1082                 :           3 :       {
    1083                 :           3 :         tree res_op0;
    1084                 :           3 :         res_op0 = captures[3];
    1085                 :           3 :         tree res_op1;
    1086                 :           3 :         res_op1 =  build_zero_cst (TREE_TYPE (captures[3]));
    1087                 :           3 :         tree _r;
    1088                 :           3 :         _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
    1089                 :           3 :         if (TREE_SIDE_EFFECTS (captures[2]))
    1090                 :           0 :           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    1091                 :           3 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 283, __FILE__, __LINE__, true);
    1092                 :           3 :         return _r;
    1093                 :             :       }
    1094                 :           0 : next_after_fail373:;
    1095                 :             :     }
    1096                 :             :   return NULL_TREE;
    1097                 :             : }
    1098                 :             : 
    1099                 :             : tree
    1100                 :           0 : generic_simplify_225 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1101                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    1102                 :             :  const enum tree_code ARG_UNUSED (cmp))
    1103                 :             : {
    1104                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1105                 :           0 :   if (wi::lt_p (wi::to_wide (captures[1]), wi::to_wide (captures[2]),
    1106                 :           0 :  TYPE_SIGN (TREE_TYPE (captures[0])))
    1107                 :             : )
    1108                 :             :     {
    1109                 :           0 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail381;
    1110                 :           0 :       {
    1111                 :           0 :         tree _r;
    1112                 :           0 :         _r =  constant_boolean_node (cmp == NE_EXPR, type);
    1113                 :           0 :         if (TREE_SIDE_EFFECTS (captures[0]))
    1114                 :           0 :           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    1115                 :           0 :         if (TREE_SIDE_EFFECTS (captures[1]))
    1116                 :           0 :           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1117                 :           0 :         if (TREE_SIDE_EFFECTS (captures[2]))
    1118                 :           0 :           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    1119                 :           0 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 294, __FILE__, __LINE__, true);
    1120                 :           0 :         return _r;
    1121                 :             :       }
    1122                 :           0 : next_after_fail381:;
    1123                 :             :     }
    1124                 :             :   else
    1125                 :             :     {
    1126                 :           0 :       if (wi::gt_p (wi::to_wide (captures[1]), wi::to_wide (captures[2]),
    1127                 :           0 :  TYPE_SIGN (TREE_TYPE (captures[0])))
    1128                 :             : )
    1129                 :             :         {
    1130                 :           0 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail382;
    1131                 :           0 :           {
    1132                 :           0 :             tree res_op0;
    1133                 :           0 :             res_op0 = captures[0];
    1134                 :           0 :             tree res_op1;
    1135                 :           0 :             res_op1 = captures[2];
    1136                 :           0 :             tree _r;
    1137                 :           0 :             _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
    1138                 :           0 :             if (TREE_SIDE_EFFECTS (captures[1]))
    1139                 :           0 :               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1140                 :           0 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 295, __FILE__, __LINE__, true);
    1141                 :           0 :             return _r;
    1142                 :             :           }
    1143                 :           0 : next_after_fail382:;
    1144                 :             :         }
    1145                 :             :     }
    1146                 :             :   return NULL_TREE;
    1147                 :             : }
    1148                 :             : 
    1149                 :             : tree
    1150                 :         124 : generic_simplify_235 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1151                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    1152                 :             :  const enum tree_code ARG_UNUSED (rotate),
    1153                 :             :  const enum tree_code ARG_UNUSED (invrot),
    1154                 :             :  const enum tree_code ARG_UNUSED (cmp))
    1155                 :             : {
    1156                 :         124 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1157                 :         124 :   if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail403;
    1158                 :         124 :   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail403;
    1159                 :         124 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail403;
    1160                 :         124 :   {
    1161                 :         124 :     tree res_op0;
    1162                 :         124 :     res_op0 = captures[0];
    1163                 :         124 :     tree res_op1;
    1164                 :         124 :     res_op1 =  const_binop (invrot, TREE_TYPE (captures[0]), captures[2], captures[1]);
    1165                 :         124 :     tree _r;
    1166                 :         124 :     _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
    1167                 :         124 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 316, __FILE__, __LINE__, true);
    1168                 :             :     return _r;
    1169                 :             :   }
    1170                 :             : next_after_fail403:;
    1171                 :             :   return NULL_TREE;
    1172                 :             : }
    1173                 :             : 
    1174                 :             : tree
    1175                 :       25737 : generic_simplify_241 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1176                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    1177                 :             :  const enum tree_code ARG_UNUSED (cmp),
    1178                 :             :  const enum tree_code ARG_UNUSED (icmp),
    1179                 :             :  const enum tree_code ARG_UNUSED (ncmp))
    1180                 :             : {
    1181                 :       25737 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1182                 :       25737 :   if (types_match (type, TREE_TYPE (captures[0]))
    1183                 :             : )
    1184                 :             :     {
    1185                 :       25076 :       {
    1186                 :       25076 :  enum tree_code ic = invert_tree_comparison
    1187                 :       25076 :  (cmp, HONOR_NANS (captures[1]));
    1188                 :       25076 :           if (ic == icmp
    1189                 :             : )
    1190                 :             :             {
    1191                 :       24837 :               if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail409;
    1192                 :       24837 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail409;
    1193                 :       24837 :               {
    1194                 :       24837 :                 tree res_op0;
    1195                 :       24837 :                 res_op0 = captures[1];
    1196                 :       24837 :                 tree res_op1;
    1197                 :       24837 :                 res_op1 = captures[2];
    1198                 :       24837 :                 tree _r;
    1199                 :       24837 :                 _r = fold_build2_loc (loc, icmp, type, res_op0, res_op1);
    1200                 :       24837 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 322, __FILE__, __LINE__, true);
    1201                 :       24837 :                 return _r;
    1202                 :             :               }
    1203                 :             : next_after_fail409:;
    1204                 :             :             }
    1205                 :             :           else
    1206                 :             :             {
    1207                 :         239 :               if (ic == ncmp
    1208                 :             : )
    1209                 :             :                 {
    1210                 :           0 :                   if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail410;
    1211                 :           0 :                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail410;
    1212                 :           0 :                   {
    1213                 :           0 :                     tree res_op0;
    1214                 :           0 :                     res_op0 = captures[1];
    1215                 :           0 :                     tree res_op1;
    1216                 :           0 :                     res_op1 = captures[2];
    1217                 :           0 :                     tree _r;
    1218                 :           0 :                     _r = fold_build2_loc (loc, ncmp, type, res_op0, res_op1);
    1219                 :           0 :                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 323, __FILE__, __LINE__, true);
    1220                 :           0 :                     return _r;
    1221                 :             :                   }
    1222                 :             : next_after_fail410:;
    1223                 :             :                 }
    1224                 :             :             }
    1225                 :             :       }
    1226                 :             :     }
    1227                 :             :   return NULL_TREE;
    1228                 :             : }
    1229                 :             : 
    1230                 :             : tree
    1231                 :     6461183 : generic_simplify_251 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1232                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    1233                 :             :  const enum tree_code ARG_UNUSED (cmp))
    1234                 :             : {
    1235                 :     6461183 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1236                 :     6461183 :   if (REAL_VALUE_MINUS_ZERO (TREE_REAL_CST (captures[1]))
    1237                 :             : )
    1238                 :             :     {
    1239                 :        1708 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail425;
    1240                 :        1708 :       {
    1241                 :        1708 :         tree res_op0;
    1242                 :        1708 :         res_op0 = captures[0];
    1243                 :        1708 :         tree res_op1;
    1244                 :        1708 :         res_op1 =  build_real (TREE_TYPE (captures[1]), dconst0);
    1245                 :        1708 :         tree _r;
    1246                 :        1708 :         _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
    1247                 :        1708 :         if (TREE_SIDE_EFFECTS (captures[1]))
    1248                 :           0 :           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1249                 :        1708 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 336, __FILE__, __LINE__, true);
    1250                 :        1708 :         return _r;
    1251                 :             :       }
    1252                 :           0 : next_after_fail425:;
    1253                 :             :     }
    1254                 :             :   else
    1255                 :             :     {
    1256                 :     6459475 :       if (TREE_CODE (captures[0]) == REAL_CST
    1257                 :     6459475 :  && REAL_VALUE_MINUS_ZERO (TREE_REAL_CST (captures[0]))
    1258                 :             : )
    1259                 :             :         {
    1260                 :           0 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail426;
    1261                 :           0 :           {
    1262                 :           0 :             tree res_op0;
    1263                 :           0 :             res_op0 =  build_real (TREE_TYPE (captures[0]), dconst0);
    1264                 :           0 :             tree res_op1;
    1265                 :           0 :             res_op1 = captures[1];
    1266                 :           0 :             tree _r;
    1267                 :           0 :             _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
    1268                 :           0 :             if (TREE_SIDE_EFFECTS (captures[0]))
    1269                 :           0 :               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    1270                 :           0 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 337, __FILE__, __LINE__, true);
    1271                 :           0 :             return _r;
    1272                 :             :           }
    1273                 :           0 : next_after_fail426:;
    1274                 :             :         }
    1275                 :             :       else
    1276                 :             :         {
    1277                 :     6459475 :           if (REAL_VALUE_ISNAN (TREE_REAL_CST (captures[1]))
    1278                 :         951 :  && (cmp == EQ_EXPR || cmp == NE_EXPR || !flag_trapping_math)
    1279                 :         290 :  && !tree_expr_signaling_nan_p (captures[1])
    1280                 :     6459735 :  && !tree_expr_maybe_signaling_nan_p (captures[0])
    1281                 :             : )
    1282                 :             :             {
    1283                 :         260 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail427;
    1284                 :         260 :               {
    1285                 :         260 :                 tree _r;
    1286                 :         260 :                 _r =  constant_boolean_node (cmp == NE_EXPR, type);
    1287                 :         260 :                 if (TREE_SIDE_EFFECTS (captures[0]))
    1288                 :           6 :                   _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    1289                 :         260 :                 if (TREE_SIDE_EFFECTS (captures[1]))
    1290                 :           0 :                   _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1291                 :         260 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 338, __FILE__, __LINE__, true);
    1292                 :         260 :                 return _r;
    1293                 :             :               }
    1294                 :           0 : next_after_fail427:;
    1295                 :             :             }
    1296                 :             :           else
    1297                 :             :             {
    1298                 :     6459215 :               if (TREE_CODE (captures[0]) == REAL_CST
    1299                 :        2274 :  && REAL_VALUE_ISNAN (TREE_REAL_CST (captures[0]))
    1300                 :        1968 :  && (cmp == EQ_EXPR || cmp == NE_EXPR || !flag_trapping_math)
    1301                 :           0 :  && !tree_expr_signaling_nan_p (captures[0])
    1302                 :     6459215 :  && !tree_expr_signaling_nan_p (captures[1])
    1303                 :             : )
    1304                 :             :                 {
    1305                 :           0 :                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail428;
    1306                 :           0 :                   {
    1307                 :           0 :                     tree _r;
    1308                 :           0 :                     _r =  constant_boolean_node (cmp == NE_EXPR, type);
    1309                 :           0 :                     if (TREE_SIDE_EFFECTS (captures[0]))
    1310                 :           0 :                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    1311                 :           0 :                     if (TREE_SIDE_EFFECTS (captures[1]))
    1312                 :           0 :                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1313                 :           0 :                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 339, __FILE__, __LINE__, true);
    1314                 :           0 :                     return _r;
    1315                 :             :                   }
    1316                 :           0 : next_after_fail428:;
    1317                 :             :                 }
    1318                 :             :               else
    1319                 :             :                 {
    1320                 :     6459215 :                   if (REAL_VALUE_ISINF (TREE_REAL_CST (captures[1]))
    1321                 :     7272951 :  && MODE_HAS_INFINITIES (TYPE_MODE (TREE_TYPE (captures[1])))
    1322                 :             : )
    1323                 :             :                     {
    1324                 :      271273 :                       {
    1325                 :      271273 :  REAL_VALUE_TYPE max;
    1326                 :      271273 :  enum tree_code code = cmp;
    1327                 :      271273 :  bool neg = REAL_VALUE_NEGATIVE (TREE_REAL_CST (captures[1]));
    1328                 :      271273 :  if (neg)
    1329                 :       34994 :  code = swap_tree_comparison (code);
    1330                 :      271273 :                           if (code == GT_EXPR
    1331                 :      271273 :  && !(HONOR_NANS (captures[0]) && flag_trapping_math)
    1332                 :             : )
    1333                 :             :                             {
    1334                 :           8 :                               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail429;
    1335                 :           8 :                               {
    1336                 :           8 :                                 tree _r;
    1337                 :           8 :                                 _r =  constant_boolean_node (false, type);
    1338                 :           8 :                                 if (TREE_SIDE_EFFECTS (captures[0]))
    1339                 :           0 :                                   _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    1340                 :           8 :                                 if (TREE_SIDE_EFFECTS (captures[1]))
    1341                 :           0 :                                   _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1342                 :           8 :                                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 340, __FILE__, __LINE__, true);
    1343                 :       80237 :                                 return _r;
    1344                 :             :                               }
    1345                 :           0 : next_after_fail429:;
    1346                 :             :                             }
    1347                 :             :                           else
    1348                 :             :                             {
    1349                 :      271265 :                               if (code == LE_EXPR
    1350                 :             : )
    1351                 :             :                                 {
    1352                 :       32218 :                                   if (! HONOR_NANS (captures[0])
    1353                 :             : )
    1354                 :             :                                     {
    1355                 :           0 :                                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail430;
    1356                 :           0 :                                       {
    1357                 :           0 :                                         tree _r;
    1358                 :           0 :                                         _r =  constant_boolean_node (true, type);
    1359                 :           0 :                                         if (TREE_SIDE_EFFECTS (captures[0]))
    1360                 :           0 :                                           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    1361                 :           0 :                                         if (TREE_SIDE_EFFECTS (captures[1]))
    1362                 :           0 :                                           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1363                 :           0 :                                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 341, __FILE__, __LINE__, true);
    1364                 :           0 :                                         return _r;
    1365                 :             :                                       }
    1366                 :           0 : next_after_fail430:;
    1367                 :             :                                     }
    1368                 :             :                                   else
    1369                 :             :                                     {
    1370                 :       32218 :                                       if (!flag_trapping_math
    1371                 :             : )
    1372                 :             :                                         {
    1373                 :           2 :                                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail431;
    1374                 :           2 :                                           {
    1375                 :           2 :                                             if (! tree_invariant_p (captures[0])) goto next_after_fail431;
    1376                 :           0 :                                             tree res_op0;
    1377                 :           0 :                                             res_op0 = unshare_expr (captures[0]);
    1378                 :           0 :                                             tree res_op1;
    1379                 :           0 :                                             res_op1 = captures[0];
    1380                 :           0 :                                             tree _r;
    1381                 :           0 :                                             _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
    1382                 :           0 :                                             if (TREE_SIDE_EFFECTS (captures[1]))
    1383                 :           0 :                                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1384                 :           0 :                                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 342, __FILE__, __LINE__, true);
    1385                 :           0 :                                             return _r;
    1386                 :             :                                           }
    1387                 :      191036 : next_after_fail431:;
    1388                 :             :                                         }
    1389                 :             :                                     }
    1390                 :             :                                 }
    1391                 :             :                               else
    1392                 :             :                                 {
    1393                 :      158546 :                                   if ((code == EQ_EXPR && !(HONOR_NANS (captures[0]) && flag_trapping_math))
    1394                 :      397569 :  || code == GE_EXPR
    1395                 :             : )
    1396                 :             :                                     {
    1397                 :         140 :                                       {
    1398                 :         140 :  real_maxval (&max, neg, TYPE_MODE (TREE_TYPE (captures[0])));
    1399                 :         140 :                                           if (neg
    1400                 :             : )
    1401                 :             :                                             {
    1402                 :          61 :                                               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail432;
    1403                 :          61 :                                               {
    1404                 :          61 :                                                 tree res_op0;
    1405                 :          61 :                                                 res_op0 = captures[0];
    1406                 :          61 :                                                 tree res_op1;
    1407                 :          61 :                                                 res_op1 =  build_real (TREE_TYPE (captures[0]), max);
    1408                 :          61 :                                                 tree _r;
    1409                 :          61 :                                                 _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
    1410                 :          61 :                                                 if (TREE_SIDE_EFFECTS (captures[1]))
    1411                 :           0 :                                                   _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1412                 :          61 :                                                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 343, __FILE__, __LINE__, true);
    1413                 :          61 :                                                 return _r;
    1414                 :             :                                               }
    1415                 :           0 : next_after_fail432:;
    1416                 :             :                                             }
    1417                 :             :                                           else
    1418                 :             :                                             {
    1419                 :          79 :                                               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail433;
    1420                 :          79 :                                               {
    1421                 :          79 :                                                 tree res_op0;
    1422                 :          79 :                                                 res_op0 = captures[0];
    1423                 :          79 :                                                 tree res_op1;
    1424                 :          79 :                                                 res_op1 =  build_real (TREE_TYPE (captures[0]), max);
    1425                 :          79 :                                                 tree _r;
    1426                 :          79 :                                                 _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
    1427                 :          79 :                                                 if (TREE_SIDE_EFFECTS (captures[1]))
    1428                 :           0 :                                                   _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1429                 :          79 :                                                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 344, __FILE__, __LINE__, true);
    1430                 :          79 :                                                 return _r;
    1431                 :             :                                               }
    1432                 :           0 : next_after_fail433:;
    1433                 :             :                                             }
    1434                 :             :                                       }
    1435                 :             :                                     }
    1436                 :             :                                   else
    1437                 :             :                                     {
    1438                 :      238907 :                                       if (code == LT_EXPR
    1439                 :             : )
    1440                 :             :                                         {
    1441                 :         100 :                                           {
    1442                 :         100 :  real_maxval (&max, neg, TYPE_MODE (TREE_TYPE (captures[0])));
    1443                 :         100 :                                               if (neg
    1444                 :             : )
    1445                 :             :                                                 {
    1446                 :          26 :                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail434;
    1447                 :          26 :                                                   {
    1448                 :          26 :                                                     tree res_op0;
    1449                 :          26 :                                                     res_op0 = captures[0];
    1450                 :          26 :                                                     tree res_op1;
    1451                 :          26 :                                                     res_op1 =  build_real (TREE_TYPE (captures[0]), max);
    1452                 :          26 :                                                     tree _r;
    1453                 :          26 :                                                     _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
    1454                 :          26 :                                                     if (TREE_SIDE_EFFECTS (captures[1]))
    1455                 :           0 :                                                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1456                 :          26 :                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 345, __FILE__, __LINE__, true);
    1457                 :          26 :                                                     return _r;
    1458                 :             :                                                   }
    1459                 :           0 : next_after_fail434:;
    1460                 :             :                                                 }
    1461                 :             :                                               else
    1462                 :             :                                                 {
    1463                 :          74 :                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail435;
    1464                 :          74 :                                                   {
    1465                 :          74 :                                                     tree res_op0;
    1466                 :          74 :                                                     res_op0 = captures[0];
    1467                 :          74 :                                                     tree res_op1;
    1468                 :          74 :                                                     res_op1 =  build_real (TREE_TYPE (captures[0]), max);
    1469                 :          74 :                                                     tree _r;
    1470                 :          74 :                                                     _r = fold_build2_loc (loc, LE_EXPR, type, res_op0, res_op1);
    1471                 :          74 :                                                     if (TREE_SIDE_EFFECTS (captures[1]))
    1472                 :           0 :                                                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1473                 :          74 :                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 346, __FILE__, __LINE__, true);
    1474                 :          74 :                                                     return _r;
    1475                 :             :                                                   }
    1476                 :           0 : next_after_fail435:;
    1477                 :             :                                                 }
    1478                 :             :                                           }
    1479                 :             :                                         }
    1480                 :             :                                       else
    1481                 :             :                                         {
    1482                 :      238807 :                                           if (code == NE_EXPR
    1483                 :             : )
    1484                 :             :                                             {
    1485                 :       79989 :                                               {
    1486                 :       79989 :  real_maxval (&max, neg, TYPE_MODE (TREE_TYPE (captures[0])));
    1487                 :       79989 :                                                   if (! HONOR_NANS (captures[0])
    1488                 :             : )
    1489                 :             :                                                     {
    1490                 :           0 :                                                       if (neg
    1491                 :             : )
    1492                 :             :                                                         {
    1493                 :           0 :                                                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail436;
    1494                 :           0 :                                                           {
    1495                 :           0 :                                                             tree res_op0;
    1496                 :           0 :                                                             res_op0 = captures[0];
    1497                 :           0 :                                                             tree res_op1;
    1498                 :           0 :                                                             res_op1 =  build_real (TREE_TYPE (captures[0]), max);
    1499                 :           0 :                                                             tree _r;
    1500                 :           0 :                                                             _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
    1501                 :           0 :                                                             if (TREE_SIDE_EFFECTS (captures[1]))
    1502                 :           0 :                                                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1503                 :           0 :                                                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 347, __FILE__, __LINE__, true);
    1504                 :           0 :                                                             return _r;
    1505                 :             :                                                           }
    1506                 :           0 : next_after_fail436:;
    1507                 :             :                                                         }
    1508                 :             :                                                       else
    1509                 :             :                                                         {
    1510                 :           0 :                                                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail437;
    1511                 :           0 :                                                           {
    1512                 :           0 :                                                             tree res_op0;
    1513                 :           0 :                                                             res_op0 = captures[0];
    1514                 :           0 :                                                             tree res_op1;
    1515                 :           0 :                                                             res_op1 =  build_real (TREE_TYPE (captures[0]), max);
    1516                 :           0 :                                                             tree _r;
    1517                 :           0 :                                                             _r = fold_build2_loc (loc, LE_EXPR, type, res_op0, res_op1);
    1518                 :           0 :                                                             if (TREE_SIDE_EFFECTS (captures[1]))
    1519                 :           0 :                                                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1520                 :           0 :                                                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 348, __FILE__, __LINE__, true);
    1521                 :           0 :                                                             return _r;
    1522                 :             :                                                           }
    1523                 :           0 : next_after_fail437:;
    1524                 :             :                                                         }
    1525                 :             :                                                     }
    1526                 :             :                                                   else
    1527                 :             :                                                     {
    1528                 :       79989 :                                                       if (neg
    1529                 :             : )
    1530                 :             :                                                         {
    1531                 :         561 :                                                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail438;
    1532                 :         561 :                                                           {
    1533                 :         561 :                                                             tree res_op0;
    1534                 :         561 :                                                             res_op0 = captures[0];
    1535                 :         561 :                                                             tree res_op1;
    1536                 :         561 :                                                             res_op1 =  build_real (TREE_TYPE (captures[0]), max);
    1537                 :         561 :                                                             tree _r;
    1538                 :         561 :                                                             _r = fold_build2_loc (loc, UNGE_EXPR, type, res_op0, res_op1);
    1539                 :         561 :                                                             if (TREE_SIDE_EFFECTS (captures[1]))
    1540                 :           0 :                                                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1541                 :         561 :                                                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 349, __FILE__, __LINE__, true);
    1542                 :         561 :                                                             return _r;
    1543                 :             :                                                           }
    1544                 :           0 : next_after_fail438:;
    1545                 :             :                                                         }
    1546                 :             :                                                       else
    1547                 :             :                                                         {
    1548                 :       79428 :                                                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail439;
    1549                 :       79428 :                                                           {
    1550                 :       79428 :                                                             tree res_op0;
    1551                 :       79428 :                                                             res_op0 = captures[0];
    1552                 :       79428 :                                                             tree res_op1;
    1553                 :       79428 :                                                             res_op1 =  build_real (TREE_TYPE (captures[0]), max);
    1554                 :       79428 :                                                             tree _r;
    1555                 :       79428 :                                                             _r = fold_build2_loc (loc, UNLE_EXPR, type, res_op0, res_op1);
    1556                 :       79428 :                                                             if (TREE_SIDE_EFFECTS (captures[1]))
    1557                 :           0 :                                                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1558                 :       79428 :                                                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 350, __FILE__, __LINE__, true);
    1559                 :       79428 :                                                             return _r;
    1560                 :             :                                                           }
    1561                 :           0 : next_after_fail439:;
    1562                 :             :                                                         }
    1563                 :             :                                                     }
    1564                 :             :                                               }
    1565                 :             :                                             }
    1566                 :             :                                         }
    1567                 :             :                                     }
    1568                 :             :                                 }
    1569                 :             :                             }
    1570                 :             :                       }
    1571                 :             :                     }
    1572                 :             :                 }
    1573                 :             :             }
    1574                 :             :         }
    1575                 :             :     }
    1576                 :             :   return NULL_TREE;
    1577                 :             : }
    1578                 :             : 
    1579                 :             : tree
    1580                 :      307788 : generic_simplify_294 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1581                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    1582                 :             :  const enum tree_code ARG_UNUSED (cmp),
    1583                 :             :  const enum tree_code ARG_UNUSED (icmp),
    1584                 :             :  const enum tree_code ARG_UNUSED (ncmp))
    1585                 :             : {
    1586                 :      307788 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1587                 :      307788 :   if (types_match (type, TREE_TYPE (captures[0]))
    1588                 :             : )
    1589                 :             :     {
    1590                 :       45679 :       if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail557;
    1591                 :       45679 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail557;
    1592                 :       45679 :       {
    1593                 :       45679 :         tree res_op0;
    1594                 :       45679 :         res_op0 = captures[1];
    1595                 :       45679 :         tree res_op1;
    1596                 :       45679 :         res_op1 = captures[2];
    1597                 :       45679 :         tree _r;
    1598                 :       45679 :         _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
    1599                 :       45679 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 451, __FILE__, __LINE__, true);
    1600                 :       45679 :         return _r;
    1601                 :             :       }
    1602                 :             : next_after_fail557:;
    1603                 :             :     }
    1604                 :             :   return NULL_TREE;
    1605                 :             : }
    1606                 :             : 
    1607                 :             : tree
    1608                 :           0 : generic_simplify_298 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1609                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    1610                 :             :  const combined_fn ARG_UNUSED (copysigns))
    1611                 :             : {
    1612                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1613                 :           0 :   if (!REAL_VALUE_NEGATIVE (TREE_REAL_CST (captures[1]))
    1614                 :             : )
    1615                 :             :     {
    1616                 :           0 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail562;
    1617                 :           0 :       {
    1618                 :           0 :         tree res_op0;
    1619                 :           0 :         res_op0 = captures[0];
    1620                 :           0 :         tree _r;
    1621                 :           0 :         _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
    1622                 :           0 :         if (TREE_SIDE_EFFECTS (captures[1]))
    1623                 :           0 :           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1624                 :           0 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 456, __FILE__, __LINE__, true);
    1625                 :           0 :         return _r;
    1626                 :             :       }
    1627                 :           0 : next_after_fail562:;
    1628                 :             :     }
    1629                 :             :   return NULL_TREE;
    1630                 :             : }
    1631                 :             : 
    1632                 :             : tree
    1633                 :          23 : generic_simplify_304 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1634                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    1635                 :             :  const enum tree_code ARG_UNUSED (div))
    1636                 :             : {
    1637                 :          23 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1638                 :          30 :   if ((TYPE_UNSIGNED (type) || tree_expr_nonnegative_p (captures[0]))
    1639                 :          16 :  && (!VECTOR_TYPE_P (type)
    1640                 :           0 :  || target_supports_op_p (type, RSHIFT_EXPR, optab_vector)
    1641                 :           0 :  || target_supports_op_p (type, RSHIFT_EXPR, optab_scalar))
    1642                 :          39 :  && (useless_type_conversion_p (type, TREE_TYPE (captures[2]))
    1643                 :           7 :  || (element_precision (type) >= element_precision (TREE_TYPE (captures[2]))
    1644                 :           7 :  && (TYPE_UNSIGNED (TREE_TYPE (captures[2]))
    1645                 :          14 :  || (element_precision (type)
    1646                 :           7 :  == element_precision (TREE_TYPE (captures[2])))
    1647                 :           7 :  || (INTEGRAL_TYPE_P (type)
    1648                 :          14 :  && (tree_nonzero_bits (captures[0])
    1649                 :          44 :  & wi::mask (element_precision (TREE_TYPE (captures[2])) - 1,
    1650                 :             :  true,
    1651                 :          37 :  element_precision (type))) == 0))))
    1652                 :             : )
    1653                 :             :     {
    1654                 :           9 :       if (!VECTOR_TYPE_P (type)
    1655                 :           9 :  && useless_type_conversion_p (TREE_TYPE (captures[1]), TREE_TYPE (captures[2]))
    1656                 :          18 :  && element_precision (TREE_TYPE (captures[1])) < element_precision (type)
    1657                 :             : )
    1658                 :             :         {
    1659                 :           0 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail569;
    1660                 :           0 :           {
    1661                 :           0 :             tree res_op0;
    1662                 :           0 :             {
    1663                 :           0 :               tree _o1[2], _r1;
    1664                 :           0 :               _o1[0] = captures[1];
    1665                 :           0 :               _o1[1] = captures[3];
    1666                 :           0 :               _r1 = fold_build2_loc (loc, RSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    1667                 :           0 :               res_op0 = _r1;
    1668                 :             :             }
    1669                 :           0 :             tree _r;
    1670                 :           0 :             _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
    1671                 :           0 :             if (TREE_SIDE_EFFECTS (captures[2]))
    1672                 :           0 :               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    1673                 :           0 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 461, __FILE__, __LINE__, true);
    1674                 :           0 :             return _r;
    1675                 :             :           }
    1676                 :           0 : next_after_fail569:;
    1677                 :             :         }
    1678                 :             :       else
    1679                 :             :         {
    1680                 :           9 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail570;
    1681                 :           9 :           {
    1682                 :           9 :             tree res_op0;
    1683                 :           9 :             res_op0 = captures[0];
    1684                 :           9 :             tree res_op1;
    1685                 :           9 :             res_op1 = captures[3];
    1686                 :           9 :             tree _r;
    1687                 :           9 :             _r = fold_build2_loc (loc, RSHIFT_EXPR, type, res_op0, res_op1);
    1688                 :           9 :             if (TREE_SIDE_EFFECTS (captures[2]))
    1689                 :           0 :               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    1690                 :           9 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 462, __FILE__, __LINE__, true);
    1691                 :           9 :             return _r;
    1692                 :             :           }
    1693                 :           0 : next_after_fail570:;
    1694                 :             :         }
    1695                 :             :     }
    1696                 :             :   return NULL_TREE;
    1697                 :             : }
    1698                 :             : 
    1699                 :             : tree
    1700                 :         225 : generic_simplify_320 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1701                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    1702                 :             :  const enum tree_code ARG_UNUSED (mod))
    1703                 :             : {
    1704                 :         225 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1705                 :         225 :   if (!integer_zerop (captures[0])
    1706                 :             : )
    1707                 :             :     {
    1708                 :          93 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail587;
    1709                 :          93 :       {
    1710                 :          93 :         tree _r;
    1711                 :          93 :         _r =  build_zero_cst (type);
    1712                 :          93 :         if (TREE_SIDE_EFFECTS (captures[0]))
    1713                 :           0 :           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    1714                 :          93 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 479, __FILE__, __LINE__, true);
    1715                 :          93 :         return _r;
    1716                 :             :       }
    1717                 :           0 : next_after_fail587:;
    1718                 :             :     }
    1719                 :             :   return NULL_TREE;
    1720                 :             : }
    1721                 :             : 
    1722                 :             : tree
    1723                 :           3 : generic_simplify_330 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1724                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    1725                 :             :  const combined_fn ARG_UNUSED (TANH),
    1726                 :             :  const combined_fn ARG_UNUSED (SINH),
    1727                 :             :  const combined_fn ARG_UNUSED (COSH))
    1728                 :             : {
    1729                 :           3 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1730                 :           3 :   if (flag_unsafe_math_optimizations && canonicalize_math_p ()
    1731                 :             : )
    1732                 :             :     {
    1733                 :           3 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail599;
    1734                 :           3 :       {
    1735                 :           3 :         tree res_op0;
    1736                 :           3 :         res_op0 = build_one_cst (type);
    1737                 :           3 :         tree res_op1;
    1738                 :           3 :         {
    1739                 :           3 :           tree _o1[1], _r1;
    1740                 :           3 :           _o1[0] = captures[1];
    1741                 :           3 :           _r1 = maybe_build_call_expr_loc (loc, COSH, TREE_TYPE (_o1[0]), 1, _o1[0]);
    1742                 :           3 :           if (!_r1)
    1743                 :           0 :             goto next_after_fail599;
    1744                 :           3 :           res_op1 = _r1;
    1745                 :             :         }
    1746                 :           3 :         tree _r;
    1747                 :           3 :         _r = fold_build2_loc (loc, RDIV_EXPR, type, res_op0, res_op1);
    1748                 :           3 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 491, __FILE__, __LINE__, true);
    1749                 :           3 :         return _r;
    1750                 :             :       }
    1751                 :             : next_after_fail599:;
    1752                 :             :     }
    1753                 :             :   return NULL_TREE;
    1754                 :             : }
    1755                 :             : 
    1756                 :             : tree
    1757                 :           2 : generic_simplify_338 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1758                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
    1759                 :             :  const enum tree_code ARG_UNUSED (cmp),
    1760                 :             :  const enum tree_code ARG_UNUSED (minmax))
    1761                 :             : {
    1762                 :           2 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1763                 :           2 :   {
    1764                 :           2 :  tree_code code = minmax_from_comparison (cmp, captures[0], captures[3], captures[0], captures[1]);
    1765                 :           2 :       if (code == MIN_EXPR
    1766                 :             : )
    1767                 :             :         {
    1768                 :           0 :           if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail610;
    1769                 :           0 :           if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail610;
    1770                 :           0 :           if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail610;
    1771                 :           0 :           if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail610;
    1772                 :           0 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail610;
    1773                 :           0 :           {
    1774                 :           0 :             tree res_op0;
    1775                 :           0 :             {
    1776                 :           0 :               tree _o1[2], _r1;
    1777                 :           0 :               _o1[0] = captures[0];
    1778                 :           0 :               _o1[1] = captures[3];
    1779                 :           0 :               _r1 = fold_build2_loc (loc, MIN_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    1780                 :           0 :               res_op0 = _r1;
    1781                 :             :             }
    1782                 :           0 :             tree res_op1;
    1783                 :           0 :             res_op1 = captures[2];
    1784                 :           0 :             tree _r;
    1785                 :           0 :             _r = fold_build2_loc (loc, minmax, type, res_op0, res_op1);
    1786                 :           0 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 502, __FILE__, __LINE__, true);
    1787                 :           0 :             return _r;
    1788                 :             :           }
    1789                 :             : next_after_fail610:;
    1790                 :             :         }
    1791                 :             :       else
    1792                 :             :         {
    1793                 :           2 :           if (code == MAX_EXPR
    1794                 :             : )
    1795                 :             :             {
    1796                 :           2 :               if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail611;
    1797                 :           2 :               if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail611;
    1798                 :           2 :               if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail611;
    1799                 :           2 :               if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail611;
    1800                 :           2 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail611;
    1801                 :           2 :               {
    1802                 :           2 :                 tree res_op0;
    1803                 :           2 :                 {
    1804                 :           2 :                   tree _o1[2], _r1;
    1805                 :           2 :                   _o1[0] = captures[0];
    1806                 :           2 :                   _o1[1] = captures[3];
    1807                 :           2 :                   _r1 = fold_build2_loc (loc, MAX_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    1808                 :           2 :                   res_op0 = _r1;
    1809                 :             :                 }
    1810                 :           2 :                 tree res_op1;
    1811                 :           2 :                 res_op1 = captures[2];
    1812                 :           2 :                 tree _r;
    1813                 :           2 :                 _r = fold_build2_loc (loc, minmax, type, res_op0, res_op1);
    1814                 :           2 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 503, __FILE__, __LINE__, true);
    1815                 :           2 :                 return _r;
    1816                 :             :               }
    1817                 :             : next_after_fail611:;
    1818                 :             :             }
    1819                 :             :         }
    1820                 :             :   }
    1821                 :             :   return NULL_TREE;
    1822                 :             : }
    1823                 :             : 
    1824                 :             : tree
    1825                 :          21 : generic_simplify_353 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1826                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures))
    1827                 :             : {
    1828                 :          21 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1829                 :          21 :   if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail628;
    1830                 :          21 :   if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail628;
    1831                 :          21 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail628;
    1832                 :          21 :   {
    1833                 :          21 :     tree _r;
    1834                 :          21 :     _r = captures[2];
    1835                 :          21 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 519, __FILE__, __LINE__, true);
    1836                 :             :     return _r;
    1837                 :             :   }
    1838                 :             : next_after_fail628:;
    1839                 :             :   return NULL_TREE;
    1840                 :             : }
    1841                 :             : 
    1842                 :             : tree
    1843                 :           6 : generic_simplify_359 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1844                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
    1845                 :             :  const enum tree_code ARG_UNUSED (neeq),
    1846                 :             :  const combined_fn ARG_UNUSED (sign))
    1847                 :             : {
    1848                 :           6 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1849                 :           6 :   if (neeq == NE_EXPR
    1850                 :             : )
    1851                 :             :     {
    1852                 :           3 :       if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail634;
    1853                 :           3 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail634;
    1854                 :           3 :       {
    1855                 :           3 :         tree res_op0;
    1856                 :           3 :         res_op0 = captures[0];
    1857                 :           3 :         tree _r;
    1858                 :           3 :         _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
    1859                 :           3 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 525, __FILE__, __LINE__, true);
    1860                 :           3 :         return _r;
    1861                 :             :       }
    1862                 :             : next_after_fail634:;
    1863                 :             :     }
    1864                 :             :   else
    1865                 :             :     {
    1866                 :           3 :       if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail635;
    1867                 :           3 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail635;
    1868                 :           3 :       {
    1869                 :           3 :         tree res_op0;
    1870                 :           3 :         {
    1871                 :           3 :           tree _o1[1], _r1;
    1872                 :           3 :           _o1[0] = captures[0];
    1873                 :           3 :           _r1 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
    1874                 :           3 :           res_op0 = _r1;
    1875                 :             :         }
    1876                 :           3 :         tree _r;
    1877                 :           3 :         _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
    1878                 :           3 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 526, __FILE__, __LINE__, true);
    1879                 :           3 :         return _r;
    1880                 :             :       }
    1881                 :             : next_after_fail635:;
    1882                 :             :     }
    1883                 :             :   return NULL_TREE;
    1884                 :             : }
    1885                 :             : 
    1886                 :             : tree
    1887                 :       83755 : generic_simplify_370 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1888                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    1889                 :             :  const enum tree_code ARG_UNUSED (op))
    1890                 :             : {
    1891                 :       83755 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1892                 :      167510 :   if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
    1893                 :       83755 :  && TYPE_UNSIGNED (TREE_TYPE (captures[1]))
    1894                 :      167510 :  && wi::only_sign_bit_p (wi::to_wide (captures[1]))
    1895                 :             : )
    1896                 :             :     {
    1897                 :           5 :       {
    1898                 :           5 :  tree stype = signed_type_for (TREE_TYPE (captures[1]));
    1899                 :           5 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail650;
    1900                 :           5 :           {
    1901                 :           5 :             tree res_op0;
    1902                 :           5 :             {
    1903                 :           5 :               tree _o1[1], _r1;
    1904                 :           5 :               _o1[0] = captures[0];
    1905                 :           5 :               if (TREE_TYPE (_o1[0]) != stype)
    1906                 :             :                 {
    1907                 :           5 :                   _r1 = fold_build1_loc (loc, NOP_EXPR, stype, _o1[0]);
    1908                 :             :                 }
    1909                 :             :               else
    1910                 :             :                 _r1 = _o1[0];
    1911                 :           5 :               res_op0 = _r1;
    1912                 :             :             }
    1913                 :           5 :             tree res_op1;
    1914                 :           5 :             {
    1915                 :           5 :               tree _o1[1], _r1;
    1916                 :           5 :               _o1[0] = captures[2];
    1917                 :           5 :               if (TREE_TYPE (_o1[0]) != stype)
    1918                 :             :                 {
    1919                 :           5 :                   _r1 = fold_build1_loc (loc, NOP_EXPR, stype, _o1[0]);
    1920                 :             :                 }
    1921                 :             :               else
    1922                 :             :                 _r1 = _o1[0];
    1923                 :           5 :               res_op1 = _r1;
    1924                 :             :             }
    1925                 :           5 :             tree _r;
    1926                 :           5 :             _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
    1927                 :           5 :             if (TREE_SIDE_EFFECTS (captures[1]))
    1928                 :           0 :               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1929                 :           5 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 540, __FILE__, __LINE__, true);
    1930                 :           5 :             return _r;
    1931                 :             :           }
    1932                 :           0 : next_after_fail650:;
    1933                 :             :       }
    1934                 :             :     }
    1935                 :             :   return NULL_TREE;
    1936                 :             : }
    1937                 :             : 
    1938                 :             : tree
    1939                 :     1087289 : generic_simplify_381 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1940                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    1941                 :             :  const enum tree_code ARG_UNUSED (cmp))
    1942                 :             : {
    1943                 :     1087289 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1944                 :     2174578 :   if ((INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
    1945                 :         388 :  || POINTER_TYPE_P (TREE_TYPE (captures[2]))
    1946                 :           5 :  || VECTOR_INTEGER_TYPE_P (TREE_TYPE (captures[2])))
    1947                 :     2174578 :  && tree_nop_conversion_p (TREE_TYPE (captures[0]), TREE_TYPE (captures[1]))
    1948                 :             : )
    1949                 :             :     {
    1950                 :      911945 :       {
    1951                 :      911945 :  tree cst = uniform_integer_cst_p (captures[2]);
    1952                 :      911945 :  tree arg1_type = TREE_TYPE (cst);
    1953                 :      911945 :  unsigned int prec = TYPE_PRECISION (arg1_type);
    1954                 :      911945 :  wide_int max = wi::max_value (arg1_type);
    1955                 :      911945 :  wide_int signed_max = wi::max_value (prec, SIGNED);
    1956                 :      911945 :  wide_int min = wi::min_value (arg1_type);
    1957                 :      911945 :           if (wi::to_wide (cst) == max
    1958                 :             : )
    1959                 :             :             {
    1960                 :         619 :               if (cmp == GT_EXPR
    1961                 :             : )
    1962                 :             :                 {
    1963                 :         389 :                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail664;
    1964                 :         389 :                   {
    1965                 :         389 :                     tree _r;
    1966                 :         389 :                     _r =  constant_boolean_node (false, type);
    1967                 :         389 :                     if (TREE_SIDE_EFFECTS (captures[1]))
    1968                 :           0 :                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1969                 :         389 :                     if (TREE_SIDE_EFFECTS (captures[2]))
    1970                 :           0 :                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    1971                 :         389 :                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 554, __FILE__, __LINE__, true);
    1972                 :         389 :                     return _r;
    1973                 :             :                   }
    1974                 :           0 : next_after_fail664:;
    1975                 :             :                 }
    1976                 :             :               else
    1977                 :             :                 {
    1978                 :         230 :                   if (cmp == GE_EXPR
    1979                 :             : )
    1980                 :             :                     {
    1981                 :           0 :                       if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail665;
    1982                 :           0 :                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail665;
    1983                 :           0 :                       {
    1984                 :           0 :                         tree res_op0;
    1985                 :           0 :                         res_op0 = captures[0];
    1986                 :           0 :                         tree res_op1;
    1987                 :           0 :                         res_op1 = captures[2];
    1988                 :           0 :                         tree _r;
    1989                 :           0 :                         _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
    1990                 :           0 :                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 555, __FILE__, __LINE__, true);
    1991                 :           0 :                         return _r;
    1992                 :             :                       }
    1993                 :      848879 : next_after_fail665:;
    1994                 :             :                     }
    1995                 :             :                   else
    1996                 :             :                     {
    1997                 :         230 :                       if (cmp == LE_EXPR
    1998                 :             : )
    1999                 :             :                         {
    2000                 :         230 :                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail666;
    2001                 :         230 :                           {
    2002                 :         230 :                             tree _r;
    2003                 :         230 :                             _r =  constant_boolean_node (true, type);
    2004                 :         230 :                             if (TREE_SIDE_EFFECTS (captures[1]))
    2005                 :           0 :                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    2006                 :         230 :                             if (TREE_SIDE_EFFECTS (captures[2]))
    2007                 :           0 :                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    2008                 :         230 :                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 556, __FILE__, __LINE__, true);
    2009                 :         230 :                             return _r;
    2010                 :             :                           }
    2011                 :           0 : next_after_fail666:;
    2012                 :             :                         }
    2013                 :             :                       else
    2014                 :             :                         {
    2015                 :           0 :                           if (cmp == LT_EXPR
    2016                 :             : )
    2017                 :             :                             {
    2018                 :           0 :                               if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail667;
    2019                 :           0 :                               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail667;
    2020                 :           0 :                               {
    2021                 :           0 :                                 tree res_op0;
    2022                 :           0 :                                 res_op0 = captures[0];
    2023                 :           0 :                                 tree res_op1;
    2024                 :           0 :                                 res_op1 = captures[2];
    2025                 :           0 :                                 tree _r;
    2026                 :           0 :                                 _r = fold_build2_loc (loc, NE_EXPR, type, res_op0, res_op1);
    2027                 :           0 :                                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 557, __FILE__, __LINE__, true);
    2028                 :           0 :                                 return _r;
    2029                 :             :                               }
    2030                 :      848879 : next_after_fail667:;
    2031                 :             :                             }
    2032                 :             :                         }
    2033                 :             :                     }
    2034                 :             :                 }
    2035                 :             :             }
    2036                 :             :           else
    2037                 :             :             {
    2038                 :      911326 :               if (wi::to_wide (cst) == min
    2039                 :             : )
    2040                 :             :                 {
    2041                 :       56156 :                   if (cmp == LT_EXPR
    2042                 :             : )
    2043                 :             :                     {
    2044                 :        2352 :                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail668;
    2045                 :        2352 :                       {
    2046                 :        2352 :                         tree _r;
    2047                 :        2352 :                         _r =  constant_boolean_node (false, type);
    2048                 :        2352 :                         if (TREE_SIDE_EFFECTS (captures[1]))
    2049                 :           6 :                           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    2050                 :        2352 :                         if (TREE_SIDE_EFFECTS (captures[2]))
    2051                 :           0 :                           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    2052                 :        2352 :                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 558, __FILE__, __LINE__, true);
    2053                 :        2352 :                         return _r;
    2054                 :             :                       }
    2055                 :           0 : next_after_fail668:;
    2056                 :             :                     }
    2057                 :             :                   else
    2058                 :             :                     {
    2059                 :       53804 :                       if (cmp == LE_EXPR
    2060                 :             : )
    2061                 :             :                         {
    2062                 :       14456 :                           if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail669;
    2063                 :       13338 :                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail669;
    2064                 :       13338 :                           {
    2065                 :       13338 :                             tree res_op0;
    2066                 :       13338 :                             res_op0 = captures[0];
    2067                 :       13338 :                             tree res_op1;
    2068                 :       13338 :                             res_op1 = captures[2];
    2069                 :       13338 :                             tree _r;
    2070                 :       13338 :                             _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
    2071                 :       13338 :                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 559, __FILE__, __LINE__, true);
    2072                 :       13338 :                             return _r;
    2073                 :             :                           }
    2074                 :      848879 : next_after_fail669:;
    2075                 :             :                         }
    2076                 :             :                       else
    2077                 :             :                         {
    2078                 :       39348 :                           if (cmp == GE_EXPR
    2079                 :             : )
    2080                 :             :                             {
    2081                 :       10010 :                               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail670;
    2082                 :       10010 :                               {
    2083                 :       10010 :                                 tree _r;
    2084                 :       10010 :                                 _r =  constant_boolean_node (true, type);
    2085                 :       10010 :                                 if (TREE_SIDE_EFFECTS (captures[1]))
    2086                 :          51 :                                   _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    2087                 :       10010 :                                 if (TREE_SIDE_EFFECTS (captures[2]))
    2088                 :           0 :                                   _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    2089                 :       10010 :                                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 560, __FILE__, __LINE__, true);
    2090                 :       10010 :                                 return _r;
    2091                 :             :                               }
    2092                 :           0 : next_after_fail670:;
    2093                 :             :                             }
    2094                 :             :                           else
    2095                 :             :                             {
    2096                 :       29338 :                               if (cmp == GT_EXPR
    2097                 :             : )
    2098                 :             :                                 {
    2099                 :       29338 :                                   if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail671;
    2100                 :       23748 :                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail671;
    2101                 :       23748 :                                   {
    2102                 :       23748 :                                     tree res_op0;
    2103                 :       23748 :                                     res_op0 = captures[0];
    2104                 :       23748 :                                     tree res_op1;
    2105                 :       23748 :                                     res_op1 = captures[2];
    2106                 :       23748 :                                     tree _r;
    2107                 :       23748 :                                     _r = fold_build2_loc (loc, NE_EXPR, type, res_op0, res_op1);
    2108                 :       23748 :                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 561, __FILE__, __LINE__, true);
    2109                 :       23748 :                                     return _r;
    2110                 :             :                                   }
    2111                 :      848879 : next_after_fail671:;
    2112                 :             :                                 }
    2113                 :             :                             }
    2114                 :             :                         }
    2115                 :             :                     }
    2116                 :             :                 }
    2117                 :             :               else
    2118                 :             :                 {
    2119                 :      855170 :                   if (wi::to_wide (cst) == max - 1
    2120                 :             : )
    2121                 :             :                     {
    2122                 :        7974 :                       if (cmp == GT_EXPR
    2123                 :             : )
    2124                 :             :                         {
    2125                 :        1426 :                           if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail672;
    2126                 :        1426 :                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail672;
    2127                 :        1426 :                           {
    2128                 :        1426 :                             tree res_op0;
    2129                 :        1426 :                             res_op0 = captures[0];
    2130                 :        1426 :                             tree res_op1;
    2131                 :        1426 :                             res_op1 =  build_uniform_cst (TREE_TYPE (captures[2]),
    2132                 :        1426 :  wide_int_to_tree (TREE_TYPE (cst),
    2133                 :        1426 :  wi::to_wide (cst)
    2134                 :        2852 :  + 1));
    2135                 :        1426 :                             tree _r;
    2136                 :        1426 :                             _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
    2137                 :        1426 :                             if (TREE_SIDE_EFFECTS (captures[2]))
    2138                 :           0 :                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    2139                 :        1426 :                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 562, __FILE__, __LINE__, true);
    2140                 :        1426 :                             return _r;
    2141                 :             :                           }
    2142                 :      848879 : next_after_fail672:;
    2143                 :             :                         }
    2144                 :             :                       else
    2145                 :             :                         {
    2146                 :        6548 :                           if (cmp == LE_EXPR
    2147                 :             : )
    2148                 :             :                             {
    2149                 :        6548 :                               if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail673;
    2150                 :        6548 :                               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail673;
    2151                 :        6548 :                               {
    2152                 :        6548 :                                 tree res_op0;
    2153                 :        6548 :                                 res_op0 = captures[0];
    2154                 :        6548 :                                 tree res_op1;
    2155                 :        6548 :                                 res_op1 =  build_uniform_cst (TREE_TYPE (captures[2]),
    2156                 :        6548 :  wide_int_to_tree (TREE_TYPE (cst),
    2157                 :        6548 :  wi::to_wide (cst)
    2158                 :       13096 :  + 1));
    2159                 :        6548 :                                 tree _r;
    2160                 :        6548 :                                 _r = fold_build2_loc (loc, NE_EXPR, type, res_op0, res_op1);
    2161                 :        6548 :                                 if (TREE_SIDE_EFFECTS (captures[2]))
    2162                 :           0 :                                   _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    2163                 :        6548 :                                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 563, __FILE__, __LINE__, true);
    2164                 :        6548 :                                 return _r;
    2165                 :             :                               }
    2166                 :      848879 : next_after_fail673:;
    2167                 :             :                             }
    2168                 :             :                         }
    2169                 :             :                     }
    2170                 :             :                   else
    2171                 :             :                     {
    2172                 :      847196 :                       if (wi::to_wide (cst) == min + 1
    2173                 :             : )
    2174                 :             :                         {
    2175                 :       48320 :                           if (cmp == GE_EXPR
    2176                 :             : )
    2177                 :             :                             {
    2178                 :        2363 :                               if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail674;
    2179                 :        2363 :                               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail674;
    2180                 :        2363 :                               {
    2181                 :        2363 :                                 tree res_op0;
    2182                 :        2363 :                                 res_op0 = captures[0];
    2183                 :        2363 :                                 tree res_op1;
    2184                 :        2363 :                                 res_op1 =  build_uniform_cst (TREE_TYPE (captures[2]),
    2185                 :        2363 :  wide_int_to_tree (TREE_TYPE (cst),
    2186                 :        2363 :  wi::to_wide (cst)
    2187                 :        4726 :  - 1));
    2188                 :        2363 :                                 tree _r;
    2189                 :        2363 :                                 _r = fold_build2_loc (loc, NE_EXPR, type, res_op0, res_op1);
    2190                 :        2363 :                                 if (TREE_SIDE_EFFECTS (captures[2]))
    2191                 :           0 :                                   _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    2192                 :        2363 :                                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 564, __FILE__, __LINE__, true);
    2193                 :        2363 :                                 return _r;
    2194                 :             :                               }
    2195                 :      848879 : next_after_fail674:;
    2196                 :             :                             }
    2197                 :             :                           else
    2198                 :             :                             {
    2199                 :       45957 :                               if (cmp == LT_EXPR
    2200                 :             : )
    2201                 :             :                                 {
    2202                 :         341 :                                   if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail675;
    2203                 :         341 :                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail675;
    2204                 :         341 :                                   {
    2205                 :         341 :                                     tree res_op0;
    2206                 :         341 :                                     res_op0 = captures[0];
    2207                 :         341 :                                     tree res_op1;
    2208                 :         341 :                                     res_op1 =  build_uniform_cst (TREE_TYPE (captures[2]),
    2209                 :         341 :  wide_int_to_tree (TREE_TYPE (cst),
    2210                 :         341 :  wi::to_wide (cst)
    2211                 :         682 :  - 1));
    2212                 :         341 :                                     tree _r;
    2213                 :         341 :                                     _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
    2214                 :         341 :                                     if (TREE_SIDE_EFFECTS (captures[2]))
    2215                 :           0 :                                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    2216                 :         341 :                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 565, __FILE__, __LINE__, true);
    2217                 :         341 :                                     return _r;
    2218                 :             :                                   }
    2219                 :      848879 : next_after_fail675:;
    2220                 :             :                                 }
    2221                 :             :                             }
    2222                 :             :                         }
    2223                 :             :                       else
    2224                 :             :                         {
    2225                 :      798876 :                           if (wi::to_wide (cst) == signed_max
    2226                 :        2321 :  && TYPE_UNSIGNED (arg1_type)
    2227                 :        2321 :  && TYPE_MODE (arg1_type) != BLKmode
    2228                 :      798876 :  && prec == GET_MODE_PRECISION (SCALAR_INT_TYPE_MODE (arg1_type))
    2229                 :      801197 :  && INTEGRAL_TYPE_P (arg1_type)
    2230                 :             : )
    2231                 :             :                             {
    2232                 :        2321 :                               if (cmp == LE_EXPR || cmp == GT_EXPR
    2233                 :             : )
    2234                 :             :                                 {
    2235                 :        2321 :                                   {
    2236                 :        2321 :  tree st = signed_type_for (TREE_TYPE (captures[2]));
    2237                 :        2321 :                                       if (cst == captures[2] && cmp == LE_EXPR
    2238                 :             : )
    2239                 :             :                                         {
    2240                 :        2284 :                                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail676;
    2241                 :        2284 :                                           {
    2242                 :        2284 :                                             tree res_op0;
    2243                 :        2284 :                                             {
    2244                 :        2284 :                                               tree _o1[1], _r1;
    2245                 :        2284 :                                               _o1[0] = captures[1];
    2246                 :        2284 :                                               if (TREE_TYPE (_o1[0]) != st)
    2247                 :             :                                                 {
    2248                 :        2280 :                                                   _r1 = fold_build1_loc (loc, NOP_EXPR, st, _o1[0]);
    2249                 :             :                                                 }
    2250                 :             :                                               else
    2251                 :             :                                                 _r1 = _o1[0];
    2252                 :        2284 :                                               res_op0 = _r1;
    2253                 :             :                                             }
    2254                 :        2284 :                                             tree res_op1;
    2255                 :        2284 :                                             res_op1 =  build_zero_cst (st);
    2256                 :        2284 :                                             tree _r;
    2257                 :        2284 :                                             _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
    2258                 :        2284 :                                             if (TREE_SIDE_EFFECTS (captures[2]))
    2259                 :           0 :                                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    2260                 :        2284 :                                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 566, __FILE__, __LINE__, true);
    2261                 :        2284 :                                             return _r;
    2262                 :             :                                           }
    2263                 :           0 : next_after_fail676:;
    2264                 :           0 :                                         }
    2265                 :             :                                       else
    2266                 :             :                                         {
    2267                 :          37 :                                           if (cst == captures[2] && cmp == GT_EXPR
    2268                 :             : )
    2269                 :             :                                             {
    2270                 :          37 :                                               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail677;
    2271                 :          37 :                                               {
    2272                 :          37 :                                                 tree res_op0;
    2273                 :          37 :                                                 {
    2274                 :          37 :                                                   tree _o1[1], _r1;
    2275                 :          37 :                                                   _o1[0] = captures[1];
    2276                 :          37 :                                                   if (TREE_TYPE (_o1[0]) != st)
    2277                 :             :                                                     {
    2278                 :          37 :                                                       _r1 = fold_build1_loc (loc, NOP_EXPR, st, _o1[0]);
    2279                 :             :                                                     }
    2280                 :             :                                                   else
    2281                 :             :                                                     _r1 = _o1[0];
    2282                 :          37 :                                                   res_op0 = _r1;
    2283                 :             :                                                 }
    2284                 :          37 :                                                 tree res_op1;
    2285                 :          37 :                                                 res_op1 =  build_zero_cst (st);
    2286                 :          37 :                                                 tree _r;
    2287                 :          37 :                                                 _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
    2288                 :          37 :                                                 if (TREE_SIDE_EFFECTS (captures[2]))
    2289                 :           0 :                                                   _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    2290                 :          37 :                                                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 567, __FILE__, __LINE__, true);
    2291                 :          37 :                                                 return _r;
    2292                 :             :                                               }
    2293                 :           0 : next_after_fail677:;
    2294                 :           0 :                                             }
    2295                 :             :                                           else
    2296                 :             :                                             {
    2297                 :           0 :                                               if (cmp == LE_EXPR
    2298                 :             : )
    2299                 :             :                                                 {
    2300                 :           0 :                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail678;
    2301                 :           0 :                                                   {
    2302                 :           0 :                                                     tree res_op0;
    2303                 :           0 :                                                     {
    2304                 :           0 :                                                       tree _o1[1], _r1;
    2305                 :           0 :                                                       _o1[0] = captures[1];
    2306                 :           0 :                                                       if (TREE_TYPE (_o1[0]) != st)
    2307                 :             :                                                         {
    2308                 :           0 :                                                           _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, st, _o1[0]);
    2309                 :             :                                                         }
    2310                 :             :                                                       else
    2311                 :             :                                                         _r1 = _o1[0];
    2312                 :           0 :                                                       res_op0 = _r1;
    2313                 :             :                                                     }
    2314                 :           0 :                                                     tree res_op1;
    2315                 :           0 :                                                     res_op1 =  build_zero_cst (st);
    2316                 :           0 :                                                     tree _r;
    2317                 :           0 :                                                     _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
    2318                 :           0 :                                                     if (TREE_SIDE_EFFECTS (captures[2]))
    2319                 :           0 :                                                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    2320                 :           0 :                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 568, __FILE__, __LINE__, true);
    2321                 :           0 :                                                     return _r;
    2322                 :             :                                                   }
    2323                 :           0 : next_after_fail678:;
    2324                 :             :                                                 }
    2325                 :             :                                               else
    2326                 :             :                                                 {
    2327                 :           0 :                                                   if (cmp == GT_EXPR
    2328                 :             : )
    2329                 :             :                                                     {
    2330                 :           0 :                                                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail679;
    2331                 :           0 :                                                       {
    2332                 :           0 :                                                         tree res_op0;
    2333                 :           0 :                                                         {
    2334                 :           0 :                                                           tree _o1[1], _r1;
    2335                 :           0 :                                                           _o1[0] = captures[1];
    2336                 :           0 :                                                           if (TREE_TYPE (_o1[0]) != st)
    2337                 :             :                                                             {
    2338                 :           0 :                                                               _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, st, _o1[0]);
    2339                 :             :                                                             }
    2340                 :             :                                                           else
    2341                 :             :                                                             _r1 = _o1[0];
    2342                 :           0 :                                                           res_op0 = _r1;
    2343                 :             :                                                         }
    2344                 :           0 :                                                         tree res_op1;
    2345                 :           0 :                                                         res_op1 =  build_zero_cst (st);
    2346                 :           0 :                                                         tree _r;
    2347                 :           0 :                                                         _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
    2348                 :           0 :                                                         if (TREE_SIDE_EFFECTS (captures[2]))
    2349                 :           0 :                                                           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    2350                 :           0 :                                                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 569, __FILE__, __LINE__, true);
    2351                 :           0 :                                                         return _r;
    2352                 :             :                                                       }
    2353                 :           0 : next_after_fail679:;
    2354                 :             :                                                     }
    2355                 :             :                                                 }
    2356                 :             :                                             }
    2357                 :             :                                         }
    2358                 :             :                                   }
    2359                 :             :                                 }
    2360                 :             :                             }
    2361                 :             :                         }
    2362                 :             :                     }
    2363                 :             :                 }
    2364                 :             :             }
    2365                 :      911945 :       }
    2366                 :             :     }
    2367                 :             :   return NULL_TREE;
    2368                 :             : }
    2369                 :             : 
    2370                 :             : tree
    2371                 :       55725 : generic_simplify_442 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2372                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
    2373                 :             : {
    2374                 :       55725 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2375                 :       55725 :   {
    2376                 :       55725 :  bool wascmp;
    2377                 :       55725 :       if (bitwise_inverted_equal_p (captures[0], captures[1], wascmp)
    2378                 :       55725 :  && (!wascmp || element_precision (type) == 1)
    2379                 :             : )
    2380                 :             :         {
    2381                 :           1 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail786;
    2382                 :           1 :           {
    2383                 :           1 :             tree res_op0;
    2384                 :           1 :             res_op0 = captures[0];
    2385                 :           1 :             tree res_op1;
    2386                 :           1 :             res_op1 = captures[2];
    2387                 :           1 :             tree _r;
    2388                 :           1 :             _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
    2389                 :           1 :             if (TREE_SIDE_EFFECTS (captures[1]))
    2390                 :           0 :               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    2391                 :           1 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 641, __FILE__, __LINE__, true);
    2392                 :           1 :             return _r;
    2393                 :             :           }
    2394                 :           0 : next_after_fail786:;
    2395                 :             :         }
    2396                 :             :   }
    2397                 :       55724 :   return NULL_TREE;
    2398                 :             : }
    2399                 :             : 
    2400                 :             : tree
    2401                 :          63 : generic_simplify_449 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2402                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
    2403                 :             : {
    2404                 :          63 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2405                 :          63 :   if (INTEGRAL_TYPE_P (type)
    2406                 :          63 :  && INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
    2407                 :          63 :  && TREE_CODE (TREE_TYPE (captures[0])) != BOOLEAN_TYPE
    2408                 :         126 :  && (!TYPE_UNSIGNED (TREE_TYPE (captures[0]))
    2409                 :          17 :  || TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0])))
    2410                 :             : )
    2411                 :             :     {
    2412                 :          63 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail793;
    2413                 :          63 :       {
    2414                 :          63 :         tree res_op0;
    2415                 :          63 :         {
    2416                 :          63 :           tree _o1[1], _r1;
    2417                 :          63 :           _o1[0] = captures[0];
    2418                 :          63 :           if (TREE_TYPE (_o1[0]) != type)
    2419                 :             :             {
    2420                 :          20 :               _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
    2421                 :             :             }
    2422                 :             :           else
    2423                 :             :             _r1 = _o1[0];
    2424                 :          63 :           res_op0 = _r1;
    2425                 :             :         }
    2426                 :          63 :         tree res_op1;
    2427                 :          63 :         res_op1 = captures[1];
    2428                 :          63 :         tree _r;
    2429                 :          63 :         _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
    2430                 :          63 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 647, __FILE__, __LINE__, true);
    2431                 :          63 :         return _r;
    2432                 :             :       }
    2433                 :           0 : next_after_fail793:;
    2434                 :             :     }
    2435                 :             :   return NULL_TREE;
    2436                 :             : }
    2437                 :             : 
    2438                 :             : tree
    2439                 :       47504 : generic_simplify_458 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2440                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    2441                 :             :  const enum tree_code ARG_UNUSED (shift))
    2442                 :             : {
    2443                 :       47504 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2444                 :       47504 :   if (tree_nop_conversion_p (TREE_TYPE (captures[0]), TREE_TYPE (captures[1]))
    2445                 :       22322 :  && TYPE_PRECISION (type) <= HOST_BITS_PER_WIDE_INT
    2446                 :       22322 :  && tree_fits_uhwi_p (captures[4])
    2447                 :       22322 :  && tree_to_uhwi (captures[4]) > 0
    2448                 :       69826 :  && tree_to_uhwi (captures[4]) < TYPE_PRECISION (type)
    2449                 :             : )
    2450                 :             :     {
    2451                 :       22322 :       {
    2452                 :       22322 :  unsigned int shiftc = tree_to_uhwi (captures[4]);
    2453                 :       22322 :  unsigned HOST_WIDE_INT mask = TREE_INT_CST_LOW (captures[5]);
    2454                 :       22322 :  unsigned HOST_WIDE_INT newmask, zerobits = 0;
    2455                 :       22322 :  tree shift_type = TREE_TYPE (captures[2]);
    2456                 :       22322 :  unsigned int prec;
    2457                 :       22322 :  if (shift == LSHIFT_EXPR)
    2458                 :           0 :  zerobits = ((HOST_WIDE_INT_1U << shiftc) - 1);
    2459                 :       22322 :  else if (shift == RSHIFT_EXPR
    2460                 :       22322 :  && type_has_mode_precision_p (shift_type))
    2461                 :             :  {
    2462                 :       22322 :  prec = TYPE_PRECISION (TREE_TYPE (captures[2]));
    2463                 :       22322 :  tree arg00 = captures[3];
    2464                 :       22322 :  if (captures[2] != captures[3]
    2465                 :       22322 :  && TYPE_UNSIGNED (TREE_TYPE (captures[3])))
    2466                 :             :  {
    2467                 :       21915 :  tree inner_type = TREE_TYPE (captures[3]);
    2468                 :       21915 :  if (type_has_mode_precision_p (inner_type)
    2469                 :       21915 :  && TYPE_PRECISION (inner_type) < prec)
    2470                 :             :  {
    2471                 :          34 :  prec = TYPE_PRECISION (inner_type);
    2472                 :          34 :  if (shiftc < prec)
    2473                 :          34 :  shift_type = inner_type;
    2474                 :             :  }
    2475                 :             :  }
    2476                 :       22322 :  zerobits = HOST_WIDE_INT_M1U;
    2477                 :       22322 :  if (shiftc < prec)
    2478                 :             :  {
    2479                 :       22322 :  zerobits >>= HOST_BITS_PER_WIDE_INT - shiftc;
    2480                 :       22322 :  zerobits <<= prec - shiftc;
    2481                 :             :  }
    2482                 :       22322 :  if (!TYPE_UNSIGNED (TREE_TYPE (captures[2]))
    2483                 :       22322 :  && prec == TYPE_PRECISION (TREE_TYPE (captures[2])))
    2484                 :             :  {
    2485                 :          73 :  if ((mask & zerobits) == 0)
    2486                 :          59 :  shift_type = unsigned_type_for (TREE_TYPE (captures[2]));
    2487                 :             :  else
    2488                 :             :  zerobits = 0;
    2489                 :             :  }
    2490                 :             :  }
    2491                 :       22308 :           if ((mask & zerobits) == mask
    2492                 :             : )
    2493                 :             :             {
    2494                 :           0 :               if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail802;
    2495                 :           0 :               if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail802;
    2496                 :           0 :               if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail802;
    2497                 :           0 :               if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail802;
    2498                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail802;
    2499                 :           0 :               {
    2500                 :           0 :                 tree _r;
    2501                 :           0 :                 _r =  build_int_cst (type, 0);
    2502                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 655, __FILE__, __LINE__, true);
    2503                 :           0 :                 return _r;
    2504                 :             :               }
    2505                 :             : next_after_fail802:;
    2506                 :             :             }
    2507                 :             :           else
    2508                 :             :             {
    2509                 :       22322 :               {
    2510                 :       22322 :  newmask = mask | zerobits;
    2511                 :       22322 :                   if (newmask != mask && (newmask & (newmask + 1)) == 0
    2512                 :             : )
    2513                 :             :                     {
    2514                 :             :                       {
    2515                 :          65 :  for (prec = BITS_PER_UNIT;
    2516                 :         122 :  prec < HOST_BITS_PER_WIDE_INT; prec <<= 1)
    2517                 :         118 :  if (newmask == (HOST_WIDE_INT_1U << prec) - 1)
    2518                 :             :  break;
    2519                 :          57 :                           if (prec < HOST_BITS_PER_WIDE_INT
    2520                 :           4 :  || newmask == HOST_WIDE_INT_M1U
    2521                 :             : )
    2522                 :             :                             {
    2523                 :          57 :                               {
    2524                 :          57 :  tree newmaskt = build_int_cst_type (TREE_TYPE (captures[5]), newmask);
    2525                 :          57 :                                   if (!tree_int_cst_equal (newmaskt, captures[5])
    2526                 :             : )
    2527                 :             :                                     {
    2528                 :          57 :                                       if (shift_type != TREE_TYPE (captures[2])
    2529                 :             : )
    2530                 :             :                                         {
    2531                 :          47 :                                           if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail803;
    2532                 :          47 :                                           if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail803;
    2533                 :          47 :                                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail803;
    2534                 :          47 :                                           {
    2535                 :          47 :                                             tree res_op0;
    2536                 :          47 :                                             {
    2537                 :          47 :                                               tree _o1[1], _r1;
    2538                 :          47 :                                               {
    2539                 :          47 :                                                 tree _o2[2], _r2;
    2540                 :          47 :                                                 {
    2541                 :          47 :                                                   tree _o3[1], _r3;
    2542                 :          47 :                                                   _o3[0] = captures[2];
    2543                 :          47 :                                                   if (TREE_TYPE (_o3[0]) != shift_type)
    2544                 :             :                                                     {
    2545                 :          47 :                                                       _r3 = fold_build1_loc (loc, NOP_EXPR, shift_type, _o3[0]);
    2546                 :             :                                                     }
    2547                 :             :                                                   else
    2548                 :             :                                                     _r3 = _o3[0];
    2549                 :          47 :                                                   _o2[0] = _r3;
    2550                 :             :                                                 }
    2551                 :          47 :                                                 _o2[1] = captures[4];
    2552                 :          47 :                                                 _r2 = fold_build2_loc (loc, shift, shift_type, _o2[0], _o2[1]);
    2553                 :          47 :                                                 _o1[0] = _r2;
    2554                 :             :                                               }
    2555                 :          47 :                                               if (TREE_TYPE (_o1[0]) != type)
    2556                 :             :                                                 {
    2557                 :          47 :                                                   _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
    2558                 :             :                                                 }
    2559                 :             :                                               else
    2560                 :             :                                                 _r1 = _o1[0];
    2561                 :          47 :                                               res_op0 = _r1;
    2562                 :             :                                             }
    2563                 :          47 :                                             tree res_op1;
    2564                 :          47 :                                             res_op1 =  newmaskt;
    2565                 :          47 :                                             tree _r;
    2566                 :          47 :                                             _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
    2567                 :          47 :                                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 656, __FILE__, __LINE__, true);
    2568                 :          47 :                                             return _r;
    2569                 :             :                                           }
    2570                 :             : next_after_fail803:;
    2571                 :             :                                         }
    2572                 :             :                                       else
    2573                 :             :                                         {
    2574                 :          10 :                                           if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail804;
    2575                 :          10 :                                           if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail804;
    2576                 :          10 :                                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail804;
    2577                 :          10 :                                           {
    2578                 :          10 :                                             tree res_op0;
    2579                 :          10 :                                             res_op0 = captures[0];
    2580                 :          10 :                                             tree res_op1;
    2581                 :          10 :                                             res_op1 =  newmaskt;
    2582                 :          10 :                                             tree _r;
    2583                 :          10 :                                             _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
    2584                 :          10 :                                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 657, __FILE__, __LINE__, true);
    2585                 :          10 :                                             return _r;
    2586                 :             :                                           }
    2587                 :             : next_after_fail804:;
    2588                 :             :                                         }
    2589                 :             :                                     }
    2590                 :             :                               }
    2591                 :             :                             }
    2592                 :             :                       }
    2593                 :             :                     }
    2594                 :             :               }
    2595                 :             :             }
    2596                 :             :       }
    2597                 :             :     }
    2598                 :             :   return NULL_TREE;
    2599                 :             : }
    2600                 :             : 
    2601                 :             : tree
    2602                 :           0 : generic_simplify_480 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2603                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
    2604                 :             : {
    2605                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2606                 :           0 :   if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail867;
    2607                 :           0 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail867;
    2608                 :           0 :   {
    2609                 :           0 :     tree _r;
    2610                 :           0 :     _r = captures[1];
    2611                 :           0 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 683, __FILE__, __LINE__, true);
    2612                 :             :     return _r;
    2613                 :             :   }
    2614                 :             : next_after_fail867:;
    2615                 :             :   return NULL_TREE;
    2616                 :             : }
    2617                 :             : 
    2618                 :             : tree
    2619                 :           3 : generic_simplify_483 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2620                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    2621                 :             :  const combined_fn ARG_UNUSED (POPCOUNT),
    2622                 :             :  const combined_fn ARG_UNUSED (PARITY))
    2623                 :             : {
    2624                 :           3 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2625                 :           3 :   if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail871;
    2626                 :           3 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail871;
    2627                 :           3 :   {
    2628                 :           3 :     tree res_op0;
    2629                 :           3 :     res_op0 = captures[0];
    2630                 :           3 :     tree _r;
    2631                 :           3 :     _r = maybe_build_call_expr_loc (loc, PARITY, type, 1, res_op0);
    2632                 :           3 :     if (!_r)
    2633                 :           0 :       goto next_after_fail871;
    2634                 :           3 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 686, __FILE__, __LINE__, true);
    2635                 :             :     return _r;
    2636                 :             :   }
    2637                 :             : next_after_fail871:;
    2638                 :             :   return NULL_TREE;
    2639                 :             : }
    2640                 :             : 
    2641                 :             : tree
    2642                 :          28 : generic_simplify_486 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2643                 :             :  tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures))
    2644                 :             : {
    2645                 :          28 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2646                 :          28 :   if (element_precision (type) <= element_precision (TREE_TYPE (captures[0]))
    2647                 :          28 :  || !TYPE_UNSIGNED (TREE_TYPE (captures[0]))
    2648                 :             : )
    2649                 :             :     {
    2650                 :          28 :       if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail874;
    2651                 :          28 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail874;
    2652                 :          28 :       {
    2653                 :          28 :         tree res_op0;
    2654                 :          28 :         {
    2655                 :          28 :           tree _o1[1], _r1;
    2656                 :          28 :           _o1[0] = captures[0];
    2657                 :          28 :           _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
    2658                 :          28 :           res_op0 = _r1;
    2659                 :             :         }
    2660                 :          28 :         tree _r;
    2661                 :          28 :         _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
    2662                 :          28 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 689, __FILE__, __LINE__, true);
    2663                 :          28 :         return _r;
    2664                 :             :       }
    2665                 :             : next_after_fail874:;
    2666                 :             :     }
    2667                 :             :   return NULL_TREE;
    2668                 :             : }
    2669                 :             : 
    2670                 :             : tree
    2671                 :         145 : generic_simplify_490 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2672                 :             :  tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures))
    2673                 :             : {
    2674                 :         145 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2675                 :         145 :   if (element_precision (type) <= element_precision (TREE_TYPE (captures[0]))
    2676                 :         145 :  || !TYPE_UNSIGNED (TREE_TYPE (captures[0]))
    2677                 :             : )
    2678                 :             :     {
    2679                 :         145 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail878;
    2680                 :         145 :       {
    2681                 :         145 :         tree res_op0;
    2682                 :         145 :         {
    2683                 :         145 :           tree _o1[2], _r1;
    2684                 :         145 :           _o1[0] = captures[0];
    2685                 :         145 :           _o1[1] =  build_each_one_cst (TREE_TYPE (captures[0]));
    2686                 :         145 :           _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    2687                 :         145 :           res_op0 = _r1;
    2688                 :             :         }
    2689                 :         145 :         tree _r;
    2690                 :         145 :         _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
    2691                 :         145 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 693, __FILE__, __LINE__, true);
    2692                 :         145 :         return _r;
    2693                 :             :       }
    2694                 :           0 : next_after_fail878:;
    2695                 :             :     }
    2696                 :             :   return NULL_TREE;
    2697                 :             : }
    2698                 :             : 
    2699                 :             : tree
    2700                 :           0 : generic_simplify_492 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2701                 :             :  tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures))
    2702                 :             : {
    2703                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2704                 :           0 :   if (tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
    2705                 :             : )
    2706                 :             :     {
    2707                 :           0 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail880;
    2708                 :           0 :       {
    2709                 :           0 :         tree res_op0;
    2710                 :           0 :         {
    2711                 :           0 :           tree _o1[2], _r1;
    2712                 :           0 :           _o1[0] = captures[0];
    2713                 :           0 :           _o1[1] = captures[1];
    2714                 :           0 :           _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    2715                 :           0 :           res_op0 = _r1;
    2716                 :             :         }
    2717                 :           0 :         tree _r;
    2718                 :           0 :         _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
    2719                 :           0 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 695, __FILE__, __LINE__, true);
    2720                 :           0 :         return _r;
    2721                 :             :       }
    2722                 :           0 : next_after_fail880:;
    2723                 :             :     }
    2724                 :             :   return NULL_TREE;
    2725                 :             : }
    2726                 :             : 
    2727                 :             : tree
    2728                 :          16 : generic_simplify_499 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2729                 :             :  tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures))
    2730                 :             : {
    2731                 :          16 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2732                 :          16 :   if (ANY_INTEGRAL_TYPE_P (type) && !TYPE_OVERFLOW_SANITIZED (type)
    2733                 :             : )
    2734                 :             :     {
    2735                 :          16 :       {
    2736                 :          16 :  tree ptrdifftype = TREE_TYPE (captures[0]);
    2737                 :          16 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail888;
    2738                 :          16 :           {
    2739                 :          16 :             tree res_op0;
    2740                 :          16 :             {
    2741                 :          16 :               tree _o1[2], _r1;
    2742                 :          16 :               _o1[0] = captures[2];
    2743                 :          16 :               _o1[1] = captures[1];
    2744                 :          16 :               _r1 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ptrdifftype, _o1[0], _o1[1]);
    2745                 :          16 :               res_op0 = _r1;
    2746                 :             :             }
    2747                 :          16 :             tree _r;
    2748                 :          16 :             _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
    2749                 :          16 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 701, __FILE__, __LINE__, true);
    2750                 :          16 :             return _r;
    2751                 :             :           }
    2752                 :           0 : next_after_fail888:;
    2753                 :             :       }
    2754                 :             :     }
    2755                 :             :   return NULL_TREE;
    2756                 :             : }
    2757                 :             : 
    2758                 :             : tree
    2759                 :           0 : generic_simplify_505 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2760                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    2761                 :             :  const enum tree_code ARG_UNUSED (minmax))
    2762                 :             : {
    2763                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2764                 :           0 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail895;
    2765                 :           0 :   {
    2766                 :           0 :     tree _r;
    2767                 :           0 :     _r = captures[0];
    2768                 :           0 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 708, __FILE__, __LINE__, true);
    2769                 :             :     return _r;
    2770                 :             :   }
    2771                 :           0 : next_after_fail895:;
    2772                 :           0 :   return NULL_TREE;
    2773                 :             : }
    2774                 :             : 
    2775                 :             : tree
    2776                 :           0 : generic_simplify_512 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2777                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    2778                 :             :  const enum tree_code ARG_UNUSED (minmax),
    2779                 :             :  const enum tree_code ARG_UNUSED (cmp))
    2780                 :             : {
    2781                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2782                 :           0 :   {
    2783                 :           0 :  poly_int64 off0, off1;
    2784                 :           0 :  tree base0, base1;
    2785                 :           0 :  int equal = address_compare (cmp, TREE_TYPE (captures[0]), captures[1], captures[3], base0, base1,
    2786                 :             :  off0, off1,
    2787                 :             : 1
    2788                 :             : );
    2789                 :           0 :       if (equal == 1
    2790                 :             : )
    2791                 :             :         {
    2792                 :           0 :           if (minmax == MIN_EXPR
    2793                 :             : )
    2794                 :             :             {
    2795                 :           0 :               if (known_le (off0, off1)
    2796                 :             : )
    2797                 :             :                 {
    2798                 :           0 :                   if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail908;
    2799                 :           0 :                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail908;
    2800                 :           0 :                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail908;
    2801                 :           0 :                   {
    2802                 :           0 :                     tree _r;
    2803                 :           0 :                     _r = captures[0];
    2804                 :           0 :                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 712, __FILE__, __LINE__, true);
    2805                 :           0 :                     return _r;
    2806                 :             :                   }
    2807                 :           0 : next_after_fail908:;
    2808                 :             :                 }
    2809                 :             :               else
    2810                 :             :                 {
    2811                 :           0 :                   if (known_gt (off0, off1)
    2812                 :             : )
    2813                 :             :                     {
    2814                 :           0 :                       if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail909;
    2815                 :           0 :                       if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail909;
    2816                 :           0 :                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail909;
    2817                 :           0 :                       {
    2818                 :           0 :                         tree _r;
    2819                 :           0 :                         _r = captures[2];
    2820                 :           0 :                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 713, __FILE__, __LINE__, true);
    2821                 :           0 :                         return _r;
    2822                 :             :                       }
    2823                 :           0 : next_after_fail909:;
    2824                 :             :                     }
    2825                 :             :                 }
    2826                 :             :             }
    2827                 :             :           else
    2828                 :             :             {
    2829                 :           0 :               if (known_ge (off0, off1)
    2830                 :             : )
    2831                 :             :                 {
    2832                 :           0 :                   if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail910;
    2833                 :           0 :                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail910;
    2834                 :           0 :                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail910;
    2835                 :           0 :                   {
    2836                 :           0 :                     tree _r;
    2837                 :           0 :                     _r = captures[0];
    2838                 :           0 :                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 714, __FILE__, __LINE__, true);
    2839                 :           0 :                     return _r;
    2840                 :             :                   }
    2841                 :           0 : next_after_fail910:;
    2842                 :             :                 }
    2843                 :             :               else
    2844                 :             :                 {
    2845                 :           0 :                   if (known_lt (off0, off1)
    2846                 :             : )
    2847                 :             :                     {
    2848                 :           0 :                       if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail911;
    2849                 :           0 :                       if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail911;
    2850                 :           0 :                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail911;
    2851                 :           0 :                       {
    2852                 :           0 :                         tree _r;
    2853                 :           0 :                         _r = captures[2];
    2854                 :           0 :                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 715, __FILE__, __LINE__, true);
    2855                 :           0 :                         return _r;
    2856                 :             :                       }
    2857                 :           0 : next_after_fail911:;
    2858                 :             :                     }
    2859                 :             :                 }
    2860                 :             :             }
    2861                 :             :         }
    2862                 :             :   }
    2863                 :           0 :   return NULL_TREE;
    2864                 :             : }
    2865                 :             : 
    2866                 :             : tree
    2867                 :           0 : generic_simplify_533 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2868                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
    2869                 :             :  const enum tree_code ARG_UNUSED (cmp))
    2870                 :             : {
    2871                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2872                 :           0 :   if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail938;
    2873                 :           0 :   if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail938;
    2874                 :           0 :   if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail938;
    2875                 :           0 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail938;
    2876                 :           0 :   {
    2877                 :           0 :     tree _r;
    2878                 :           0 :     _r = captures[0];
    2879                 :           0 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 527, __FILE__, __LINE__, true);
    2880                 :             :     return _r;
    2881                 :             :   }
    2882                 :             : next_after_fail938:;
    2883                 :             :   return NULL_TREE;
    2884                 :             : }
    2885                 :             : 
    2886                 :             : tree
    2887                 :           0 : generic_simplify_541 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2888                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
    2889                 :             :  const combined_fn ARG_UNUSED (cond_len_op))
    2890                 :             : {
    2891                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2892                 :           0 :   {
    2893                 :           0 :  tree op_type = TREE_TYPE (captures[6]);
    2894                 :           0 :       if (inverse_conditions_p (captures[0], captures[2])
    2895                 :           0 :  && element_precision (type) == element_precision (op_type)
    2896                 :             : )
    2897                 :             :         {
    2898                 :           0 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail946;
    2899                 :           0 :           {
    2900                 :           0 :             tree res_op0;
    2901                 :           0 :             {
    2902                 :           0 :               tree _o1[7], _r1;
    2903                 :           0 :               _o1[0] = captures[2];
    2904                 :           0 :               _o1[1] = captures[3];
    2905                 :           0 :               _o1[2] = captures[4];
    2906                 :           0 :               _o1[3] = captures[5];
    2907                 :           0 :               {
    2908                 :           0 :                 tree _o2[1], _r2;
    2909                 :           0 :                 _o2[0] = captures[1];
    2910                 :           0 :                 if (TREE_TYPE (_o2[0]) != op_type)
    2911                 :             :                   {
    2912                 :           0 :                     _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, op_type, _o2[0]);
    2913                 :             :                   }
    2914                 :             :                 else
    2915                 :             :                   _r2 = _o2[0];
    2916                 :           0 :                 _o1[4] = _r2;
    2917                 :             :               }
    2918                 :           0 :               _o1[5] = captures[7];
    2919                 :           0 :               _o1[6] = captures[8];
    2920                 :           0 :               _r1 = maybe_build_call_expr_loc (loc, cond_len_op, TREE_TYPE (_o1[1]), 7, _o1[0], _o1[1], _o1[2], _o1[3], _o1[4], _o1[5], _o1[6]);
    2921                 :           0 :               if (!_r1)
    2922                 :           0 :                 goto next_after_fail946;
    2923                 :           0 :               res_op0 = _r1;
    2924                 :             :             }
    2925                 :           0 :             tree _r;
    2926                 :           0 :             _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
    2927                 :           0 :             if (TREE_SIDE_EFFECTS (captures[0]))
    2928                 :           0 :               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    2929                 :           0 :             if (TREE_SIDE_EFFECTS (captures[6]))
    2930                 :           0 :               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[6]), _r);
    2931                 :           0 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 741, __FILE__, __LINE__, true);
    2932                 :           0 :             return _r;
    2933                 :             :           }
    2934                 :             : next_after_fail946:;
    2935                 :             :         }
    2936                 :             :   }
    2937                 :             :   return NULL_TREE;
    2938                 :             : }
    2939                 :             : 
    2940                 :             : tree
    2941                 :           0 : generic_simplify_552 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2942                 :             :  tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
    2943                 :             :  const combined_fn ARG_UNUSED (tans),
    2944                 :             :  const combined_fn ARG_UNUSED (atans))
    2945                 :             : {
    2946                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2947                 :           0 :   if (flag_unsafe_math_optimizations
    2948                 :             : )
    2949                 :             :     {
    2950                 :           0 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail957;
    2951                 :           0 :       {
    2952                 :           0 :         tree _r;
    2953                 :           0 :         _r = captures[0];
    2954                 :           0 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 752, __FILE__, __LINE__, true);
    2955                 :           0 :         return _r;
    2956                 :             :       }
    2957                 :           0 : next_after_fail957:;
    2958                 :             :     }
    2959                 :             :   return NULL_TREE;
    2960                 :             : }
    2961                 :             : 
    2962                 :             : tree
    2963                 :           0 : generic_simplify_558 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2964                 :             :  tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
    2965                 :             :  const combined_fn ARG_UNUSED (froms),
    2966                 :             :  const combined_fn ARG_UNUSED (tos))
    2967                 :             : {
    2968                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2969                 :           0 :   if (optimize && canonicalize_math_p ()
    2970                 :             : )
    2971                 :             :     {
    2972                 :           0 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail963;
    2973                 :           0 :       {
    2974                 :           0 :         tree res_op0;
    2975                 :           0 :         {
    2976                 :           0 :           tree _o1[1], _r1;
    2977                 :           0 :           _o1[0] = captures[0];
    2978                 :           0 :           _r1 = maybe_build_call_expr_loc (loc, tos, TREE_TYPE (_o1[0]), 1, _o1[0]);
    2979                 :           0 :           if (!_r1)
    2980                 :           0 :             goto next_after_fail963;
    2981                 :           0 :           res_op0 = _r1;
    2982                 :             :         }
    2983                 :           0 :         tree _r;
    2984                 :           0 :         _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
    2985                 :           0 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 758, __FILE__, __LINE__, true);
    2986                 :           0 :         return _r;
    2987                 :             :       }
    2988                 :             : next_after_fail963:;
    2989                 :             :     }
    2990                 :             :   return NULL_TREE;
    2991                 :             : }
    2992                 :             : 
    2993                 :             : tree
    2994                 :           0 : generic_simplify_569 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2995                 :             :  tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
    2996                 :             :  const combined_fn ARG_UNUSED (SIGNBIT))
    2997                 :             : {
    2998                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2999                 :           0 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail974;
    3000                 :           0 :   {
    3001                 :           0 :     tree _r;
    3002                 :           0 :     _r =  integer_zero_node;
    3003                 :           0 :     if (TREE_SIDE_EFFECTS (captures[0]))
    3004                 :           0 :       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    3005                 :           0 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 769, __FILE__, __LINE__, true);
    3006                 :             :     return _r;
    3007                 :             :   }
    3008                 :           0 : next_after_fail974:;
    3009                 :           0 :   return NULL_TREE;
    3010                 :             : }
    3011                 :             : 
    3012                 :             : tree
    3013                 :           0 : generic_simplify_575 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    3014                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures))
    3015                 :             : {
    3016                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    3017                 :           0 :   if (canonicalize_math_after_vectorization_p ()
    3018                 :             : )
    3019                 :             :     {
    3020                 :             :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail980;
    3021                 :             :       {
    3022                 :             :         tree res_op0;
    3023                 :             :         res_op0 = captures[0];
    3024                 :             :         tree res_op1;
    3025                 :             :         res_op1 = captures[1];
    3026                 :             :         tree res_op2;
    3027                 :             :         res_op2 = captures[2];
    3028                 :             :         tree _r;
    3029                 :             :         _r = maybe_build_call_expr_loc (loc, CFN_FNMA, type, 3, res_op0, res_op1, res_op2);
    3030                 :             :         if (!_r)
    3031                 :             :           goto next_after_fail980;
    3032                 :             :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 775, __FILE__, __LINE__, true);
    3033                 :             :         return _r;
    3034                 :             :       }
    3035                 :           0 : next_after_fail980:;
    3036                 :             :     }
    3037                 :           0 :   return NULL_TREE;
    3038                 :             : }
    3039                 :             : 
    3040                 :             : tree
    3041                 :           0 : generic_simplify_585 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    3042                 :             :  tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
    3043                 :             :  const enum tree_code ARG_UNUSED (rot),
    3044                 :             :  const combined_fn ARG_UNUSED (popcount))
    3045                 :             : {
    3046                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    3047                 :           0 :   if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
    3048                 :           0 :  && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
    3049                 :           0 :  && (
    3050                 :             : 
    3051                 :           0 :  || !TREE_SIDE_EFFECTS (captures[3]))
    3052                 :             : )
    3053                 :             :     {
    3054                 :           0 :       {
    3055                 :           0 :  tree type0 = TREE_TYPE (captures[0]);
    3056                 :           0 :  tree type1 = TREE_TYPE (captures[1]);
    3057                 :           0 :  unsigned int prec0 = TYPE_PRECISION (type0);
    3058                 :           0 :  unsigned int prec1 = TYPE_PRECISION (type1);
    3059                 :           0 :           if (prec0 == prec1 || (prec0 > prec1 && TYPE_UNSIGNED (type1))
    3060                 :             : )
    3061                 :             :             {
    3062                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail990;
    3063                 :           0 :               {
    3064                 :           0 :                 tree res_op0;
    3065                 :           0 :                 {
    3066                 :           0 :                   tree _o1[1], _r1;
    3067                 :           0 :                   _o1[0] = captures[2];
    3068                 :           0 :                   if (TREE_TYPE (_o1[0]) != type0)
    3069                 :             :                     {
    3070                 :           0 :                       _r1 = fold_build1_loc (loc, NOP_EXPR, type0, _o1[0]);
    3071                 :             :                     }
    3072                 :             :                   else
    3073                 :             :                     _r1 = _o1[0];
    3074                 :           0 :                   res_op0 = _r1;
    3075                 :             :                 }
    3076                 :           0 :                 tree _r;
    3077                 :           0 :                 _r = maybe_build_call_expr_loc (loc, popcount, type, 1, res_op0);
    3078                 :           0 :                 if (!_r)
    3079                 :           0 :                   goto next_after_fail990;
    3080                 :           0 :                 if (TREE_SIDE_EFFECTS (captures[3]))
    3081                 :           0 :                   _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
    3082                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 782, __FILE__, __LINE__, true);
    3083                 :           0 :                 return _r;
    3084                 :             :               }
    3085                 :             : next_after_fail990:;
    3086                 :             :             }
    3087                 :             :       }
    3088                 :             :     }
    3089                 :             :   return NULL_TREE;
    3090                 :             : }
    3091                 :             : 
    3092                 :             : tree
    3093                 :           0 : generic_simplify_596 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    3094                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
    3095                 :             :  const enum tree_code ARG_UNUSED (plusminus),
    3096                 :             :  const enum tree_code ARG_UNUSED (minusplus))
    3097                 :             : {
    3098                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    3099                 :           0 :   if (!VECTOR_INTEGER_TYPE_P (type)
    3100                 :             :  && !FLOAT_WORDS_BIG_ENDIAN
    3101                 :           0 :  && (operand_equal_p (captures[0], captures[2], 0)
    3102                 :           0 :  ? operand_equal_p (captures[1], captures[3], 0)
    3103                 :           0 :  : operand_equal_p (captures[0], captures[3], 0) && operand_equal_p (captures[1], captures[2], 0))
    3104                 :             : )
    3105                 :             :     {
    3106                 :           0 :       {
    3107                 :           0 :  vec_perm_builder builder;
    3108                 :           0 :           if (tree_to_vec_perm_builder (&builder, captures[4])
    3109                 :             : )
    3110                 :             :             {
    3111                 :           0 :               {
    3112                 :           0 :  poly_uint64 nelts = TYPE_VECTOR_SUBPARTS (type);
    3113                 :           0 :  vec_perm_indices sel (builder, 2, nelts);
    3114                 :           0 :  machine_mode vec_mode = TYPE_MODE (type);
    3115                 :           0 :  machine_mode wide_mode;
    3116                 :           0 :  scalar_mode wide_elt_mode;
    3117                 :           0 :  poly_uint64 wide_nunits;
    3118                 :           0 :  scalar_mode inner_mode = GET_MODE_INNER (vec_mode);
    3119                 :           0 :                   if (VECTOR_MODE_P (vec_mode)
    3120                 :           0 :  && sel.series_p (0, 2, 0, 2)
    3121                 :           0 :  && sel.series_p (1, 2, nelts + 1, 2)
    3122                 :           0 :  && GET_MODE_2XWIDER_MODE (inner_mode).exists (&wide_elt_mode)
    3123                 :           0 :  && multiple_p (GET_MODE_NUNITS (vec_mode), 2, &wide_nunits)
    3124                 :           0 :  && related_vector_mode (vec_mode, wide_elt_mode,
    3125                 :           0 :  wide_nunits).exists (&wide_mode)
    3126                 :             : )
    3127                 :             :                     {
    3128                 :           0 :                       {
    3129                 :           0 :  tree stype
    3130                 :           0 :  = lang_hooks.types.type_for_mode (GET_MODE_INNER (wide_mode),
    3131                 :           0 :  TYPE_UNSIGNED (type));
    3132                 :           0 :  tree ntype = build_vector_type_for_mode (stype, wide_mode);
    3133                 :           0 :  const struct real_format *fmt_old = FLOAT_MODE_FORMAT (vec_mode);
    3134                 :           0 :  const struct real_format *fmt_new = FLOAT_MODE_FORMAT (wide_mode);
    3135                 :           0 :                           if (TYPE_MODE (stype) != BLKmode
    3136                 :           0 :  && VECTOR_TYPE_P (ntype)
    3137                 :           0 :  && fmt_old != NULL
    3138                 :           0 :  && fmt_new != NULL
    3139                 :             : )
    3140                 :             :                             {
    3141                 :           0 :                               {
    3142                 :           0 :  if (known_eq (GET_MODE_NUNITS (wide_mode), 1)
    3143                 :           0 :  && !target_supports_op_p (ntype, NEGATE_EXPR, optab_vector))
    3144                 :             :  ntype = stype;
    3145                 :           0 :                                   if (fmt_new->signbit_rw
    3146                 :           0 :  == fmt_old->signbit_rw + GET_MODE_UNIT_BITSIZE (vec_mode)
    3147                 :           0 :  && fmt_new->signbit_rw == fmt_new->signbit_ro
    3148                 :           0 :  && targetm.can_change_mode_class (TYPE_MODE (ntype),
    3149                 :           0 :  TYPE_MODE (type), ALL_REGS)
    3150                 :           0 :  && ((optimize_vectors_before_lowering_p ()
    3151                 :           0 :  && VECTOR_TYPE_P (ntype))
    3152                 :           0 :  || target_supports_op_p (ntype, NEGATE_EXPR, optab_vector))
    3153                 :             : )
    3154                 :             :                                     {
    3155                 :           0 :                                       if (plusminus == PLUS_EXPR
    3156                 :             : )
    3157                 :             :                                         {
    3158                 :           0 :                                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1002;
    3159                 :           0 :                                           {
    3160                 :           0 :                                             tree res_op0;
    3161                 :           0 :                                             {
    3162                 :           0 :                                               tree _o1[1], _r1;
    3163                 :           0 :                                               {
    3164                 :           0 :                                                 tree _o2[1], _r2;
    3165                 :           0 :                                                 {
    3166                 :           0 :                                                   tree _o3[1], _r3;
    3167                 :           0 :                                                   _o3[0] = captures[3];
    3168                 :           0 :                                                   if (TREE_TYPE (_o3[0]) != ntype)
    3169                 :             :                                                     {
    3170                 :           0 :                                                       _r3 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, ntype, _o3[0]);
    3171                 :             :                                                     }
    3172                 :             :                                                   else
    3173                 :             :                                                     _r3 = _o3[0];
    3174                 :           0 :                                                   _o2[0] = _r3;
    3175                 :             :                                                 }
    3176                 :           0 :                                                 _r2 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
    3177                 :           0 :                                                 _o1[0] = _r2;
    3178                 :             :                                               }
    3179                 :           0 :                                               if (TREE_TYPE (_o1[0]) != type)
    3180                 :             :                                                 {
    3181                 :           0 :                                                   _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o1[0]);
    3182                 :             :                                                 }
    3183                 :             :                                               else
    3184                 :             :                                                 _r1 = _o1[0];
    3185                 :           0 :                                               res_op0 = _r1;
    3186                 :             :                                             }
    3187                 :           0 :                                             tree res_op1;
    3188                 :           0 :                                             res_op1 = captures[2];
    3189                 :           0 :                                             tree _r;
    3190                 :           0 :                                             _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
    3191                 :           0 :                                             if (TREE_SIDE_EFFECTS (captures[0]))
    3192                 :           0 :                                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    3193                 :           0 :                                             if (TREE_SIDE_EFFECTS (captures[1]))
    3194                 :           0 :                                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    3195                 :           0 :                                             if (TREE_SIDE_EFFECTS (captures[4]))
    3196                 :           0 :                                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[4]), _r);
    3197                 :           0 :                                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 790, __FILE__, __LINE__, true);
    3198                 :           0 :                                             return _r;
    3199                 :             :                                           }
    3200                 :           0 : next_after_fail1002:;
    3201                 :             :                                         }
    3202                 :             :                                       else
    3203                 :             :                                         {
    3204                 :           0 :                                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1003;
    3205                 :           0 :                                           {
    3206                 :           0 :                                             tree res_op0;
    3207                 :           0 :                                             res_op0 = captures[0];
    3208                 :           0 :                                             tree res_op1;
    3209                 :           0 :                                             {
    3210                 :           0 :                                               tree _o1[1], _r1;
    3211                 :           0 :                                               {
    3212                 :           0 :                                                 tree _o2[1], _r2;
    3213                 :           0 :                                                 {
    3214                 :           0 :                                                   tree _o3[1], _r3;
    3215                 :           0 :                                                   _o3[0] = captures[1];
    3216                 :           0 :                                                   if (TREE_TYPE (_o3[0]) != ntype)
    3217                 :             :                                                     {
    3218                 :           0 :                                                       _r3 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, ntype, _o3[0]);
    3219                 :             :                                                     }
    3220                 :             :                                                   else
    3221                 :             :                                                     _r3 = _o3[0];
    3222                 :           0 :                                                   _o2[0] = _r3;
    3223                 :             :                                                 }
    3224                 :           0 :                                                 _r2 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
    3225                 :           0 :                                                 _o1[0] = _r2;
    3226                 :             :                                               }
    3227                 :           0 :                                               if (TREE_TYPE (_o1[0]) != type)
    3228                 :             :                                                 {
    3229                 :           0 :                                                   _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o1[0]);
    3230                 :             :                                                 }
    3231                 :             :                                               else
    3232                 :             :                                                 _r1 = _o1[0];
    3233                 :           0 :                                               res_op1 = _r1;
    3234                 :             :                                             }
    3235                 :           0 :                                             tree _r;
    3236                 :           0 :                                             _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
    3237                 :           0 :                                             if (TREE_SIDE_EFFECTS (captures[2]))
    3238                 :           0 :                                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    3239                 :           0 :                                             if (TREE_SIDE_EFFECTS (captures[3]))
    3240                 :           0 :                                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
    3241                 :           0 :                                             if (TREE_SIDE_EFFECTS (captures[4]))
    3242                 :           0 :                                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[4]), _r);
    3243                 :           0 :                                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 791, __FILE__, __LINE__, true);
    3244                 :           0 :                                             return _r;
    3245                 :             :                                           }
    3246                 :           0 : next_after_fail1003:;
    3247                 :             :                                         }
    3248                 :             :                                     }
    3249                 :             :                               }
    3250                 :             :                             }
    3251                 :             :                       }
    3252                 :             :                     }
    3253                 :           0 :               }
    3254                 :             :             }
    3255                 :           0 :       }
    3256                 :             :     }
    3257                 :             :   return NULL_TREE;
    3258                 :             : }
    3259                 :             : 
    3260                 :             : tree
    3261                 :        1330 : generic_simplify_CONJ_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0)
    3262                 :             : {
    3263                 :        1330 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    3264                 :        1330 :   switch (TREE_CODE (_p0))
    3265                 :             :     {
    3266                 :           0 :     CASE_CONVERT:
    3267                 :           0 :       {
    3268                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
    3269                 :           0 :         switch (TREE_CODE (_q20))
    3270                 :             :           {
    3271                 :           0 :           case CONJ_EXPR:
    3272                 :           0 :             {
    3273                 :           0 :               tree _q30 = TREE_OPERAND (_q20, 0);
    3274                 :           0 :               {
    3275                 :           0 :                 tree captures[1] ATTRIBUTE_UNUSED = { _q30 };
    3276                 :           0 :                 tree res = generic_simplify_525 (loc, type, _p0, captures);
    3277                 :           0 :                 if (res) return res;
    3278                 :             :               }
    3279                 :           0 :               break;
    3280                 :             :             }
    3281                 :           0 :           case COMPLEX_EXPR:
    3282                 :           0 :             {
    3283                 :           0 :               tree _q30 = TREE_OPERAND (_q20, 0);
    3284                 :           0 :               tree _q31 = TREE_OPERAND (_q20, 1);
    3285                 :           0 :               {
    3286                 :           0 :                 tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31 };
    3287                 :           0 :                 {
    3288                 :           0 :  tree itype = TREE_TYPE (type);
    3289                 :           0 :                     if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1122;
    3290                 :           0 :                     {
    3291                 :           0 :                       tree res_op0;
    3292                 :           0 :                       {
    3293                 :           0 :                         tree _o1[1], _r1;
    3294                 :           0 :                         _o1[0] = captures[2];
    3295                 :           0 :                         if (TREE_TYPE (_o1[0]) != itype)
    3296                 :             :                           {
    3297                 :           0 :                             _r1 = fold_build1_loc (loc, NOP_EXPR, itype, _o1[0]);
    3298                 :             :                           }
    3299                 :             :                         else
    3300                 :             :                           _r1 = _o1[0];
    3301                 :           0 :                         res_op0 = _r1;
    3302                 :             :                       }
    3303                 :           0 :                       tree res_op1;
    3304                 :           0 :                       {
    3305                 :           0 :                         tree _o1[1], _r1;
    3306                 :           0 :                         {
    3307                 :           0 :                           tree _o2[1], _r2;
    3308                 :           0 :                           _o2[0] = captures[3];
    3309                 :           0 :                           if (TREE_TYPE (_o2[0]) != itype)
    3310                 :             :                             {
    3311                 :           0 :                               _r2 = fold_build1_loc (loc, NOP_EXPR, itype, _o2[0]);
    3312                 :             :                             }
    3313                 :             :                           else
    3314                 :             :                             _r2 = _o2[0];
    3315                 :           0 :                           _o1[0] = _r2;
    3316                 :             :                         }
    3317                 :           0 :                         _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
    3318                 :           0 :                         res_op1 = _r1;
    3319                 :             :                       }
    3320                 :           0 :                       tree _r;
    3321                 :           0 :                       _r = fold_build2_loc (loc, COMPLEX_EXPR, type, res_op0, res_op1);
    3322                 :           0 :                       if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 849, __FILE__, __LINE__, true);
    3323                 :           0 :                       return _r;
    3324                 :             :                     }
    3325                 :           0 : next_after_fail1122:;
    3326                 :             :                 }
    3327                 :             :               }
    3328                 :           0 :               break;
    3329                 :             :             }
    3330                 :             :           default:;
    3331                 :             :           }
    3332                 :             :         break;
    3333                 :             :       }
    3334                 :           1 :     case CONJ_EXPR:
    3335                 :           1 :       {
    3336                 :           1 :         tree _q20 = TREE_OPERAND (_p0, 0);
    3337                 :           1 :         {
    3338                 :           1 :           tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
    3339                 :           1 :           tree res = generic_simplify_525 (loc, type, _p0, captures);
    3340                 :           1 :           if (res) return res;
    3341                 :             :         }
    3342                 :           0 :         break;
    3343                 :             :       }
    3344                 :          12 :     case COMPLEX_EXPR:
    3345                 :          12 :       {
    3346                 :          12 :         tree _q20 = TREE_OPERAND (_p0, 0);
    3347                 :          12 :         tree _q21 = TREE_OPERAND (_p0, 1);
    3348                 :          12 :         {
    3349                 :          12 :           tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21 };
    3350                 :          12 :           {
    3351                 :          12 :  tree itype = TREE_TYPE (type);
    3352                 :          12 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1123;
    3353                 :          12 :               {
    3354                 :          12 :                 tree res_op0;
    3355                 :          12 :                 {
    3356                 :          12 :                   tree _o1[1], _r1;
    3357                 :          12 :                   _o1[0] = captures[2];
    3358                 :          12 :                   if (TREE_TYPE (_o1[0]) != itype)
    3359                 :             :                     {
    3360                 :           0 :                       _r1 = fold_build1_loc (loc, NOP_EXPR, itype, _o1[0]);
    3361                 :             :                     }
    3362                 :             :                   else
    3363                 :             :                     _r1 = _o1[0];
    3364                 :          12 :                   res_op0 = _r1;
    3365                 :             :                 }
    3366                 :          12 :                 tree res_op1;
    3367                 :          12 :                 {
    3368                 :          12 :                   tree _o1[1], _r1;
    3369                 :          12 :                   {
    3370                 :          12 :                     tree _o2[1], _r2;
    3371                 :          12 :                     _o2[0] = captures[3];
    3372                 :          12 :                     if (TREE_TYPE (_o2[0]) != itype)
    3373                 :             :                       {
    3374                 :           0 :                         _r2 = fold_build1_loc (loc, NOP_EXPR, itype, _o2[0]);
    3375                 :             :                       }
    3376                 :             :                     else
    3377                 :             :                       _r2 = _o2[0];
    3378                 :          12 :                     _o1[0] = _r2;
    3379                 :             :                   }
    3380                 :          12 :                   _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
    3381                 :          12 :                   res_op1 = _r1;
    3382                 :             :                 }
    3383                 :          12 :                 tree _r;
    3384                 :          12 :                 _r = fold_build2_loc (loc, COMPLEX_EXPR, type, res_op0, res_op1);
    3385                 :          12 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 849, __FILE__, __LINE__, true);
    3386                 :          12 :                 return _r;
    3387                 :             :               }
    3388                 :           0 : next_after_fail1123:;
    3389                 :             :           }
    3390                 :             :         }
    3391                 :           0 :         break;
    3392                 :             :       }
    3393                 :             :     default:;
    3394                 :             :     }
    3395                 :             :   return NULL_TREE;
    3396                 :             : }
    3397                 :             : 
    3398                 :             : tree
    3399                 :    32618977 : generic_simplify_MINUS_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
    3400                 :             : {
    3401                 :    32618977 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    3402                 :    32618977 :   if (integer_zerop (_p1))
    3403                 :             :     {
    3404                 :     2108578 :       {
    3405                 :     2108578 :         tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
    3406                 :     2108578 :         if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1153;
    3407                 :     2108578 :         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1153;
    3408                 :     2108578 :         {
    3409                 :     2108578 :           tree res_op0;
    3410                 :     2108578 :           res_op0 = captures[0];
    3411                 :     2108578 :           tree _r;
    3412                 :     2108578 :           _r = non_lvalue_loc (loc, res_op0);
    3413                 :     2108578 :           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 850, __FILE__, __LINE__, true);
    3414                 :     2108578 :           return _r;
    3415                 :             :         }
    3416                 :             : next_after_fail1153:;
    3417                 :             :       }
    3418                 :             :     }
    3419                 :    30510399 :   if (real_zerop (_p1))
    3420                 :             :     {
    3421                 :        1140 :       {
    3422                 :        1140 :         tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    3423                 :        1140 :         if (fold_real_zero_addition_p (type, captures[0], captures[1], 1)
    3424                 :             : )
    3425                 :             :           {
    3426                 :         752 :             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1154;
    3427                 :         752 :             {
    3428                 :         752 :               tree res_op0;
    3429                 :         752 :               res_op0 = captures[0];
    3430                 :         752 :               tree _r;
    3431                 :         752 :               _r = non_lvalue_loc (loc, res_op0);
    3432                 :         752 :               if (TREE_SIDE_EFFECTS (captures[1]))
    3433                 :           0 :                 _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    3434                 :         752 :               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 870, __FILE__, __LINE__, true);
    3435                 :         752 :               return _r;
    3436                 :             :             }
    3437                 :           0 : next_after_fail1154:;
    3438                 :             :           }
    3439                 :             :       }
    3440                 :             :     }
    3441                 :    30509647 :   switch (TREE_CODE (_p0))
    3442                 :             :     {
    3443                 :     2243192 :     case PLUS_EXPR:
    3444                 :     2243192 :       {
    3445                 :     2243192 :         tree _q20 = TREE_OPERAND (_p0, 0);
    3446                 :     2243192 :         tree _q21 = TREE_OPERAND (_p0, 1);
    3447                 :     2243192 :         switch (TREE_CODE (_q21))
    3448                 :             :           {
    3449                 :      161699 :           case REAL_CST:
    3450                 :      161699 :             {
    3451                 :      161699 :               switch (TREE_CODE (_p1))
    3452                 :             :                 {
    3453                 :          11 :                 case REAL_CST:
    3454                 :          11 :                   {
    3455                 :          11 :                     {
    3456                 :          11 :                       tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
    3457                 :          11 :                       tree res = generic_simplify_4 (loc, type, _p0, _p1, captures, MINUS_EXPR, PLUS_EXPR);
    3458                 :          11 :                       if (res) return res;
    3459                 :             :                     }
    3460                 :           8 :                     break;
    3461                 :             :                   }
    3462                 :             :                 default:;
    3463                 :             :                 }
    3464                 :             :               break;
    3465                 :             :             }
    3466                 :             :           default:;
    3467                 :             :           }
    3468                 :             :         break;
    3469                 :             :       }
    3470                 :     1169339 :     case MINUS_EXPR:
    3471                 :     1169339 :       {
    3472                 :     1169339 :         tree _q20 = TREE_OPERAND (_p0, 0);
    3473                 :     1169339 :         tree _q21 = TREE_OPERAND (_p0, 1);
    3474                 :     1169339 :         switch (TREE_CODE (_q21))
    3475                 :             :           {
    3476                 :      101594 :           case REAL_CST:
    3477                 :      101594 :             {
    3478                 :      101594 :               switch (TREE_CODE (_p1))
    3479                 :             :                 {
    3480                 :          40 :                 case REAL_CST:
    3481                 :          40 :                   {
    3482                 :          40 :                     {
    3483                 :          40 :                       tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
    3484                 :          40 :                       tree res = generic_simplify_4 (loc, type, _p0, _p1, captures, MINUS_EXPR, MINUS_EXPR);
    3485                 :          40 :                       if (res) return res;
    3486                 :             :                     }
    3487                 :          38 :                     break;
    3488                 :             :                   }
    3489                 :             :                 default:;
    3490                 :             :                 }
    3491                 :             :               break;
    3492                 :             :             }
    3493                 :             :           default:;
    3494                 :             :           }
    3495                 :             :         break;
    3496                 :             :       }
    3497                 :    30509642 :     default:;
    3498                 :             :     }
    3499                 :    30509642 :   if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
    3500                 :             :     {
    3501                 :      182071 :       {
    3502                 :      182071 :         tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
    3503                 :      181320 :         if (!FLOAT_TYPE_P (type)
    3504                 :      182072 :  || (!tree_expr_maybe_nan_p (captures[0])
    3505                 :         107 :  && !tree_expr_maybe_infinite_p (captures[0])
    3506                 :          15 :  && (!HONOR_SIGN_DEPENDENT_ROUNDING (type)
    3507                 :           1 :  || !HONOR_SIGNED_ZEROS (type)))
    3508                 :             : )
    3509                 :             :           {
    3510                 :      181333 :             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1155;
    3511                 :      181333 :             {
    3512                 :      181333 :               tree _r;
    3513                 :      181333 :               _r =  build_zero_cst (type);
    3514                 :      181333 :               if (TREE_SIDE_EFFECTS (captures[0]))
    3515                 :          36 :                 _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    3516                 :      181333 :               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 871, __FILE__, __LINE__, true);
    3517                 :      181333 :               return _r;
    3518                 :             :             }
    3519                 :           0 : next_after_fail1155:;
    3520                 :             :           }
    3521                 :             :       }
    3522                 :             :     }
    3523                 :    30328309 :   switch (TREE_CODE (_p0))
    3524                 :             :     {
    3525                 :     8229180 :     CASE_CONVERT:
    3526                 :     8229180 :       {
    3527                 :     8229180 :         tree _q20 = TREE_OPERAND (_p0, 0);
    3528                 :     8229180 :         switch (TREE_CODE (_p1))
    3529                 :             :           {
    3530                 :     4045837 :           CASE_CONVERT:
    3531                 :     4045837 :             {
    3532                 :     4045837 :               tree _q40 = TREE_OPERAND (_p1, 0);
    3533                 :     4045837 :               switch (TREE_CODE (_q40))
    3534                 :             :                 {
    3535                 :      103262 :                 case MULT_EXPR:
    3536                 :      103262 :                   {
    3537                 :      103262 :                     tree _q50 = TREE_OPERAND (_q40, 0);
    3538                 :      103262 :                     tree _q51 = TREE_OPERAND (_q40, 1);
    3539                 :      103262 :                     switch (TREE_CODE (_q50))
    3540                 :             :                       {
    3541                 :          21 :                       case TRUNC_DIV_EXPR:
    3542                 :          21 :                         {
    3543                 :          21 :                           tree _q60 = TREE_OPERAND (_q50, 0);
    3544                 :          21 :                           tree _q61 = TREE_OPERAND (_q50, 1);
    3545                 :          21 :                           if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q20, 0))
    3546                 :             :                             {
    3547                 :          21 :                               if ((_q51 == _q61 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q61, 0))
    3548                 :             :                                 {
    3549                 :          21 :                                   {
    3550                 :          21 :                                     tree captures[4] ATTRIBUTE_UNUSED = { _q60, _q61, _q20, _q61 };
    3551                 :          21 :                                     tree res = generic_simplify_40 (loc, type, _p0, _p1, captures);
    3552                 :          21 :                                     if (res) return res;
    3553                 :             :                                   }
    3554                 :             :                                 }
    3555                 :             :                             }
    3556                 :             :                           break;
    3557                 :             :                         }
    3558                 :      103241 :                       default:;
    3559                 :             :                       }
    3560                 :      103241 :                     switch (TREE_CODE (_q51))
    3561                 :             :                       {
    3562                 :           0 :                       case TRUNC_DIV_EXPR:
    3563                 :           0 :                         {
    3564                 :           0 :                           tree _q70 = TREE_OPERAND (_q51, 0);
    3565                 :           0 :                           tree _q71 = TREE_OPERAND (_q51, 1);
    3566                 :           0 :                           if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || operand_equal_p (_q70, _q20, 0))
    3567                 :             :                             {
    3568                 :           0 :                               if ((_q71 == _q50 && ! TREE_SIDE_EFFECTS (_q71)) || operand_equal_p (_q71, _q50, 0))
    3569                 :             :                                 {
    3570                 :           0 :                                   {
    3571                 :           0 :                                     tree captures[4] ATTRIBUTE_UNUSED = { _q70, _q71, _q20, _q50 };
    3572                 :           0 :                                     tree res = generic_simplify_40 (loc, type, _p0, _p1, captures);
    3573                 :           0 :                                     if (res) return res;
    3574                 :             :                                   }
    3575                 :             :                                 }
    3576                 :             :                             }
    3577                 :             :                           break;
    3578                 :             :                         }
    3579                 :             :                       default:;
    3580                 :             :                       }
    3581                 :             :                     break;
    3582                 :             :                   }
    3583                 :             :                 default:;
    3584                 :             :                 }
    3585                 :             :               break;
    3586                 :             :             }
    3587                 :      154870 :           case MULT_EXPR:
    3588                 :      154870 :             {
    3589                 :      154870 :               tree _q40 = TREE_OPERAND (_p1, 0);
    3590                 :      154870 :               tree _q41 = TREE_OPERAND (_p1, 1);
    3591                 :      154870 :               switch (TREE_CODE (_q40))
    3592                 :             :                 {
    3593                 :        1928 :                 case TRUNC_DIV_EXPR:
    3594                 :        1928 :                   {
    3595                 :        1928 :                     tree _q50 = TREE_OPERAND (_q40, 0);
    3596                 :        1928 :                     tree _q51 = TREE_OPERAND (_q40, 1);
    3597                 :        1928 :                     if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
    3598                 :             :                       {
    3599                 :          14 :                         if ((_q41 == _q51 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _q51, 0))
    3600                 :             :                           {
    3601                 :          14 :                             {
    3602                 :          14 :                               tree captures[4] ATTRIBUTE_UNUSED = { _q50, _q51, _q20, _q51 };
    3603                 :          14 :                               tree res = generic_simplify_40 (loc, type, _p0, _p1, captures);
    3604                 :          14 :                               if (res) return res;
    3605                 :             :                             }
    3606                 :             :                           }
    3607                 :             :                       }
    3608                 :             :                     break;
    3609                 :             :                   }
    3610                 :      154856 :                 default:;
    3611                 :             :                 }
    3612                 :      154856 :               switch (TREE_CODE (_q41))
    3613                 :             :                 {
    3614                 :           0 :                 case TRUNC_DIV_EXPR:
    3615                 :           0 :                   {
    3616                 :           0 :                     tree _q60 = TREE_OPERAND (_q41, 0);
    3617                 :           0 :                     tree _q61 = TREE_OPERAND (_q41, 1);
    3618                 :           0 :                     if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q20, 0))
    3619                 :             :                       {
    3620                 :           0 :                         if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || operand_equal_p (_q61, _q40, 0))
    3621                 :             :                           {
    3622                 :           0 :                             {
    3623                 :           0 :                               tree captures[4] ATTRIBUTE_UNUSED = { _q60, _q61, _q20, _q40 };
    3624                 :           0 :                               tree res = generic_simplify_40 (loc, type, _p0, _p1, captures);
    3625                 :           0 :                               if (res) return res;
    3626                 :             :                             }
    3627                 :             :                           }
    3628                 :             :                       }
    3629                 :             :                     break;
    3630                 :             :                   }
    3631                 :             :                 default:;
    3632                 :             :                 }
    3633                 :             :               break;
    3634                 :             :             }
    3635                 :             :           default:;
    3636                 :             :           }
    3637                 :             :         break;
    3638                 :             :       }
    3639                 :    30328274 :     default:;
    3640                 :             :     }
    3641                 :    30328274 :   switch (TREE_CODE (_p1))
    3642                 :             :     {
    3643                 :     7263570 :     CASE_CONVERT:
    3644                 :     7263570 :       {
    3645                 :     7263570 :         tree _q30 = TREE_OPERAND (_p1, 0);
    3646                 :     7263570 :         switch (TREE_CODE (_q30))
    3647                 :             :           {
    3648                 :      138846 :           case MULT_EXPR:
    3649                 :      138846 :             {
    3650                 :      138846 :               tree _q40 = TREE_OPERAND (_q30, 0);
    3651                 :      138846 :               tree _q41 = TREE_OPERAND (_q30, 1);
    3652                 :      138846 :               switch (TREE_CODE (_q40))
    3653                 :             :                 {
    3654                 :          12 :                 case TRUNC_DIV_EXPR:
    3655                 :          12 :                   {
    3656                 :          12 :                     tree _q50 = TREE_OPERAND (_q40, 0);
    3657                 :          12 :                     tree _q51 = TREE_OPERAND (_q40, 1);
    3658                 :          12 :                     if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _p0, 0))
    3659                 :             :                       {
    3660                 :           2 :                         if ((_q41 == _q51 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _q51, 0))
    3661                 :             :                           {
    3662                 :           2 :                             {
    3663                 :           2 :                               tree captures[4] ATTRIBUTE_UNUSED = { _q50, _q51, _p0, _q51 };
    3664                 :           2 :                               tree res = generic_simplify_40 (loc, type, _p0, _p1, captures);
    3665                 :           2 :                               if (res) return res;
    3666                 :             :                             }
    3667                 :             :                           }
    3668                 :             :                       }
    3669                 :             :                     break;
    3670                 :             :                   }
    3671                 :      138844 :                 default:;
    3672                 :             :                 }
    3673                 :      138844 :               switch (TREE_CODE (_q41))
    3674                 :             :                 {
    3675                 :           0 :                 case TRUNC_DIV_EXPR:
    3676                 :           0 :                   {
    3677                 :           0 :                     tree _q60 = TREE_OPERAND (_q41, 0);
    3678                 :           0 :                     tree _q61 = TREE_OPERAND (_q41, 1);
    3679                 :           0 :                     if ((_q60 == _p0 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _p0, 0))
    3680                 :             :                       {
    3681                 :           0 :                         if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || operand_equal_p (_q61, _q40, 0))
    3682                 :             :                           {
    3683                 :           0 :                             {
    3684                 :           0 :                               tree captures[4] ATTRIBUTE_UNUSED = { _q60, _q61, _p0, _q40 };
    3685                 :           0 :                               tree res = generic_simplify_40 (loc, type, _p0, _p1, captures);
    3686                 :           0 :                               if (res) return res;
    3687                 :             :                             }
    3688                 :             :                           }
    3689                 :             :                       }
    3690                 :             :                     break;
    3691                 :             :                   }
    3692                 :             :                 default:;
    3693                 :             :                 }
    3694                 :             :               break;
    3695                 :             :             }
    3696                 :             :           default:;
    3697                 :             :           }
    3698                 :             :         break;
    3699                 :             :       }
    3700                 :     2130795 :     case MULT_EXPR:
    3701                 :     2130795 :       {
    3702                 :     2130795 :         tree _q30 = TREE_OPERAND (_p1, 0);
    3703                 :     2130795 :         tree _q31 = TREE_OPERAND (_p1, 1);
    3704                 :     2130795 :         switch (TREE_CODE (_q30))
    3705                 :             :           {
    3706                 :        2367 :           case TRUNC_DIV_EXPR:
    3707                 :        2367 :             {
    3708                 :        2367 :               tree _q40 = TREE_OPERAND (_q30, 0);
    3709                 :        2367 :               tree _q41 = TREE_OPERAND (_q30, 1);
    3710                 :        2367 :               if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _p0, 0))
    3711                 :             :                 {
    3712                 :          52 :                   if ((_q31 == _q41 && ! TREE_SIDE_EFFECTS (_q31)) || operand_equal_p (_q31, _q41, 0))
    3713                 :             :                     {
    3714                 :          52 :                       {
    3715                 :          52 :                         tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q41, _p0, _q41 };
    3716                 :          52 :                         tree res = generic_simplify_40 (loc, type, _p0, _p1, captures);
    3717                 :          52 :                         if (res) return res;
    3718                 :             :                       }
    3719                 :             :                     }
    3720                 :             :                 }
    3721                 :             :               break;
    3722                 :             :             }
    3723                 :     2130743 :           default:;
    3724                 :             :           }
    3725                 :     2130743 :         switch (TREE_CODE (_q31))
    3726                 :             :           {
    3727                 :           0 :           case TRUNC_DIV_EXPR:
    3728                 :           0 :             {
    3729                 :           0 :               tree _q50 = TREE_OPERAND (_q31, 0);
    3730                 :           0 :               tree _q51 = TREE_OPERAND (_q31, 1);
    3731                 :           0 :               if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _p0, 0))
    3732                 :             :                 {
    3733                 :           0 :                   if ((_q51 == _q30 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q30, 0))
    3734                 :             :                     {
    3735                 :           0 :                       {
    3736                 :           0 :                         tree captures[4] ATTRIBUTE_UNUSED = { _q50, _q51, _p0, _q30 };
    3737                 :           0 :                         tree res = generic_simplify_40 (loc, type, _p0, _p1, captures);
    3738                 :           0 :                         if (res) return res;
    3739                 :             :                       }
    3740                 :             :                     }
    3741                 :             :                 }
    3742                 :             :               break;
    3743                 :             :             }
    3744                 :             :           default:;
    3745                 :             :           }
    3746                 :             :         break;
    3747                 :             :       }
    3748                 :    30328220 :     default:;
    3749                 :             :     }
    3750                 :    30328220 :   switch (TREE_CODE (_p0))
    3751                 :             :     {
    3752                 :     1906516 :     case MULT_EXPR:
    3753                 :     1906516 :       {
    3754                 :     1906516 :         tree _q20 = TREE_OPERAND (_p0, 0);
    3755                 :     1906516 :         tree _q21 = TREE_OPERAND (_p0, 1);
    3756                 :     1906516 :         switch (TREE_CODE (_q21))
    3757                 :             :           {
    3758                 :         609 :           case PLUS_EXPR:
    3759                 :         609 :             {
    3760                 :         609 :               tree _q40 = TREE_OPERAND (_q21, 0);
    3761                 :         609 :               tree _q41 = TREE_OPERAND (_q21, 1);
    3762                 :         609 :               switch (TREE_CODE (_q40))
    3763                 :             :                 {
    3764                 :           0 :                 case TRUNC_DIV_EXPR:
    3765                 :           0 :                   {
    3766                 :           0 :                     tree _q50 = TREE_OPERAND (_q40, 0);
    3767                 :           0 :                     tree _q51 = TREE_OPERAND (_q40, 1);
    3768                 :           0 :                     if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
    3769                 :             :                       {
    3770                 :           0 :                         if (integer_onep (_q41))
    3771                 :             :                           {
    3772                 :           0 :                             if ((_p1 == _q50 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q50, 0) && types_match (_p1, _q50)))
    3773                 :             :                               {
    3774                 :           0 :                                 {
    3775                 :           0 :                                   tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q40, _q50 };
    3776                 :           0 :                                   tree res = generic_simplify_41 (loc, type, _p0, _p1, captures);
    3777                 :           0 :                                   if (res) return res;
    3778                 :             :                                 }
    3779                 :             :                               }
    3780                 :             :                           }
    3781                 :             :                       }
    3782                 :             :                     break;
    3783                 :             :                   }
    3784                 :             :                 default:;
    3785                 :             :                 }
    3786                 :             :               break;
    3787                 :             :             }
    3788                 :     1906516 :           default:;
    3789                 :             :           }
    3790                 :     1906516 :         switch (TREE_CODE (_q20))
    3791                 :             :           {
    3792                 :      103363 :           case PLUS_EXPR:
    3793                 :      103363 :             {
    3794                 :      103363 :               tree _q30 = TREE_OPERAND (_q20, 0);
    3795                 :      103363 :               tree _q31 = TREE_OPERAND (_q20, 1);
    3796                 :      103363 :               switch (TREE_CODE (_q30))
    3797                 :             :                 {
    3798                 :           1 :                 case TRUNC_DIV_EXPR:
    3799                 :           1 :                   {
    3800                 :           1 :                     tree _q40 = TREE_OPERAND (_q30, 0);
    3801                 :           1 :                     tree _q41 = TREE_OPERAND (_q30, 1);
    3802                 :           1 :                     if (integer_onep (_q31))
    3803                 :             :                       {
    3804                 :           1 :                         if ((_q21 == _q41 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q41, 0) && types_match (_q21, _q41)))
    3805                 :             :                           {
    3806                 :           1 :                             if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
    3807                 :             :                               {
    3808                 :           1 :                                 {
    3809                 :           1 :                                   tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q41, _q20, _q30, _q40 };
    3810                 :           1 :                                   tree res = generic_simplify_41 (loc, type, _p0, _p1, captures);
    3811                 :           1 :                                   if (res) return res;
    3812                 :             :                                 }
    3813                 :             :                               }
    3814                 :             :                           }
    3815                 :             :                       }
    3816                 :             :                     break;
    3817                 :             :                   }
    3818                 :             :                 default:;
    3819                 :             :                 }
    3820                 :             :               break;
    3821                 :             :             }
    3822                 :             :           default:;
    3823                 :             :           }
    3824                 :             :         break;
    3825                 :             :       }
    3826                 :        1262 :     case LSHIFT_EXPR:
    3827                 :        1262 :       {
    3828                 :        1262 :         tree _q20 = TREE_OPERAND (_p0, 0);
    3829                 :        1262 :         tree _q21 = TREE_OPERAND (_p0, 1);
    3830                 :        1262 :         switch (TREE_CODE (_p1))
    3831                 :             :           {
    3832                 :           0 :           case LSHIFT_EXPR:
    3833                 :           0 :             {
    3834                 :           0 :               tree _q50 = TREE_OPERAND (_p1, 0);
    3835                 :           0 :               tree _q51 = TREE_OPERAND (_p1, 1);
    3836                 :           0 :               if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
    3837                 :             :                 {
    3838                 :           0 :                   {
    3839                 :           0 :                     tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
    3840                 :           0 :                     tree res = generic_simplify_6 (loc, type, _p0, _p1, captures, MINUS_EXPR);
    3841                 :           0 :                     if (res) return res;
    3842                 :             :                   }
    3843                 :             :                 }
    3844                 :             :               break;
    3845                 :             :             }
    3846                 :             :           default:;
    3847                 :             :           }
    3848                 :             :         break;
    3849                 :             :       }
    3850                 :        1181 :     case BIT_AND_EXPR:
    3851                 :        1181 :       {
    3852                 :        1181 :         tree _q20 = TREE_OPERAND (_p0, 0);
    3853                 :        1181 :         tree _q21 = TREE_OPERAND (_p0, 1);
    3854                 :        1181 :         switch (TREE_CODE (_q21))
    3855                 :             :           {
    3856                 :           0 :           case BIT_NOT_EXPR:
    3857                 :           0 :             {
    3858                 :           0 :               tree _q40 = TREE_OPERAND (_q21, 0);
    3859                 :           0 :               switch (TREE_CODE (_p1))
    3860                 :             :                 {
    3861                 :           0 :                 case BIT_AND_EXPR:
    3862                 :           0 :                   {
    3863                 :           0 :                     tree _q60 = TREE_OPERAND (_p1, 0);
    3864                 :           0 :                     tree _q61 = TREE_OPERAND (_p1, 1);
    3865                 :           0 :                     if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
    3866                 :             :                       {
    3867                 :           0 :                         if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
    3868                 :             :                           {
    3869                 :           0 :                             {
    3870                 :           0 :                               tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q40, _p1 };
    3871                 :           0 :                               tree res = generic_simplify_42 (loc, type, _p0, _p1, captures);
    3872                 :           0 :                               if (res) return res;
    3873                 :             :                             }
    3874                 :             :                           }
    3875                 :             :                       }
    3876                 :           0 :                     if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
    3877                 :             :                       {
    3878                 :           0 :                         if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
    3879                 :             :                           {
    3880                 :           0 :                             {
    3881                 :           0 :                               tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q40, _p1 };
    3882                 :           0 :                               tree res = generic_simplify_42 (loc, type, _p0, _p1, captures);
    3883                 :           0 :                               if (res) return res;
    3884                 :             :                             }
    3885                 :             :                           }
    3886                 :             :                       }
    3887                 :             :                     break;
    3888                 :             :                   }
    3889                 :             :                 default:;
    3890                 :             :                 }
    3891                 :             :               break;
    3892                 :             :             }
    3893                 :        1181 :           default:;
    3894                 :             :           }
    3895                 :        1181 :         switch (TREE_CODE (_q20))
    3896                 :             :           {
    3897                 :          27 :           case BIT_NOT_EXPR:
    3898                 :          27 :             {
    3899                 :          27 :               tree _q30 = TREE_OPERAND (_q20, 0);
    3900                 :          27 :               switch (TREE_CODE (_p1))
    3901                 :             :                 {
    3902                 :          21 :                 case BIT_AND_EXPR:
    3903                 :          21 :                   {
    3904                 :          21 :                     tree _q60 = TREE_OPERAND (_p1, 0);
    3905                 :          21 :                     tree _q61 = TREE_OPERAND (_p1, 1);
    3906                 :          21 :                     if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
    3907                 :             :                       {
    3908                 :           0 :                         if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
    3909                 :             :                           {
    3910                 :           0 :                             {
    3911                 :           0 :                               tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q21, _q30, _p1 };
    3912                 :           0 :                               tree res = generic_simplify_42 (loc, type, _p0, _p1, captures);
    3913                 :           0 :                               if (res) return res;
    3914                 :             :                             }
    3915                 :             :                           }
    3916                 :             :                       }
    3917                 :          21 :                     if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
    3918                 :             :                       {
    3919                 :          21 :                         if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
    3920                 :             :                           {
    3921                 :          21 :                             {
    3922                 :          21 :                               tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q21, _q30, _p1 };
    3923                 :          21 :                               tree res = generic_simplify_42 (loc, type, _p0, _p1, captures);
    3924                 :          21 :                               if (res) return res;
    3925                 :             :                             }
    3926                 :             :                           }
    3927                 :             :                       }
    3928                 :             :                     break;
    3929                 :             :                   }
    3930                 :             :                 default:;
    3931                 :             :                 }
    3932                 :             :               break;
    3933                 :             :             }
    3934                 :        1160 :           default:;
    3935                 :             :           }
    3936                 :        1160 :         switch (TREE_CODE (_q21))
    3937                 :             :           {
    3938                 :        1120 :           case INTEGER_CST:
    3939                 :        1120 :             {
    3940                 :        1120 :               switch (TREE_CODE (_p1))
    3941                 :             :                 {
    3942                 :          22 :                 case BIT_AND_EXPR:
    3943                 :          22 :                   {
    3944                 :          22 :                     tree _q50 = TREE_OPERAND (_p1, 0);
    3945                 :          22 :                     tree _q51 = TREE_OPERAND (_p1, 1);
    3946                 :          22 :                     if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
    3947                 :             :                       {
    3948                 :           0 :                         switch (TREE_CODE (_q51))
    3949                 :             :                           {
    3950                 :           0 :                           case INTEGER_CST:
    3951                 :           0 :                             {
    3952                 :           0 :                               {
    3953                 :           0 :                                 tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
    3954                 :           0 :                                 if (~wi::to_wide (captures[2]) == wi::to_wide (captures[4])
    3955                 :             : )
    3956                 :             :                                   {
    3957                 :           0 :                                     if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1156;
    3958                 :           0 :                                     {
    3959                 :           0 :                                       if (! tree_invariant_p (captures[4])) goto next_after_fail1156;
    3960                 :           0 :                                       tree res_op0;
    3961                 :           0 :                                       {
    3962                 :           0 :                                         tree _o1[2], _r1;
    3963                 :           0 :                                         _o1[0] = captures[1];
    3964                 :           0 :                                         _o1[1] = unshare_expr (captures[4]);
    3965                 :           0 :                                         _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    3966                 :           0 :                                         res_op0 = _r1;
    3967                 :             :                                       }
    3968                 :           0 :                                       tree res_op1;
    3969                 :           0 :                                       res_op1 = captures[4];
    3970                 :           0 :                                       tree _r;
    3971                 :           0 :                                       _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
    3972                 :           0 :                                       if (TREE_SIDE_EFFECTS (captures[2]))
    3973                 :           0 :                                         _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    3974                 :           0 :                                       if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 872, __FILE__, __LINE__, true);
    3975                 :           0 :                                       return _r;
    3976                 :             :                                     }
    3977                 :           0 : next_after_fail1156:;
    3978                 :             :                                   }
    3979                 :             :                               }
    3980                 :           0 :                               break;
    3981                 :             :                             }
    3982                 :             :                           default:;
    3983                 :             :                           }
    3984                 :             :                       }
    3985                 :             :                     break;
    3986                 :             :                   }
    3987                 :             :                 default:;
    3988                 :             :                 }
    3989                 :             :               break;
    3990                 :             :             }
    3991                 :        1160 :           default:;
    3992                 :             :           }
    3993                 :        1160 :         switch (TREE_CODE (_p1))
    3994                 :             :           {
    3995                 :          25 :           case BIT_AND_EXPR:
    3996                 :          25 :             {
    3997                 :          25 :               tree _q50 = TREE_OPERAND (_p1, 0);
    3998                 :          25 :               tree _q51 = TREE_OPERAND (_p1, 1);
    3999                 :          25 :               if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
    4000                 :             :                 {
    4001                 :           0 :                   switch (TREE_CODE (_q51))
    4002                 :             :                     {
    4003                 :           0 :                     case BIT_NOT_EXPR:
    4004                 :           0 :                       {
    4005                 :           0 :                         tree _q70 = TREE_OPERAND (_q51, 0);
    4006                 :           0 :                         if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
    4007                 :             :                           {
    4008                 :           0 :                             {
    4009                 :           0 :                               tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
    4010                 :           0 :                               tree res = generic_simplify_43 (loc, type, _p0, _p1, captures);
    4011                 :           0 :                               if (res) return res;
    4012                 :             :                             }
    4013                 :             :                           }
    4014                 :             :                         break;
    4015                 :             :                       }
    4016                 :             :                     default:;
    4017                 :             :                     }
    4018                 :             :                 }
    4019                 :          25 :               switch (TREE_CODE (_q50))
    4020                 :             :                 {
    4021                 :           0 :                 case BIT_NOT_EXPR:
    4022                 :           0 :                   {
    4023                 :           0 :                     tree _q60 = TREE_OPERAND (_q50, 0);
    4024                 :           0 :                     if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
    4025                 :             :                       {
    4026                 :           0 :                         if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
    4027                 :             :                           {
    4028                 :           0 :                             {
    4029                 :           0 :                               tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
    4030                 :           0 :                               tree res = generic_simplify_43 (loc, type, _p0, _p1, captures);
    4031                 :           0 :                               if (res) return res;
    4032                 :             :                             }
    4033                 :             :                           }
    4034                 :             :                       }
    4035                 :           0 :                     if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
    4036                 :             :                       {
    4037                 :           0 :                         if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
    4038                 :             :                           {
    4039                 :           0 :                             {
    4040                 :           0 :                               tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1 };
    4041                 :           0 :                               tree res = generic_simplify_43 (loc, type, _p0, _p1, captures);
    4042                 :           0 :                               if (res) return res;
    4043                 :             :                             }
    4044                 :             :                           }
    4045                 :             :                       }
    4046                 :             :                     break;
    4047                 :             :                   }
    4048                 :          25 :                 default:;
    4049                 :             :                 }
    4050                 :          25 :               if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
    4051                 :             :                 {
    4052                 :           0 :                   switch (TREE_CODE (_q51))
    4053                 :             :                     {
    4054                 :           0 :                     case BIT_NOT_EXPR:
    4055                 :           0 :                       {
    4056                 :           0 :                         tree _q70 = TREE_OPERAND (_q51, 0);
    4057                 :           0 :                         if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
    4058                 :             :                           {
    4059                 :           0 :                             {
    4060                 :           0 :                               tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1 };
    4061                 :           0 :                               tree res = generic_simplify_43 (loc, type, _p0, _p1, captures);
    4062                 :           0 :                               if (res) return res;
    4063                 :             :                             }
    4064                 :             :                           }
    4065                 :             :                         break;
    4066                 :             :                       }
    4067                 :             :                     default:;
    4068                 :             :                     }
    4069                 :             :                 }
    4070                 :             :               break;
    4071                 :             :             }
    4072                 :           2 :           case PLUS_EXPR:
    4073                 :           2 :             {
    4074                 :           2 :               tree _q50 = TREE_OPERAND (_p1, 0);
    4075                 :           2 :               tree _q51 = TREE_OPERAND (_p1, 1);
    4076                 :           2 :               switch (TREE_CODE (_q50))
    4077                 :             :                 {
    4078                 :           2 :                 case BIT_IOR_EXPR:
    4079                 :           2 :                   {
    4080                 :           2 :                     tree _q60 = TREE_OPERAND (_q50, 0);
    4081                 :           2 :                     tree _q61 = TREE_OPERAND (_q50, 1);
    4082                 :           2 :                     if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
    4083                 :             :                       {
    4084                 :           2 :                         if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
    4085                 :             :                           {
    4086                 :           2 :                             if (integer_onep (_q51))
    4087                 :             :                               {
    4088                 :           2 :                                 {
    4089                 :           2 :                                   tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
    4090                 :           2 :                                   tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
    4091                 :           2 :                                   if (res) return res;
    4092                 :             :                                 }
    4093                 :             :                               }
    4094                 :             :                           }
    4095                 :             :                       }
    4096                 :           0 :                     if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
    4097                 :             :                       {
    4098                 :           0 :                         if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
    4099                 :             :                           {
    4100                 :           0 :                             if (integer_onep (_q51))
    4101                 :             :                               {
    4102                 :           0 :                                 {
    4103                 :           0 :                                   tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
    4104                 :           0 :                                   tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
    4105                 :           0 :                                   if (res) return res;
    4106                 :             :                                 }
    4107                 :             :                               }
    4108                 :             :                           }
    4109                 :             :                       }
    4110                 :             :                     break;
    4111                 :             :                   }
    4112                 :           0 :                 default:;
    4113                 :             :                 }
    4114                 :           0 :             {
    4115                 :           0 :               tree _q50_pops[1];
    4116                 :           0 :               if (tree_nop_convert (_q50, _q50_pops))
    4117                 :             :                 {
    4118                 :           0 :                   tree _q60 = _q50_pops[0];
    4119                 :           0 :                   switch (TREE_CODE (_q60))
    4120                 :             :                     {
    4121                 :           0 :                     case BIT_IOR_EXPR:
    4122                 :           0 :                       {
    4123                 :           0 :                         tree _q70 = TREE_OPERAND (_q60, 0);
    4124                 :           0 :                         tree _q71 = TREE_OPERAND (_q60, 1);
    4125                 :           0 :                         if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
    4126                 :             :                           {
    4127                 :           0 :                             if ((_q71 == _q21 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q21, 0) && types_match (_q71, _q21)))
    4128                 :             :                               {
    4129                 :           0 :                                 if (integer_onep (_q51))
    4130                 :             :                                   {
    4131                 :           0 :                                     {
    4132                 :           0 :                                       tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
    4133                 :           0 :                                       tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
    4134                 :           0 :                                       if (res) return res;
    4135                 :             :                                     }
    4136                 :             :                                   }
    4137                 :             :                               }
    4138                 :             :                           }
    4139                 :           0 :                         if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
    4140                 :             :                           {
    4141                 :           0 :                             if ((_q71 == _q20 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q20, 0) && types_match (_q71, _q20)))
    4142                 :             :                               {
    4143                 :           0 :                                 if (integer_onep (_q51))
    4144                 :             :                                   {
    4145                 :           0 :                                     {
    4146                 :           0 :                                       tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
    4147                 :           0 :                                       tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
    4148                 :           0 :                                       if (res) return res;
    4149                 :             :                                     }
    4150                 :             :                                   }
    4151                 :             :                               }
    4152                 :             :                           }
    4153                 :             :                         break;
    4154                 :             :                       }
    4155                 :             :                     default:;
    4156                 :             :                     }
    4157                 :             :                 }
    4158                 :             :             }
    4159                 :           0 :               break;
    4160                 :             :             }
    4161                 :        1158 :           default:;
    4162                 :             :           }
    4163                 :        1158 :       {
    4164                 :        1158 :         tree _p1_pops[1];
    4165                 :        1158 :         if (tree_nop_convert (_p1, _p1_pops))
    4166                 :             :           {
    4167                 :           7 :             tree _q50 = _p1_pops[0];
    4168                 :           7 :             switch (TREE_CODE (_q50))
    4169                 :             :               {
    4170                 :           0 :               case PLUS_EXPR:
    4171                 :           0 :                 {
    4172                 :           0 :                   tree _q60 = TREE_OPERAND (_q50, 0);
    4173                 :           0 :                   tree _q61 = TREE_OPERAND (_q50, 1);
    4174                 :           0 :                   switch (TREE_CODE (_q60))
    4175                 :             :                     {
    4176                 :           0 :                     case BIT_IOR_EXPR:
    4177                 :           0 :                       {
    4178                 :           0 :                         tree _q70 = TREE_OPERAND (_q60, 0);
    4179                 :           0 :                         tree _q71 = TREE_OPERAND (_q60, 1);
    4180                 :           0 :                         if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
    4181                 :             :                           {
    4182                 :           0 :                             if ((_q71 == _q21 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q21, 0) && types_match (_q71, _q21)))
    4183                 :             :                               {
    4184                 :           0 :                                 if (integer_onep (_q61))
    4185                 :             :                                   {
    4186                 :           0 :                                     {
    4187                 :           0 :                                       tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
    4188                 :           0 :                                       tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
    4189                 :           0 :                                       if (res) return res;
    4190                 :             :                                     }
    4191                 :             :                                   }
    4192                 :             :                               }
    4193                 :             :                           }
    4194                 :           0 :                         if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
    4195                 :             :                           {
    4196                 :           0 :                             if ((_q71 == _q20 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q20, 0) && types_match (_q71, _q20)))
    4197                 :             :                               {
    4198                 :           0 :                                 if (integer_onep (_q61))
    4199                 :             :                                   {
    4200                 :           0 :                                     {
    4201                 :           0 :                                       tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
    4202                 :           0 :                                       tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
    4203                 :           0 :                                       if (res) return res;
    4204                 :             :                                     }
    4205                 :             :                                   }
    4206                 :             :                               }
    4207                 :             :                           }
    4208                 :             :                         break;
    4209                 :             :                       }
    4210                 :           0 :                     default:;
    4211                 :             :                     }
    4212                 :           0 :                 {
    4213                 :           0 :                   tree _q60_pops[1];
    4214                 :           0 :                   if (tree_nop_convert (_q60, _q60_pops))
    4215                 :             :                     {
    4216                 :           0 :                       tree _q70 = _q60_pops[0];
    4217                 :           0 :                       switch (TREE_CODE (_q70))
    4218                 :             :                         {
    4219                 :           0 :                         case BIT_IOR_EXPR:
    4220                 :           0 :                           {
    4221                 :           0 :                             tree _q80 = TREE_OPERAND (_q70, 0);
    4222                 :           0 :                             tree _q81 = TREE_OPERAND (_q70, 1);
    4223                 :           0 :                             if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
    4224                 :             :                               {
    4225                 :           0 :                                 if ((_q81 == _q21 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q21, 0) && types_match (_q81, _q21)))
    4226                 :             :                                   {
    4227                 :           0 :                                     if (integer_onep (_q61))
    4228                 :             :                                       {
    4229                 :           0 :                                         {
    4230                 :           0 :                                           tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
    4231                 :           0 :                                           tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
    4232                 :           0 :                                           if (res) return res;
    4233                 :             :                                         }
    4234                 :             :                                       }
    4235                 :             :                                   }
    4236                 :             :                               }
    4237                 :           0 :                             if ((_q80 == _q21 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q21, 0) && types_match (_q80, _q21)))
    4238                 :             :                               {
    4239                 :           0 :                                 if ((_q81 == _q20 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q20, 0) && types_match (_q81, _q20)))
    4240                 :             :                                   {
    4241                 :           0 :                                     if (integer_onep (_q61))
    4242                 :             :                                       {
    4243                 :           0 :                                         {
    4244                 :           0 :                                           tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
    4245                 :           0 :                                           tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
    4246                 :           0 :                                           if (res) return res;
    4247                 :             :                                         }
    4248                 :             :                                       }
    4249                 :             :                                   }
    4250                 :             :                               }
    4251                 :             :                             break;
    4252                 :             :                           }
    4253                 :             :                         default:;
    4254                 :             :                         }
    4255                 :             :                     }
    4256                 :             :                 }
    4257                 :           0 :                   break;
    4258                 :             :                 }
    4259                 :             :               default:;
    4260                 :             :               }
    4261                 :             :           }
    4262                 :             :       }
    4263                 :        1158 :         break;
    4264                 :             :       }
    4265                 :        2849 :     case BIT_NOT_EXPR:
    4266                 :        2849 :       {
    4267                 :        2849 :         tree _q20 = TREE_OPERAND (_p0, 0);
    4268                 :        2849 :         switch (TREE_CODE (_p1))
    4269                 :             :           {
    4270                 :          22 :           case BIT_NOT_EXPR:
    4271                 :          22 :             {
    4272                 :          22 :               tree _q40 = TREE_OPERAND (_p1, 0);
    4273                 :          22 :               {
    4274                 :          22 :                 tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
    4275                 :          22 :                 if (!TYPE_OVERFLOW_SANITIZED (type)
    4276                 :             : )
    4277                 :             :                   {
    4278                 :           9 :                     {
    4279                 :           9 :  tree utype = unsigned_type_for (type);
    4280                 :           9 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1157;
    4281                 :           9 :                         {
    4282                 :           9 :                           tree res_op0;
    4283                 :           9 :                           {
    4284                 :           9 :                             tree _o1[2], _r1;
    4285                 :           9 :                             {
    4286                 :           9 :                               tree _o2[1], _r2;
    4287                 :           9 :                               _o2[0] = captures[1];
    4288                 :           9 :                               if (TREE_TYPE (_o2[0]) != utype)
    4289                 :             :                                 {
    4290                 :           9 :                                   _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
    4291                 :             :                                 }
    4292                 :             :                               else
    4293                 :             :                                 _r2 = _o2[0];
    4294                 :           9 :                               _o1[0] = _r2;
    4295                 :             :                             }
    4296                 :           9 :                             {
    4297                 :           9 :                               tree _o2[1], _r2;
    4298                 :           9 :                               _o2[0] = captures[0];
    4299                 :           9 :                               if (TREE_TYPE (_o2[0]) != utype)
    4300                 :             :                                 {
    4301                 :           9 :                                   _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
    4302                 :             :                                 }
    4303                 :             :                               else
    4304                 :             :                                 _r2 = _o2[0];
    4305                 :           9 :                               _o1[1] = _r2;
    4306                 :             :                             }
    4307                 :           9 :                             _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    4308                 :           9 :                             res_op0 = _r1;
    4309                 :             :                           }
    4310                 :           9 :                           tree _r;
    4311                 :           9 :                           _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
    4312                 :           9 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 873, __FILE__, __LINE__, true);
    4313                 :           9 :                           return _r;
    4314                 :             :                         }
    4315                 :           0 : next_after_fail1157:;
    4316                 :             :                     }
    4317                 :             :                   }
    4318                 :             :               }
    4319                 :          13 :               break;
    4320                 :             :             }
    4321                 :             :           default:;
    4322                 :             :           }
    4323                 :             :         break;
    4324                 :             :       }
    4325                 :     2241496 :     case PLUS_EXPR:
    4326                 :     2241496 :       {
    4327                 :     2241496 :         tree _q20 = TREE_OPERAND (_p0, 0);
    4328                 :     2241496 :         tree _q21 = TREE_OPERAND (_p0, 1);
    4329                 :     2241496 :         switch (TREE_CODE (_p1))
    4330                 :             :           {
    4331                 :          14 :           case BIT_IOR_EXPR:
    4332                 :          14 :             {
    4333                 :          14 :               tree _q50 = TREE_OPERAND (_p1, 0);
    4334                 :          14 :               tree _q51 = TREE_OPERAND (_p1, 1);
    4335                 :          14 :               if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
    4336                 :             :                 {
    4337                 :          13 :                   if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
    4338                 :             :                     {
    4339                 :          13 :                       {
    4340                 :          13 :                         tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
    4341                 :          13 :                         if (!TYPE_OVERFLOW_SANITIZED (type) && !TYPE_OVERFLOW_TRAPS (type)
    4342                 :          13 :  && !TYPE_SATURATING (type)
    4343                 :             : )
    4344                 :             :                           {
    4345                 :           0 :                             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1158;
    4346                 :           0 :                             {
    4347                 :           0 :                               tree res_op0;
    4348                 :           0 :                               res_op0 = captures[0];
    4349                 :           0 :                               tree res_op1;
    4350                 :           0 :                               res_op1 = captures[1];
    4351                 :           0 :                               tree _r;
    4352                 :           0 :                               _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
    4353                 :           0 :                               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 874, __FILE__, __LINE__, true);
    4354                 :           0 :                               return _r;
    4355                 :             :                             }
    4356                 :           0 : next_after_fail1158:;
    4357                 :             :                           }
    4358                 :             :                       }
    4359                 :             :                     }
    4360                 :             :                 }
    4361                 :             :               break;
    4362                 :             :             }
    4363                 :          86 :           case BIT_AND_EXPR:
    4364                 :          86 :             {
    4365                 :          86 :               tree _q50 = TREE_OPERAND (_p1, 0);
    4366                 :          86 :               tree _q51 = TREE_OPERAND (_p1, 1);
    4367                 :          86 :               if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
    4368                 :             :                 {
    4369                 :          25 :                   if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
    4370                 :             :                     {
    4371                 :          13 :                       {
    4372                 :          13 :                         tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
    4373                 :          13 :                         if (!TYPE_OVERFLOW_SANITIZED (type) && !TYPE_OVERFLOW_TRAPS (type)
    4374                 :          13 :  && !TYPE_SATURATING (type)
    4375                 :             : )
    4376                 :             :                           {
    4377                 :           0 :                             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1159;
    4378                 :           0 :                             {
    4379                 :           0 :                               tree res_op0;
    4380                 :           0 :                               res_op0 = captures[0];
    4381                 :           0 :                               tree res_op1;
    4382                 :           0 :                               res_op1 = captures[1];
    4383                 :           0 :                               tree _r;
    4384                 :           0 :                               _r = fold_build2_loc (loc, BIT_IOR_EXPR, type, res_op0, res_op1);
    4385                 :           0 :                               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 875, __FILE__, __LINE__, true);
    4386                 :           0 :                               return _r;
    4387                 :             :                             }
    4388                 :           0 : next_after_fail1159:;
    4389                 :             :                           }
    4390                 :             :                       }
    4391                 :             :                     }
    4392                 :             :                 }
    4393                 :             :               break;
    4394                 :             :             }
    4395                 :     2241496 :           default:;
    4396                 :             :           }
    4397                 :     2241496 :         switch (TREE_CODE (_q20))
    4398                 :             :           {
    4399                 :         593 :           case BIT_AND_EXPR:
    4400                 :         593 :             {
    4401                 :         593 :               tree _q30 = TREE_OPERAND (_q20, 0);
    4402                 :         593 :               tree _q31 = TREE_OPERAND (_q20, 1);
    4403                 :         593 :               if (integer_all_onesp (_q21))
    4404                 :             :                 {
    4405                 :           1 :                   switch (TREE_CODE (_p1))
    4406                 :             :                     {
    4407                 :           1 :                     case BIT_IOR_EXPR:
    4408                 :           1 :                       {
    4409                 :           1 :                         tree _q70 = TREE_OPERAND (_p1, 0);
    4410                 :           1 :                         tree _q71 = TREE_OPERAND (_p1, 1);
    4411                 :           1 :                         if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
    4412                 :             :                           {
    4413                 :           1 :                             if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
    4414                 :             :                               {
    4415                 :           1 :                                 {
    4416                 :           1 :                                   tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q31 };
    4417                 :           1 :                                   tree res = generic_simplify_45 (loc, type, _p0, _p1, captures);
    4418                 :           1 :                                   if (res) return res;
    4419                 :             :                                 }
    4420                 :             :                               }
    4421                 :             :                           }
    4422                 :           0 :                         if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
    4423                 :             :                           {
    4424                 :           0 :                             if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
    4425                 :             :                               {
    4426                 :           0 :                                 {
    4427                 :           0 :                                   tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q31, _q30 };
    4428                 :           0 :                                   tree res = generic_simplify_45 (loc, type, _p0, _p1, captures);
    4429                 :           0 :                                   if (res) return res;
    4430                 :             :                                 }
    4431                 :             :                               }
    4432                 :             :                           }
    4433                 :             :                         break;
    4434                 :             :                       }
    4435                 :           0 :                     default:;
    4436                 :             :                     }
    4437                 :           0 :                 {
    4438                 :           0 :                   tree _p1_pops[1];
    4439                 :           0 :                   if (tree_nop_convert (_p1, _p1_pops))
    4440                 :             :                     {
    4441                 :           0 :                       tree _q70 = _p1_pops[0];
    4442                 :           0 :                       switch (TREE_CODE (_q70))
    4443                 :             :                         {
    4444                 :           0 :                         case BIT_IOR_EXPR:
    4445                 :           0 :                           {
    4446                 :           0 :                             tree _q80 = TREE_OPERAND (_q70, 0);
    4447                 :           0 :                             tree _q81 = TREE_OPERAND (_q70, 1);
    4448                 :           0 :                             if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
    4449                 :             :                               {
    4450                 :           0 :                                 if ((_q81 == _q31 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q31, 0) && types_match (_q81, _q31)))
    4451                 :             :                                   {
    4452                 :           0 :                                     {
    4453                 :           0 :                                       tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q31 };
    4454                 :           0 :                                       tree res = generic_simplify_45 (loc, type, _p0, _p1, captures);
    4455                 :           0 :                                       if (res) return res;
    4456                 :             :                                     }
    4457                 :             :                                   }
    4458                 :             :                               }
    4459                 :           0 :                             if ((_q80 == _q31 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q31, 0) && types_match (_q80, _q31)))
    4460                 :             :                               {
    4461                 :           0 :                                 if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
    4462                 :             :                                   {
    4463                 :           0 :                                     {
    4464                 :           0 :                                       tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q31, _q30 };
    4465                 :           0 :                                       tree res = generic_simplify_45 (loc, type, _p0, _p1, captures);
    4466                 :           0 :                                       if (res) return res;
    4467                 :             :                                     }
    4468                 :             :                                   }
    4469                 :             :                               }
    4470                 :             :                             break;
    4471                 :             :                           }
    4472                 :             :                         default:;
    4473                 :             :                         }
    4474                 :             :                     }
    4475                 :             :                 }
    4476                 :             :                 }
    4477                 :             :               break;
    4478                 :             :             }
    4479                 :     2241495 :           default:;
    4480                 :             :           }
    4481                 :     2241495 :       {
    4482                 :     2241495 :         tree _q20_pops[1];
    4483                 :     2241495 :         if (tree_nop_convert (_q20, _q20_pops))
    4484                 :             :           {
    4485                 :      553149 :             tree _q30 = _q20_pops[0];
    4486                 :      553149 :             switch (TREE_CODE (_q30))
    4487                 :             :               {
    4488                 :           0 :               case BIT_AND_EXPR:
    4489                 :           0 :                 {
    4490                 :           0 :                   tree _q40 = TREE_OPERAND (_q30, 0);
    4491                 :           0 :                   tree _q41 = TREE_OPERAND (_q30, 1);
    4492                 :           0 :                   if (integer_all_onesp (_q21))
    4493                 :             :                     {
    4494                 :           0 :                       switch (TREE_CODE (_p1))
    4495                 :             :                         {
    4496                 :           0 :                         case BIT_IOR_EXPR:
    4497                 :           0 :                           {
    4498                 :           0 :                             tree _q80 = TREE_OPERAND (_p1, 0);
    4499                 :           0 :                             tree _q81 = TREE_OPERAND (_p1, 1);
    4500                 :           0 :                             if ((_q80 == _q40 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q40, 0) && types_match (_q80, _q40)))
    4501                 :             :                               {
    4502                 :           0 :                                 if ((_q81 == _q41 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q41, 0) && types_match (_q81, _q41)))
    4503                 :             :                                   {
    4504                 :           0 :                                     {
    4505                 :           0 :                                       tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q40, _q41 };
    4506                 :           0 :                                       tree res = generic_simplify_45 (loc, type, _p0, _p1, captures);
    4507                 :           0 :                                       if (res) return res;
    4508                 :             :                                     }
    4509                 :             :                                   }
    4510                 :             :                               }
    4511                 :           0 :                             if ((_q80 == _q41 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q41, 0) && types_match (_q80, _q41)))
    4512                 :             :                               {
    4513                 :           0 :                                 if ((_q81 == _q40 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q40, 0) && types_match (_q81, _q40)))
    4514                 :             :                                   {
    4515                 :           0 :                                     {
    4516                 :           0 :                                       tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q41, _q40 };
    4517                 :           0 :                                       tree res = generic_simplify_45 (loc, type, _p0, _p1, captures);
    4518                 :           0 :                                       if (res) return res;
    4519                 :             :                                     }
    4520                 :             :                                   }
    4521                 :             :                               }
    4522                 :             :                             break;
    4523                 :             :                           }
    4524                 :           0 :                         default:;
    4525                 :             :                         }
    4526                 :           0 :                     {
    4527                 :           0 :                       tree _p1_pops[1];
    4528                 :           0 :                       if (tree_nop_convert (_p1, _p1_pops))
    4529                 :             :                         {
    4530                 :           0 :                           tree _q80 = _p1_pops[0];
    4531                 :           0 :                           switch (TREE_CODE (_q80))
    4532                 :             :                             {
    4533                 :           0 :                             case BIT_IOR_EXPR:
    4534                 :           0 :                               {
    4535                 :           0 :                                 tree _q90 = TREE_OPERAND (_q80, 0);
    4536                 :           0 :                                 tree _q91 = TREE_OPERAND (_q80, 1);
    4537                 :           0 :                                 if ((_q90 == _q40 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q40, 0) && types_match (_q90, _q40)))
    4538                 :             :                                   {
    4539                 :           0 :                                     if ((_q91 == _q41 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q41, 0) && types_match (_q91, _q41)))
    4540                 :             :                                       {
    4541                 :           0 :                                         {
    4542                 :           0 :                                           tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q40, _q41 };
    4543                 :           0 :                                           tree res = generic_simplify_45 (loc, type, _p0, _p1, captures);
    4544                 :           0 :                                           if (res) return res;
    4545                 :             :                                         }
    4546                 :             :                                       }
    4547                 :             :                                   }
    4548                 :           0 :                                 if ((_q90 == _q41 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q41, 0) && types_match (_q90, _q41)))
    4549                 :             :                                   {
    4550                 :           0 :                                     if ((_q91 == _q40 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q40, 0) && types_match (_q91, _q40)))
    4551                 :             :                                       {
    4552                 :           0 :                                         {
    4553                 :           0 :                                           tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q41, _q40 };
    4554                 :           0 :                                           tree res = generic_simplify_45 (loc, type, _p0, _p1, captures);
    4555                 :           0 :                                           if (res) return res;
    4556                 :             :                                         }
    4557                 :             :                                       }
    4558                 :             :                                   }
    4559                 :             :                                 break;
    4560                 :             :                               }
    4561                 :             :                             default:;
    4562                 :             :                             }
    4563                 :             :                         }
    4564                 :             :                     }
    4565                 :             :                     }
    4566                 :             :                   break;
    4567                 :             :                 }
    4568                 :             :               default:;
    4569                 :             :               }
    4570                 :             :           }
    4571                 :             :       }
    4572                 :     2241495 :         break;
    4573                 :             :       }
    4574                 :          77 :     case BIT_IOR_EXPR:
    4575                 :          77 :       {
    4576                 :          77 :         tree _q20 = TREE_OPERAND (_p0, 0);
    4577                 :          77 :         tree _q21 = TREE_OPERAND (_p0, 1);
    4578                 :          77 :         if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
    4579                 :             :           {
    4580                 :           5 :             {
    4581                 :           5 :               tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
    4582                 :           5 :               tree res = generic_simplify_46 (loc, type, _p0, _p1, captures);
    4583                 :           5 :               if (res) return res;
    4584                 :             :             }
    4585                 :             :           }
    4586                 :          72 :         if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
    4587                 :             :           {
    4588                 :           0 :             {
    4589                 :           0 :               tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
    4590                 :           0 :               tree res = generic_simplify_46 (loc, type, _p0, _p1, captures);
    4591                 :           0 :               if (res) return res;
    4592                 :             :             }
    4593                 :             :           }
    4594                 :          72 :         switch (TREE_CODE (_p1))
    4595                 :             :           {
    4596                 :           0 :           case BIT_XOR_EXPR:
    4597                 :           0 :             {
    4598                 :           0 :               tree _q50 = TREE_OPERAND (_p1, 0);
    4599                 :           0 :               tree _q51 = TREE_OPERAND (_p1, 1);
    4600                 :           0 :               if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
    4601                 :             :                 {
    4602                 :           0 :                   if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
    4603                 :             :                     {
    4604                 :           0 :                       {
    4605                 :           0 :                         tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
    4606                 :           0 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1160;
    4607                 :           0 :                         {
    4608                 :           0 :                           tree res_op0;
    4609                 :           0 :                           res_op0 = captures[0];
    4610                 :           0 :                           tree res_op1;
    4611                 :           0 :                           res_op1 = captures[1];
    4612                 :           0 :                           tree _r;
    4613                 :           0 :                           _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
    4614                 :           0 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 876, __FILE__, __LINE__, true);
    4615                 :           0 :                           return _r;
    4616                 :             :                         }
    4617                 :           0 : next_after_fail1160:;
    4618                 :             :                       }
    4619                 :             :                     }
    4620                 :             :                 }
    4621                 :             :               break;
    4622                 :             :             }
    4623                 :           0 :           case BIT_AND_EXPR:
    4624                 :           0 :             {
    4625                 :           0 :               tree _q50 = TREE_OPERAND (_p1, 0);
    4626                 :           0 :               tree _q51 = TREE_OPERAND (_p1, 1);
    4627                 :           0 :               if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
    4628                 :             :                 {
    4629                 :           0 :                   if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
    4630                 :             :                     {
    4631                 :           0 :                       {
    4632                 :           0 :                         tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
    4633                 :           0 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1161;
    4634                 :           0 :                         {
    4635                 :           0 :                           tree res_op0;
    4636                 :           0 :                           res_op0 = captures[0];
    4637                 :           0 :                           tree res_op1;
    4638                 :           0 :                           res_op1 = captures[1];
    4639                 :           0 :                           tree _r;
    4640                 :           0 :                           _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
    4641                 :           0 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 877, __FILE__, __LINE__, true);
    4642                 :           0 :                           return _r;
    4643                 :             :                         }
    4644                 :           0 : next_after_fail1161:;
    4645                 :             :                       }
    4646                 :             :                     }
    4647                 :             :                 }
    4648                 :             :               break;
    4649                 :             :             }
    4650                 :             :           default:;
    4651                 :             :           }
    4652                 :             :         break;
    4653                 :             :       }
    4654                 :    30328181 :     default:;
    4655                 :             :     }
    4656                 :    30328181 : {
    4657                 :    30328181 :   tree _p0_pops[1];
    4658                 :    30328181 :   if (tree_nop_convert (_p0, _p0_pops))
    4659                 :             :     {
    4660                 :     7279528 :       tree _q20 = _p0_pops[0];
    4661                 :     7279528 :       switch (TREE_CODE (_q20))
    4662                 :             :         {
    4663                 :      982844 :         case PLUS_EXPR:
    4664                 :      982844 :           {
    4665                 :      982844 :             tree _q30 = TREE_OPERAND (_q20, 0);
    4666                 :      982844 :             tree _q31 = TREE_OPERAND (_q20, 1);
    4667                 :      982844 :             switch (TREE_CODE (_q30))
    4668                 :             :               {
    4669                 :         344 :               case BIT_AND_EXPR:
    4670                 :         344 :                 {
    4671                 :         344 :                   tree _q40 = TREE_OPERAND (_q30, 0);
    4672                 :         344 :                   tree _q41 = TREE_OPERAND (_q30, 1);
    4673                 :         344 :                   if (integer_all_onesp (_q31))
    4674                 :             :                     {
    4675                 :           0 :                       switch (TREE_CODE (_p1))
    4676                 :             :                         {
    4677                 :           0 :                         case BIT_IOR_EXPR:
    4678                 :           0 :                           {
    4679                 :           0 :                             tree _q80 = TREE_OPERAND (_p1, 0);
    4680                 :           0 :                             tree _q81 = TREE_OPERAND (_p1, 1);
    4681                 :           0 :                             if ((_q80 == _q40 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q40, 0) && types_match (_q80, _q40)))
    4682                 :             :                               {
    4683                 :           0 :                                 if ((_q81 == _q41 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q41, 0) && types_match (_q81, _q41)))
    4684                 :             :                                   {
    4685                 :           0 :                                     {
    4686                 :           0 :                                       tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q40, _q41 };
    4687                 :           0 :                                       tree res = generic_simplify_45 (loc, type, _p0, _p1, captures);
    4688                 :           0 :                                       if (res) return res;
    4689                 :             :                                     }
    4690                 :             :                                   }
    4691                 :             :                               }
    4692                 :           0 :                             if ((_q80 == _q41 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q41, 0) && types_match (_q80, _q41)))
    4693                 :             :                               {
    4694                 :           0 :                                 if ((_q81 == _q40 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q40, 0) && types_match (_q81, _q40)))
    4695                 :             :                                   {
    4696                 :           0 :                                     {
    4697                 :           0 :                                       tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q41, _q40 };
    4698                 :           0 :                                       tree res = generic_simplify_45 (loc, type, _p0, _p1, captures);
    4699                 :           0 :                                       if (res) return res;
    4700                 :             :                                     }
    4701                 :             :                                   }
    4702                 :             :                               }
    4703                 :             :                             break;
    4704                 :             :                           }
    4705                 :           0 :                         default:;
    4706                 :             :                         }
    4707                 :           0 :                     {
    4708                 :           0 :                       tree _p1_pops[1];
    4709                 :           0 :                       if (tree_nop_convert (_p1, _p1_pops))
    4710                 :             :                         {
    4711                 :           0 :                           tree _q80 = _p1_pops[0];
    4712                 :           0 :                           switch (TREE_CODE (_q80))
    4713                 :             :                             {
    4714                 :           0 :                             case BIT_IOR_EXPR:
    4715                 :           0 :                               {
    4716                 :           0 :                                 tree _q90 = TREE_OPERAND (_q80, 0);
    4717                 :           0 :                                 tree _q91 = TREE_OPERAND (_q80, 1);
    4718                 :           0 :                                 if ((_q90 == _q40 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q40, 0) && types_match (_q90, _q40)))
    4719                 :             :                                   {
    4720                 :           0 :                                     if ((_q91 == _q41 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q41, 0) && types_match (_q91, _q41)))
    4721                 :             :                                       {
    4722                 :           0 :                                         {
    4723                 :           0 :                                           tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q40, _q41 };
    4724                 :           0 :                                           tree res = generic_simplify_45 (loc, type, _p0, _p1, captures);
    4725                 :           0 :                                           if (res) return res;
    4726                 :             :                                         }
    4727                 :             :                                       }
    4728                 :             :                                   }
    4729                 :           0 :                                 if ((_q90 == _q41 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q41, 0) && types_match (_q90, _q41)))
    4730                 :             :                                   {
    4731                 :           0 :                                     if ((_q91 == _q40 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q40, 0) && types_match (_q91, _q40)))
    4732                 :             :                                       {
    4733                 :           0 :                                         {
    4734                 :           0 :                                           tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q41, _q40 };
    4735                 :           0 :                                           tree res = generic_simplify_45 (loc, type, _p0, _p1, captures);
    4736                 :           0 :                                           if (res) return res;
    4737                 :             :                                         }
    4738                 :             :                                       }
    4739                 :             :                                   }
    4740                 :             :                                 break;
    4741                 :             :                               }
    4742                 :             :                             default:;
    4743                 :             :                             }
    4744                 :             :                         }
    4745                 :             :                     }
    4746                 :             :                     }
    4747                 :             :                   break;
    4748                 :             :                 }
    4749                 :      982844 :               default:;
    4750                 :             :               }
    4751                 :      982844 :           {
    4752                 :      982844 :             tree _q30_pops[1];
    4753                 :      982844 :             if (tree_nop_convert (_q30, _q30_pops))
    4754                 :             :               {
    4755                 :       48086 :                 tree _q40 = _q30_pops[0];
    4756                 :       48086 :                 switch (TREE_CODE (_q40))
    4757                 :             :                   {
    4758                 :           0 :                   case BIT_AND_EXPR:
    4759                 :           0 :                     {
    4760                 :           0 :                       tree _q50 = TREE_OPERAND (_q40, 0);
    4761                 :           0 :                       tree _q51 = TREE_OPERAND (_q40, 1);
    4762                 :           0 :                       if (integer_all_onesp (_q31))
    4763                 :             :                         {
    4764                 :           0 :                           switch (TREE_CODE (_p1))
    4765                 :             :                             {
    4766                 :           0 :                             case BIT_IOR_EXPR:
    4767                 :           0 :                               {
    4768                 :           0 :                                 tree _q90 = TREE_OPERAND (_p1, 0);
    4769                 :           0 :                                 tree _q91 = TREE_OPERAND (_p1, 1);
    4770                 :           0 :                                 if ((_q90 == _q50 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q50, 0) && types_match (_q90, _q50)))
    4771                 :             :                                   {
    4772                 :           0 :                                     if ((_q91 == _q51 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q51, 0) && types_match (_q91, _q51)))
    4773                 :             :                                       {
    4774                 :           0 :                                         {
    4775                 :           0 :                                           tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q50, _q51 };
    4776                 :           0 :                                           tree res = generic_simplify_45 (loc, type, _p0, _p1, captures);
    4777                 :           0 :                                           if (res) return res;
    4778                 :             :                                         }
    4779                 :             :                                       }
    4780                 :             :                                   }
    4781                 :           0 :                                 if ((_q90 == _q51 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q51, 0) && types_match (_q90, _q51)))
    4782                 :             :                                   {
    4783                 :           0 :                                     if ((_q91 == _q50 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q50, 0) && types_match (_q91, _q50)))
    4784                 :             :                                       {
    4785                 :           0 :                                         {
    4786                 :           0 :                                           tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q51, _q50 };
    4787                 :           0 :                                           tree res = generic_simplify_45 (loc, type, _p0, _p1, captures);
    4788                 :           0 :                                           if (res) return res;
    4789                 :             :                                         }
    4790                 :             :                                       }
    4791                 :             :                                   }
    4792                 :             :                                 break;
    4793                 :             :                               }
    4794                 :           0 :                             default:;
    4795                 :             :                             }
    4796                 :           0 :                         {
    4797                 :           0 :                           tree _p1_pops[1];
    4798                 :           0 :                           if (tree_nop_convert (_p1, _p1_pops))
    4799                 :             :                             {
    4800                 :           0 :                               tree _q90 = _p1_pops[0];
    4801                 :           0 :                               switch (TREE_CODE (_q90))
    4802                 :             :                                 {
    4803                 :           0 :                                 case BIT_IOR_EXPR:
    4804                 :           0 :                                   {
    4805                 :           0 :                                     tree _q100 = TREE_OPERAND (_q90, 0);
    4806                 :           0 :                                     tree _q101 = TREE_OPERAND (_q90, 1);
    4807                 :           0 :                                     if ((_q100 == _q50 && ! TREE_SIDE_EFFECTS (_q100)) || (operand_equal_p (_q100, _q50, 0) && types_match (_q100, _q50)))
    4808                 :             :                                       {
    4809                 :           0 :                                         if ((_q101 == _q51 && ! TREE_SIDE_EFFECTS (_q101)) || (operand_equal_p (_q101, _q51, 0) && types_match (_q101, _q51)))
    4810                 :             :                                           {
    4811                 :           0 :                                             {
    4812                 :           0 :                                               tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q50, _q51 };
    4813                 :           0 :                                               tree res = generic_simplify_45 (loc, type, _p0, _p1, captures);
    4814                 :           0 :                                               if (res) return res;
    4815                 :             :                                             }
    4816                 :             :                                           }
    4817                 :             :                                       }
    4818                 :           0 :                                     if ((_q100 == _q51 && ! TREE_SIDE_EFFECTS (_q100)) || (operand_equal_p (_q100, _q51, 0) && types_match (_q100, _q51)))
    4819                 :             :                                       {
    4820                 :           0 :                                         if ((_q101 == _q50 && ! TREE_SIDE_EFFECTS (_q101)) || (operand_equal_p (_q101, _q50, 0) && types_match (_q101, _q50)))
    4821                 :             :                                           {
    4822                 :           0 :                                             {
    4823                 :           0 :                                               tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q51, _q50 };
    4824                 :           0 :                                               tree res = generic_simplify_45 (loc, type, _p0, _p1, captures);
    4825                 :           0 :                                               if (res) return res;
    4826                 :             :                                             }
    4827                 :             :                                           }
    4828                 :             :                                       }
    4829                 :             :                                     break;
    4830                 :             :                                   }
    4831                 :             :                                 default:;
    4832                 :             :                                 }
    4833                 :             :                             }
    4834                 :             :                         }
    4835                 :             :                         }
    4836                 :             :                       break;
    4837                 :             :                     }
    4838                 :             :                   default:;
    4839                 :             :                   }
    4840                 :             :               }
    4841                 :             :           }
    4842                 :      982844 :             break;
    4843                 :             :           }
    4844                 :          14 :         case BIT_AND_EXPR:
    4845                 :          14 :           {
    4846                 :          14 :             tree _q30 = TREE_OPERAND (_q20, 0);
    4847                 :          14 :             tree _q31 = TREE_OPERAND (_q20, 1);
    4848                 :          14 :             switch (TREE_CODE (_p1))
    4849                 :             :               {
    4850                 :           0 :               case PLUS_EXPR:
    4851                 :           0 :                 {
    4852                 :           0 :                   tree _q60 = TREE_OPERAND (_p1, 0);
    4853                 :           0 :                   tree _q61 = TREE_OPERAND (_p1, 1);
    4854                 :           0 :                   switch (TREE_CODE (_q60))
    4855                 :             :                     {
    4856                 :           0 :                     case BIT_IOR_EXPR:
    4857                 :           0 :                       {
    4858                 :           0 :                         tree _q70 = TREE_OPERAND (_q60, 0);
    4859                 :           0 :                         tree _q71 = TREE_OPERAND (_q60, 1);
    4860                 :           0 :                         if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
    4861                 :             :                           {
    4862                 :           0 :                             if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
    4863                 :             :                               {
    4864                 :           0 :                                 if (integer_onep (_q61))
    4865                 :             :                                   {
    4866                 :           0 :                                     {
    4867                 :           0 :                                       tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
    4868                 :           0 :                                       tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
    4869                 :           0 :                                       if (res) return res;
    4870                 :             :                                     }
    4871                 :             :                                   }
    4872                 :             :                               }
    4873                 :             :                           }
    4874                 :           0 :                         if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
    4875                 :             :                           {
    4876                 :           0 :                             if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
    4877                 :             :                               {
    4878                 :           0 :                                 if (integer_onep (_q61))
    4879                 :             :                                   {
    4880                 :           0 :                                     {
    4881                 :           0 :                                       tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
    4882                 :           0 :                                       tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
    4883                 :           0 :                                       if (res) return res;
    4884                 :             :                                     }
    4885                 :             :                                   }
    4886                 :             :                               }
    4887                 :             :                           }
    4888                 :             :                         break;
    4889                 :             :                       }
    4890                 :           0 :                     default:;
    4891                 :             :                     }
    4892                 :           0 :                 {
    4893                 :           0 :                   tree _q60_pops[1];
    4894                 :           0 :                   if (tree_nop_convert (_q60, _q60_pops))
    4895                 :             :                     {
    4896                 :           0 :                       tree _q70 = _q60_pops[0];
    4897                 :           0 :                       switch (TREE_CODE (_q70))
    4898                 :             :                         {
    4899                 :           0 :                         case BIT_IOR_EXPR:
    4900                 :           0 :                           {
    4901                 :           0 :                             tree _q80 = TREE_OPERAND (_q70, 0);
    4902                 :           0 :                             tree _q81 = TREE_OPERAND (_q70, 1);
    4903                 :           0 :                             if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
    4904                 :             :                               {
    4905                 :           0 :                                 if ((_q81 == _q31 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q31, 0) && types_match (_q81, _q31)))
    4906                 :             :                                   {
    4907                 :           0 :                                     if (integer_onep (_q61))
    4908                 :             :                                       {
    4909                 :           0 :                                         {
    4910                 :           0 :                                           tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
    4911                 :           0 :                                           tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
    4912                 :           0 :                                           if (res) return res;
    4913                 :             :                                         }
    4914                 :             :                                       }
    4915                 :             :                                   }
    4916                 :             :                               }
    4917                 :           0 :                             if ((_q80 == _q31 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q31, 0) && types_match (_q80, _q31)))
    4918                 :             :                               {
    4919                 :           0 :                                 if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
    4920                 :             :                                   {
    4921                 :           0 :                                     if (integer_onep (_q61))
    4922                 :             :                                       {
    4923                 :           0 :                                         {
    4924                 :           0 :                                           tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
    4925                 :           0 :                                           tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
    4926                 :           0 :                                           if (res) return res;
    4927                 :             :                                         }
    4928                 :             :                                       }
    4929                 :             :                                   }
    4930                 :             :                               }
    4931                 :             :                             break;
    4932                 :             :                           }
    4933                 :             :                         default:;
    4934                 :             :                         }
    4935                 :             :                     }
    4936                 :             :                 }
    4937                 :           0 :                   break;
    4938                 :             :                 }
    4939                 :          14 :               default:;
    4940                 :             :               }
    4941                 :          14 :           {
    4942                 :          14 :             tree _p1_pops[1];
    4943                 :          14 :             if (tree_nop_convert (_p1, _p1_pops))
    4944                 :             :               {
    4945                 :          14 :                 tree _q60 = _p1_pops[0];
    4946                 :          14 :                 switch (TREE_CODE (_q60))
    4947                 :             :                   {
    4948                 :           0 :                   case PLUS_EXPR:
    4949                 :           0 :                     {
    4950                 :           0 :                       tree _q70 = TREE_OPERAND (_q60, 0);
    4951                 :           0 :                       tree _q71 = TREE_OPERAND (_q60, 1);
    4952                 :           0 :                       switch (TREE_CODE (_q70))
    4953                 :             :                         {
    4954                 :           0 :                         case BIT_IOR_EXPR:
    4955                 :           0 :                           {
    4956                 :           0 :                             tree _q80 = TREE_OPERAND (_q70, 0);
    4957                 :           0 :                             tree _q81 = TREE_OPERAND (_q70, 1);
    4958                 :           0 :                             if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
    4959                 :             :                               {
    4960                 :           0 :                                 if ((_q81 == _q31 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q31, 0) && types_match (_q81, _q31)))
    4961                 :             :                                   {
    4962                 :           0 :                                     if (integer_onep (_q71))
    4963                 :             :                                       {
    4964                 :           0 :                                         {
    4965                 :           0 :                                           tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q60 };
    4966                 :           0 :                                           tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
    4967                 :           0 :                                           if (res) return res;
    4968                 :             :                                         }
    4969                 :             :                                       }
    4970                 :             :                                   }
    4971                 :             :                               }
    4972                 :           0 :                             if ((_q80 == _q31 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q31, 0) && types_match (_q80, _q31)))
    4973                 :             :                               {
    4974                 :           0 :                                 if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
    4975                 :             :                                   {
    4976                 :           0 :                                     if (integer_onep (_q71))
    4977                 :             :                                       {
    4978                 :           0 :                                         {
    4979                 :           0 :                                           tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q60 };
    4980                 :           0 :                                           tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
    4981                 :           0 :                                           if (res) return res;
    4982                 :             :                                         }
    4983                 :             :                                       }
    4984                 :             :                                   }
    4985                 :             :                               }
    4986                 :             :                             break;
    4987                 :             :                           }
    4988                 :           0 :                         default:;
    4989                 :             :                         }
    4990                 :           0 :                     {
    4991                 :           0 :                       tree _q70_pops[1];
    4992                 :           0 :                       if (tree_nop_convert (_q70, _q70_pops))
    4993                 :             :                         {
    4994                 :           0 :                           tree _q80 = _q70_pops[0];
    4995                 :           0 :                           switch (TREE_CODE (_q80))
    4996                 :             :                             {
    4997                 :           0 :                             case BIT_IOR_EXPR:
    4998                 :           0 :                               {
    4999                 :           0 :                                 tree _q90 = TREE_OPERAND (_q80, 0);
    5000                 :           0 :                                 tree _q91 = TREE_OPERAND (_q80, 1);
    5001                 :           0 :                                 if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
    5002                 :             :                                   {
    5003                 :           0 :                                     if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
    5004                 :             :                                       {
    5005                 :           0 :                                         if (integer_onep (_q71))
    5006                 :             :                                           {
    5007                 :           0 :                                             {
    5008                 :           0 :                                               tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q60 };
    5009                 :           0 :                                               tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
    5010                 :           0 :                                               if (res) return res;
    5011                 :             :                                             }
    5012                 :             :                                           }
    5013                 :             :                                       }
    5014                 :             :                                   }
    5015                 :           0 :                                 if ((_q90 == _q31 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q31, 0) && types_match (_q90, _q31)))
    5016                 :             :                                   {
    5017                 :           0 :                                     if ((_q91 == _q30 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q30, 0) && types_match (_q91, _q30)))
    5018                 :             :                                       {
    5019                 :           0 :                                         if (integer_onep (_q71))
    5020                 :             :                                           {
    5021                 :           0 :                                             {
    5022                 :           0 :                                               tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q60 };
    5023                 :           0 :                                               tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
    5024                 :           0 :                                               if (res) return res;
    5025                 :             :                                             }
    5026                 :             :                                           }
    5027                 :             :                                       }
    5028                 :             :                                   }
    5029                 :             :                                 break;
    5030                 :             :                               }
    5031                 :             :                             default:;
    5032                 :             :                             }
    5033                 :             :                         }
    5034                 :             :                     }
    5035                 :           0 :                       break;
    5036                 :             :                     }
    5037                 :             :                   default:;
    5038                 :             :                   }
    5039                 :             :               }
    5040                 :             :           }
    5041                 :          14 :             break;
    5042                 :             :           }
    5043                 :             :         default:;
    5044                 :             :         }
    5045                 :             :     }
    5046                 :             : }
    5047                 :    30328181 :   if (tree_negate_expr_p (_p1))
    5048                 :             :     {
    5049                 :     7430621 :       {
    5050                 :     7430621 :         tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    5051                 :     7430621 :         if (!FIXED_POINT_TYPE_P (type)
    5052                 :             : )
    5053                 :             :           {
    5054                 :     7430621 :             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1162;
    5055                 :     7430621 :             {
    5056                 :     7430621 :               tree res_op0;
    5057                 :     7430621 :               res_op0 = captures[0];
    5058                 :     7430621 :               tree res_op1;
    5059                 :     7430621 :               {
    5060                 :     7430621 :                 tree _o1[1], _r1;
    5061                 :     7430621 :                 _o1[0] = captures[1];
    5062                 :     7430621 :                 _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
    5063                 :     7430621 :                 res_op1 = _r1;
    5064                 :             :               }
    5065                 :     7430621 :               tree _r;
    5066                 :     7430621 :               _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
    5067                 :     7430621 :               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 878, __FILE__, __LINE__, true);
    5068                 :     7430621 :               return _r;
    5069                 :             :             }
    5070                 :           0 : next_after_fail1162:;
    5071                 :             :           }
    5072                 :             :       }
    5073                 :             :     }
    5074                 :    22897560 :   switch (TREE_CODE (_p0))
    5075                 :             :     {
    5076                 :     4858800 :     CASE_CONVERT:
    5077                 :     4858800 :       {
    5078                 :     4858800 :         tree _q20 = TREE_OPERAND (_p0, 0);
    5079                 :     4858800 :         switch (TREE_CODE (_p1))
    5080                 :             :           {
    5081                 :     4045816 :           CASE_CONVERT:
    5082                 :     4045816 :             {
    5083                 :     4045816 :               tree _q40 = TREE_OPERAND (_p1, 0);
    5084                 :     4045816 :               switch (TREE_CODE (_q40))
    5085                 :             :                 {
    5086                 :          15 :                 case BIT_AND_EXPR:
    5087                 :          15 :                   {
    5088                 :          15 :                     tree _q50 = TREE_OPERAND (_q40, 0);
    5089                 :          15 :                     tree _q51 = TREE_OPERAND (_q40, 1);
    5090                 :          15 :                     if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
    5091                 :             :                       {
    5092                 :           0 :                         {
    5093                 :           0 :                           tree captures[5] ATTRIBUTE_UNUSED = { _q50, _p1, _q40, _q51, _q20 };
    5094                 :           0 :                           tree res = generic_simplify_47 (loc, type, _p0, _p1, captures);
    5095                 :           0 :                           if (res) return res;
    5096                 :             :                         }
    5097                 :             :                       }
    5098                 :          15 :                     if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q20, 0))
    5099                 :             :                       {
    5100                 :           1 :                         {
    5101                 :           1 :                           tree captures[5] ATTRIBUTE_UNUSED = { _q51, _p1, _q40, _q50, _q20 };
    5102                 :           1 :                           tree res = generic_simplify_47 (loc, type, _p0, _p1, captures);
    5103                 :           1 :                           if (res) return res;
    5104                 :             :                         }
    5105                 :             :                       }
    5106                 :             :                     break;
    5107                 :             :                   }
    5108                 :             :                 default:;
    5109                 :             :                 }
    5110                 :             :               break;
    5111                 :             :             }
    5112                 :        5009 :           case BIT_AND_EXPR:
    5113                 :        5009 :             {
    5114                 :        5009 :               tree _q40 = TREE_OPERAND (_p1, 0);
    5115                 :        5009 :               tree _q41 = TREE_OPERAND (_p1, 1);
    5116                 :        5009 :               if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _q20, 0))
    5117                 :             :                 {
    5118                 :           0 :                   {
    5119                 :           0 :                     tree captures[5] ATTRIBUTE_UNUSED = { _q40, _p1, _p1, _q41, _q20 };
    5120                 :           0 :                     tree res = generic_simplify_48 (loc, type, _p0, _p1, captures);
    5121                 :           0 :                     if (res) return res;
    5122                 :             :                   }
    5123                 :             :                 }
    5124                 :        5009 :               if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _q20, 0))
    5125                 :             :                 {
    5126                 :          21 :                   {
    5127                 :          21 :                     tree captures[5] ATTRIBUTE_UNUSED = { _q41, _p1, _p1, _q40, _q20 };
    5128                 :          21 :                     tree res = generic_simplify_48 (loc, type, _p0, _p1, captures);
    5129                 :          21 :                     if (res) return res;
    5130                 :             :                   }
    5131                 :             :                 }
    5132                 :             :               break;
    5133                 :             :             }
    5134                 :     4858778 :           default:;
    5135                 :             :           }
    5136                 :     4858778 :         switch (TREE_CODE (_q20))
    5137                 :             :           {
    5138                 :      121029 :           case ADDR_EXPR:
    5139                 :      121029 :             {
    5140                 :      121029 :               switch (TREE_CODE (_p1))
    5141                 :             :                 {
    5142                 :      113997 :                 CASE_CONVERT:
    5143                 :      113997 :                   {
    5144                 :      113997 :                     tree _q40 = TREE_OPERAND (_p1, 0);
    5145                 :      113997 :                     switch (TREE_CODE (_q40))
    5146                 :             :                       {
    5147                 :       31239 :                       case POINTER_PLUS_EXPR:
    5148                 :       31239 :                         {
    5149                 :       31239 :                           tree _q50 = TREE_OPERAND (_q40, 0);
    5150                 :       31239 :                           tree _q51 = TREE_OPERAND (_q40, 1);
    5151                 :       31239 :                           {
    5152                 :       31239 :                             tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q50, _q51 };
    5153                 :       31239 :                             if (tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
    5154                 :             : )
    5155                 :             :                               {
    5156                 :       31239 :                                 {
    5157                 :       31239 :  poly_int64 diff;
    5158                 :       31239 :                                     if (ptr_difference_const (captures[0], captures[1], &diff)
    5159                 :             : )
    5160                 :             :                                       {
    5161                 :       13714 :                                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1163;
    5162                 :       13714 :                                         {
    5163                 :       13714 :                                           tree res_op0;
    5164                 :       13714 :                                           res_op0 =  build_int_cst_type (type, diff);
    5165                 :       13714 :                                           tree res_op1;
    5166                 :       13714 :                                           {
    5167                 :       13714 :                                             tree _o1[1], _r1;
    5168                 :       13714 :                                             _o1[0] = captures[2];
    5169                 :       13714 :                                             if (TREE_TYPE (_o1[0]) != type)
    5170                 :             :                                               {
    5171                 :       13714 :                                                 _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
    5172                 :             :                                               }
    5173                 :             :                                             else
    5174                 :             :                                               _r1 = _o1[0];
    5175                 :       13714 :                                             res_op1 = _r1;
    5176                 :             :                                           }
    5177                 :       13714 :                                           tree _r;
    5178                 :       13714 :                                           _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
    5179                 :       13714 :                                           if (TREE_SIDE_EFFECTS (captures[0]))
    5180                 :           0 :                                             _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    5181                 :       13714 :                                           if (TREE_SIDE_EFFECTS (captures[1]))
    5182                 :           0 :                                             _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    5183                 :       13714 :                                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 879, __FILE__, __LINE__, true);
    5184                 :       13714 :                                           return _r;
    5185                 :             :                                         }
    5186                 :           0 : next_after_fail1163:;
    5187                 :             :                                       }
    5188                 :             :                                 }
    5189                 :             :                               }
    5190                 :             :                           }
    5191                 :       17525 :                           break;
    5192                 :             :                         }
    5193                 :      100283 :                       default:;
    5194                 :             :                       }
    5195                 :      100283 :                     {
    5196                 :      100283 :                       tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
    5197                 :      100283 :                       if (tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
    5198                 :             : )
    5199                 :             :                         {
    5200                 :      100283 :                           {
    5201                 :      100283 :  poly_int64 diff;
    5202                 :      100283 :                               if (ptr_difference_const (captures[0], captures[1], &diff)
    5203                 :             : )
    5204                 :             :                                 {
    5205                 :       59383 :                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1164;
    5206                 :       59383 :                                   {
    5207                 :       59383 :                                     tree _r;
    5208                 :       59383 :                                     _r =  build_int_cst_type (type, diff);
    5209                 :       59383 :                                     if (TREE_SIDE_EFFECTS (captures[0]))
    5210                 :           0 :                                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    5211                 :       59383 :                                     if (TREE_SIDE_EFFECTS (captures[1]))
    5212                 :           0 :                                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    5213                 :       59383 :                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 880, __FILE__, __LINE__, true);
    5214                 :       59383 :                                     return _r;
    5215                 :             :                                   }
    5216                 :           0 : next_after_fail1164:;
    5217                 :             :                                 }
    5218                 :             :                           }
    5219                 :             :                         }
    5220                 :             :                     }
    5221                 :       40900 :                     break;
    5222                 :             :                   }
    5223                 :             :                 default:;
    5224                 :             :                 }
    5225                 :             :               break;
    5226                 :             :             }
    5227                 :       91561 :           case POINTER_PLUS_EXPR:
    5228                 :       91561 :             {
    5229                 :       91561 :               tree _q30 = TREE_OPERAND (_q20, 0);
    5230                 :       91561 :               tree _q31 = TREE_OPERAND (_q20, 1);
    5231                 :       91561 :               switch (TREE_CODE (_p1))
    5232                 :             :                 {
    5233                 :       90431 :                 CASE_CONVERT:
    5234                 :       90431 :                   {
    5235                 :       90431 :                     tree _q60 = TREE_OPERAND (_p1, 0);
    5236                 :       90431 :                     switch (TREE_CODE (_q60))
    5237                 :             :                       {
    5238                 :        5185 :                       case ADDR_EXPR:
    5239                 :        5185 :                         {
    5240                 :        5185 :                           {
    5241                 :        5185 :                             tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q60 };
    5242                 :        5185 :                             if (tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
    5243                 :             : )
    5244                 :             :                               {
    5245                 :        5185 :                                 {
    5246                 :        5185 :  poly_int64 diff;
    5247                 :        5185 :                                     if (ptr_difference_const (captures[0], captures[2], &diff)
    5248                 :             : )
    5249                 :             :                                       {
    5250                 :         944 :                                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1165;
    5251                 :         944 :                                         {
    5252                 :         944 :                                           tree res_op0;
    5253                 :         944 :                                           {
    5254                 :         944 :                                             tree _o1[1], _r1;
    5255                 :         944 :                                             _o1[0] = captures[1];
    5256                 :         944 :                                             if (TREE_TYPE (_o1[0]) != type)
    5257                 :             :                                               {
    5258                 :         671 :                                                 _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
    5259                 :             :                                               }
    5260                 :             :                                             else
    5261                 :             :                                               _r1 = _o1[0];
    5262                 :         944 :                                             res_op0 = _r1;
    5263                 :             :                                           }
    5264                 :         944 :                                           tree res_op1;
    5265                 :         944 :                                           res_op1 =  build_int_cst_type (type, diff);
    5266                 :         944 :                                           tree _r;
    5267                 :         944 :                                           _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
    5268                 :         944 :                                           if (TREE_SIDE_EFFECTS (captures[0]))
    5269                 :           0 :                                             _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    5270                 :         944 :                                           if (TREE_SIDE_EFFECTS (captures[2]))
    5271                 :           0 :                                             _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    5272                 :         944 :                                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 881, __FILE__, __LINE__, true);
    5273                 :         944 :                                           return _r;
    5274                 :             :                                         }
    5275                 :           0 : next_after_fail1165:;
    5276                 :             :                                       }
    5277                 :             :                                 }
    5278                 :             :                               }
    5279                 :             :                           }
    5280                 :        4241 :                           break;
    5281                 :             :                         }
    5282                 :             :                       default:;
    5283                 :             :                       }
    5284                 :             :                     break;
    5285                 :             :                   }
    5286                 :             :                 default:;
    5287                 :             :                 }
    5288                 :             :               break;
    5289                 :             :             }
    5290                 :     4784737 :           default:;
    5291                 :             :           }
    5292                 :     4784737 :         switch (TREE_CODE (_p1))
    5293                 :             :           {
    5294                 :     3971774 :           CASE_CONVERT:
    5295                 :     3971774 :             {
    5296                 :     3971774 :               tree _q40 = TREE_OPERAND (_p1, 0);
    5297                 :     3971774 :               switch (TREE_CODE (_q40))
    5298                 :             :                 {
    5299                 :       73777 :                 case ADDR_EXPR:
    5300                 :       73777 :                   {
    5301                 :       73777 :                     {
    5302                 :       73777 :                       tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
    5303                 :       73777 :                       if (tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
    5304                 :             : )
    5305                 :             :                         {
    5306                 :       73756 :                           {
    5307                 :       73756 :  poly_int64 diff;
    5308                 :       73756 :                               if (ptr_difference_const (captures[0], captures[1], &diff)
    5309                 :             : )
    5310                 :             :                                 {
    5311                 :           0 :                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1166;
    5312                 :           0 :                                   {
    5313                 :           0 :                                     tree _r;
    5314                 :           0 :                                     _r =  build_int_cst_type (type, diff);
    5315                 :           0 :                                     if (TREE_SIDE_EFFECTS (captures[0]))
    5316                 :           0 :                                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    5317                 :           0 :                                     if (TREE_SIDE_EFFECTS (captures[1]))
    5318                 :           0 :                                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    5319                 :           0 :                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 882, __FILE__, __LINE__, true);
    5320                 :           0 :                                     return _r;
    5321                 :             :                                   }
    5322                 :           0 : next_after_fail1166:;
    5323                 :             :                                 }
    5324                 :             :                           }
    5325                 :             :                         }
    5326                 :             :                     }
    5327                 :       73777 :                     break;
    5328                 :             :                   }
    5329                 :             :                 default:;
    5330                 :             :                 }
    5331                 :             :               break;
    5332                 :             :             }
    5333                 :             :           default:;
    5334                 :             :           }
    5335                 :             :         break;
    5336                 :             :       }
    5337                 :    22823497 :     default:;
    5338                 :             :     }
    5339                 :    22823497 : if (integer_onep (_p0))
    5340                 :             :   {
    5341                 :      105613 :     switch (TREE_CODE (_p1))
    5342                 :             :       {
    5343                 :       28021 :       case SSA_NAME:
    5344                 :       28021 :         {
    5345                 :       28021 :           {
    5346                 :       28021 :             tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    5347                 :       28021 :             if (INTEGRAL_TYPE_P (type)
    5348                 :       28021 :  && ssa_name_has_boolean_range (captures[1])
    5349                 :             : )
    5350                 :             :               {
    5351                 :         182 :                 if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1167;
    5352                 :         182 :                 {
    5353                 :         182 :                   tree res_op0;
    5354                 :         182 :                   res_op0 = captures[1];
    5355                 :         182 :                   tree res_op1;
    5356                 :         182 :                   res_op1 = captures[0];
    5357                 :         182 :                   tree _r;
    5358                 :         182 :                   _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
    5359                 :         182 :                   if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 883, __FILE__, __LINE__, true);
    5360                 :         182 :                   return _r;
    5361                 :             :                 }
    5362                 :           0 : next_after_fail1167:;
    5363                 :             :               }
    5364                 :             :           }
    5365                 :       27839 :           break;
    5366                 :             :         }
    5367                 :             :       default:;
    5368                 :             :       }
    5369                 :             :   }
    5370                 :    22823315 :   switch (TREE_CODE (_p1))
    5371                 :             :     {
    5372                 :     7189526 :     CASE_CONVERT:
    5373                 :     7189526 :       {
    5374                 :     7189526 :         tree _q30 = TREE_OPERAND (_p1, 0);
    5375                 :     7189526 :         switch (TREE_CODE (_q30))
    5376                 :             :           {
    5377                 :          14 :           case BIT_AND_EXPR:
    5378                 :          14 :             {
    5379                 :          14 :               tree _q40 = TREE_OPERAND (_q30, 0);
    5380                 :          14 :               tree _q41 = TREE_OPERAND (_q30, 1);
    5381                 :          14 :               if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _p0, 0))
    5382                 :             :                 {
    5383                 :           0 :                   {
    5384                 :           0 :                     tree captures[5] ATTRIBUTE_UNUSED = { _q40, _p1, _q30, _q41, _p0 };
    5385                 :           0 :                     tree res = generic_simplify_47 (loc, type, _p0, _p1, captures);
    5386                 :           0 :                     if (res) return res;
    5387                 :             :                   }
    5388                 :             :                 }
    5389                 :          14 :               if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _p0, 0))
    5390                 :             :                 {
    5391                 :           0 :                   {
    5392                 :           0 :                     tree captures[5] ATTRIBUTE_UNUSED = { _q41, _p1, _q30, _q40, _p0 };
    5393                 :           0 :                     tree res = generic_simplify_47 (loc, type, _p0, _p1, captures);
    5394                 :           0 :                     if (res) return res;
    5395                 :             :                   }
    5396                 :             :                 }
    5397                 :             :               break;
    5398                 :             :             }
    5399                 :             :           default:;
    5400                 :             :           }
    5401                 :             :         break;
    5402                 :             :       }
    5403                 :        7059 :     case BIT_AND_EXPR:
    5404                 :        7059 :       {
    5405                 :        7059 :         tree _q30 = TREE_OPERAND (_p1, 0);
    5406                 :        7059 :         tree _q31 = TREE_OPERAND (_p1, 1);
    5407                 :        7059 :         if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || operand_equal_p (_q30, _p0, 0))
    5408                 :             :           {
    5409                 :         217 :             {
    5410                 :         217 :               tree captures[5] ATTRIBUTE_UNUSED = { _q30, _p1, _p1, _q31, _p0 };
    5411                 :         217 :               tree res = generic_simplify_48 (loc, type, _p0, _p1, captures);
    5412                 :         217 :               if (res) return res;
    5413                 :             :             }
    5414                 :             :           }
    5415                 :        6842 :         if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || operand_equal_p (_q31, _p0, 0))
    5416                 :             :           {
    5417                 :          38 :             {
    5418                 :          38 :               tree captures[5] ATTRIBUTE_UNUSED = { _q31, _p1, _p1, _q30, _p0 };
    5419                 :          38 :               tree res = generic_simplify_48 (loc, type, _p0, _p1, captures);
    5420                 :          38 :               if (res) return res;
    5421                 :             :             }
    5422                 :             :           }
    5423                 :             :         break;
    5424                 :             :       }
    5425                 :    22823060 :     default:;
    5426                 :             :     }
    5427                 :    22823060 :   switch (TREE_CODE (_p0))
    5428                 :             :     {
    5429                 :     1697320 :     case PLUS_EXPR:
    5430                 :     1697320 :       {
    5431                 :     1697320 :         tree _q20 = TREE_OPERAND (_p0, 0);
    5432                 :     1697320 :         tree _q21 = TREE_OPERAND (_p0, 1);
    5433                 :     1697320 :         switch (TREE_CODE (_p1))
    5434                 :             :           {
    5435                 :      470784 :           case PLUS_EXPR:
    5436                 :      470784 :             {
    5437                 :      470784 :               tree _q50 = TREE_OPERAND (_p1, 0);
    5438                 :      470784 :               tree _q51 = TREE_OPERAND (_p1, 1);
    5439                 :      470784 :               if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
    5440                 :             :                 {
    5441                 :      163805 :                   {
    5442                 :      163805 :                     tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
    5443                 :      327610 :                     if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
    5444                 :      327610 :  && (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
    5445                 :       40313 :  || TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[0])))
    5446                 :             : )
    5447                 :             :                       {
    5448                 :      163799 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1168;
    5449                 :      163799 :                         {
    5450                 :      163799 :                           tree res_op0;
    5451                 :      163799 :                           res_op0 = captures[0];
    5452                 :      163799 :                           tree res_op1;
    5453                 :      163799 :                           res_op1 = captures[2];
    5454                 :      163799 :                           tree _r;
    5455                 :      163799 :                           _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
    5456                 :      163799 :                           if (TREE_SIDE_EFFECTS (captures[1]))
    5457                 :           0 :                             _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    5458                 :      163799 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 884, __FILE__, __LINE__, true);
    5459                 :      163799 :                           return _r;
    5460                 :             :                         }
    5461                 :           0 : next_after_fail1168:;
    5462                 :             :                       }
    5463                 :             :                   }
    5464                 :             :                 }
    5465                 :      306985 :               if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
    5466                 :             :                 {
    5467                 :         437 :                   {
    5468                 :         437 :                     tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
    5469                 :         874 :                     if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
    5470                 :         874 :  && (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
    5471                 :         292 :  || TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[0])))
    5472                 :             : )
    5473                 :             :                       {
    5474                 :         437 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1169;
    5475                 :         437 :                         {
    5476                 :         437 :                           tree res_op0;
    5477                 :         437 :                           res_op0 = captures[0];
    5478                 :         437 :                           tree res_op1;
    5479                 :         437 :                           res_op1 = captures[2];
    5480                 :         437 :                           tree _r;
    5481                 :         437 :                           _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
    5482                 :         437 :                           if (TREE_SIDE_EFFECTS (captures[1]))
    5483                 :           0 :                             _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    5484                 :         437 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 884, __FILE__, __LINE__, true);
    5485                 :         437 :                           return _r;
    5486                 :             :                         }
    5487                 :           0 : next_after_fail1169:;
    5488                 :             :                       }
    5489                 :             :                   }
    5490                 :             :                 }
    5491                 :      306548 :               if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
    5492                 :             :                 {
    5493                 :         251 :                   {
    5494                 :         251 :                     tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q50 };
    5495                 :         502 :                     if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
    5496                 :         502 :  && (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
    5497                 :         130 :  || TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[0])))
    5498                 :             : )
    5499                 :             :                       {
    5500                 :         251 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1170;
    5501                 :         251 :                         {
    5502                 :         251 :                           tree res_op0;
    5503                 :         251 :                           res_op0 = captures[0];
    5504                 :         251 :                           tree res_op1;
    5505                 :         251 :                           res_op1 = captures[2];
    5506                 :         251 :                           tree _r;
    5507                 :         251 :                           _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
    5508                 :         251 :                           if (TREE_SIDE_EFFECTS (captures[1]))
    5509                 :           0 :                             _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    5510                 :         251 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 884, __FILE__, __LINE__, true);
    5511                 :         251 :                           return _r;
    5512                 :             :                         }
    5513                 :           0 : next_after_fail1170:;
    5514                 :             :                       }
    5515                 :             :                   }
    5516                 :             :                 }
    5517                 :      306297 :               if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
    5518                 :             :                 {
    5519                 :      177667 :                   {
    5520                 :      177667 :                     tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
    5521                 :      355334 :                     if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
    5522                 :      355334 :  && (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
    5523                 :      137257 :  || TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[0])))
    5524                 :             : )
    5525                 :             :                       {
    5526                 :      177667 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1171;
    5527                 :      177667 :                         {
    5528                 :      177667 :                           tree res_op0;
    5529                 :      177667 :                           res_op0 = captures[0];
    5530                 :      177667 :                           tree res_op1;
    5531                 :      177667 :                           res_op1 = captures[2];
    5532                 :      177667 :                           tree _r;
    5533                 :      177667 :                           _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
    5534                 :      177667 :                           if (TREE_SIDE_EFFECTS (captures[1]))
    5535                 :           2 :                             _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    5536                 :      177667 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 884, __FILE__, __LINE__, true);
    5537                 :      177667 :                           return _r;
    5538                 :             :                         }
    5539                 :           0 : next_after_fail1171:;
    5540                 :             :                       }
    5541                 :             :                   }
    5542                 :             :                 }
    5543                 :             :               break;
    5544                 :             :             }
    5545                 :             :           default:;
    5546                 :             :           }
    5547                 :             :         break;
    5548                 :             :       }
    5549                 :      914232 :     case MINUS_EXPR:
    5550                 :      914232 :       {
    5551                 :      914232 :         tree _q20 = TREE_OPERAND (_p0, 0);
    5552                 :      914232 :         tree _q21 = TREE_OPERAND (_p0, 1);
    5553                 :      914232 :         switch (TREE_CODE (_p1))
    5554                 :             :           {
    5555                 :        3919 :           case MINUS_EXPR:
    5556                 :        3919 :             {
    5557                 :        3919 :               tree _q50 = TREE_OPERAND (_p1, 0);
    5558                 :        3919 :               tree _q51 = TREE_OPERAND (_p1, 1);
    5559                 :        3919 :               if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
    5560                 :             :                 {
    5561                 :        3877 :                   {
    5562                 :        3877 :                     tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
    5563                 :        7754 :                     if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
    5564                 :        7754 :  && (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
    5565                 :           0 :  || TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[0])))
    5566                 :             : )
    5567                 :             :                       {
    5568                 :        3877 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1172;
    5569                 :        3877 :                         {
    5570                 :        3877 :                           tree res_op0;
    5571                 :        3877 :                           res_op0 = captures[0];
    5572                 :        3877 :                           tree res_op1;
    5573                 :        3877 :                           res_op1 = captures[2];
    5574                 :        3877 :                           tree _r;
    5575                 :        3877 :                           _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
    5576                 :        3877 :                           if (TREE_SIDE_EFFECTS (captures[1]))
    5577                 :           0 :                             _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    5578                 :        3877 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 885, __FILE__, __LINE__, true);
    5579                 :        3877 :                           return _r;
    5580                 :             :                         }
    5581                 :           0 : next_after_fail1172:;
    5582                 :             :                       }
    5583                 :             :                   }
    5584                 :             :                 }
    5585                 :          42 :               if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
    5586                 :             :                 {
    5587                 :           0 :                   {
    5588                 :           0 :                     tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
    5589                 :           0 :                     if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
    5590                 :           0 :  && (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[1]))
    5591                 :           0 :  || TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[1])))
    5592                 :             : )
    5593                 :             :                       {
    5594                 :           0 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1173;
    5595                 :           0 :                         {
    5596                 :           0 :                           tree res_op0;
    5597                 :           0 :                           res_op0 = captures[2];
    5598                 :           0 :                           tree res_op1;
    5599                 :           0 :                           res_op1 = captures[1];
    5600                 :           0 :                           tree _r;
    5601                 :           0 :                           _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
    5602                 :           0 :                           if (TREE_SIDE_EFFECTS (captures[0]))
    5603                 :           0 :                             _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    5604                 :           0 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 886, __FILE__, __LINE__, true);
    5605                 :           0 :                           return _r;
    5606                 :             :                         }
    5607                 :           0 : next_after_fail1173:;
    5608                 :             :                       }
    5609                 :             :                   }
    5610                 :             :                 }
    5611                 :             :               break;
    5612                 :             :             }
    5613                 :             :           default:;
    5614                 :             :           }
    5615                 :             :         break;
    5616                 :             :       }
    5617                 :          59 :     case POINTER_DIFF_EXPR:
    5618                 :          59 :       {
    5619                 :          59 :         tree _q20 = TREE_OPERAND (_p0, 0);
    5620                 :          59 :         tree _q21 = TREE_OPERAND (_p0, 1);
    5621                 :          59 :         switch (TREE_CODE (_p1))
    5622                 :             :           {
    5623                 :           0 :           case POINTER_DIFF_EXPR:
    5624                 :           0 :             {
    5625                 :           0 :               tree _q50 = TREE_OPERAND (_p1, 0);
    5626                 :           0 :               tree _q51 = TREE_OPERAND (_p1, 1);
    5627                 :           0 :               if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
    5628                 :             :                 {
    5629                 :           0 :                   {
    5630                 :           0 :                     tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q50 };
    5631                 :           0 :                     if (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
    5632                 :           0 :  && !TYPE_OVERFLOW_SANITIZED (TREE_TYPE (captures[2]))
    5633                 :             : )
    5634                 :             :                       {
    5635                 :           0 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1174;
    5636                 :           0 :                         {
    5637                 :           0 :                           tree res_op0;
    5638                 :           0 :                           res_op0 = captures[1];
    5639                 :           0 :                           tree res_op1;
    5640                 :           0 :                           res_op1 = captures[3];
    5641                 :           0 :                           tree _r;
    5642                 :           0 :                           _r = fold_build2_loc (loc, POINTER_DIFF_EXPR, type, res_op0, res_op1);
    5643                 :           0 :                           if (TREE_SIDE_EFFECTS (captures[2]))
    5644                 :           0 :                             _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    5645                 :           0 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 887, __FILE__, __LINE__, true);
    5646                 :           0 :                           return _r;
    5647                 :             :                         }
    5648                 :           0 : next_after_fail1174:;
    5649                 :             :                       }
    5650                 :             :                   }
    5651                 :             :                 }
    5652                 :           0 :               if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
    5653                 :             :                 {
    5654                 :           0 :                   {
    5655                 :           0 :                     tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q51 };
    5656                 :           0 :                     if (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
    5657                 :           0 :  && !TYPE_OVERFLOW_SANITIZED (TREE_TYPE (captures[1]))
    5658                 :             : )
    5659                 :             :                       {
    5660                 :           0 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1175;
    5661                 :           0 :                         {
    5662                 :           0 :                           tree res_op0;
    5663                 :           0 :                           res_op0 = captures[3];
    5664                 :           0 :                           tree res_op1;
    5665                 :           0 :                           res_op1 = captures[2];
    5666                 :           0 :                           tree _r;
    5667                 :           0 :                           _r = fold_build2_loc (loc, POINTER_DIFF_EXPR, type, res_op0, res_op1);
    5668                 :           0 :                           if (TREE_SIDE_EFFECTS (captures[1]))
    5669                 :           0 :                             _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    5670                 :           0 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 888, __FILE__, __LINE__, true);
    5671                 :           0 :                           return _r;
    5672                 :             :                         }
    5673                 :           0 : next_after_fail1175:;
    5674                 :             :                       }
    5675                 :             :                   }
    5676                 :             :                 }
    5677                 :             :               break;
    5678                 :             :             }
    5679                 :             :           default:;
    5680                 :             :           }
    5681                 :             :         break;
    5682                 :             :       }
    5683                 :    22477029 :     default:;
    5684                 :             :     }
    5685                 :    22477029 :   switch (TREE_CODE (_p1))
    5686                 :             :     {
    5687                 :     7189526 :     CASE_CONVERT:
    5688                 :     7189526 :       {
    5689                 :     7189526 :         tree _q30 = TREE_OPERAND (_p1, 0);
    5690                 :     7189526 :         switch (TREE_CODE (_q30))
    5691                 :             :           {
    5692                 :        1467 :           case NEGATE_EXPR:
    5693                 :        1467 :             {
    5694                 :        1467 :               tree _q40 = TREE_OPERAND (_q30, 0);
    5695                 :        1467 :               {
    5696                 :        1467 :                 tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q40 };
    5697                 :        1467 :                 tree res = generic_simplify_49 (loc, type, _p0, _p1, captures);
    5698                 :        1467 :                 if (res) return res;
    5699                 :             :               }
    5700                 :        1467 :               break;
    5701                 :             :             }
    5702                 :             :           default:;
    5703                 :             :           }
    5704                 :             :         break;
    5705                 :             :       }
    5706                 :          45 :     case NEGATE_EXPR:
    5707                 :          45 :       {
    5708                 :          45 :         tree _q30 = TREE_OPERAND (_p1, 0);
    5709                 :          45 :         {
    5710                 :          45 :           tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
    5711                 :          45 :           tree res = generic_simplify_49 (loc, type, _p0, _p1, captures);
    5712                 :          45 :           if (res) return res;
    5713                 :             :         }
    5714                 :          40 :         break;
    5715                 :             :       }
    5716                 :    22477024 :     default:;
    5717                 :             :     }
    5718                 :    22477024 :   switch (TREE_CODE (_p0))
    5719                 :             :     {
    5720                 :     1355166 :     case PLUS_EXPR:
    5721                 :     1355166 :       {
    5722                 :     1355166 :         tree _q20 = TREE_OPERAND (_p0, 0);
    5723                 :     1355166 :         tree _q21 = TREE_OPERAND (_p0, 1);
    5724                 :     1355166 :         {
    5725                 :     1355166 :           tree _q20_pops[1];
    5726                 :     1355166 :           if (tree_nop_convert (_q20, _q20_pops))
    5727                 :             :             {
    5728                 :      329622 :               tree _q30 = _q20_pops[0];
    5729                 :      329622 :               if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
    5730                 :             :                 {
    5731                 :         355 :                   {
    5732                 :         355 :                     tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q21 };
    5733                 :         355 :                     tree res = generic_simplify_50 (loc, type, _p0, _p1, captures);
    5734                 :         355 :                     if (res) return res;
    5735                 :             :                   }
    5736                 :             :                 }
    5737                 :             :             }
    5738                 :             :         }
    5739                 :     1354811 :         {
    5740                 :     1354811 :           tree _q21_pops[1];
    5741                 :     1354811 :           if (tree_nop_convert (_q21, _q21_pops))
    5742                 :             :             {
    5743                 :      437000 :               tree _q40 = _q21_pops[0];
    5744                 :      437000 :               if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
    5745                 :             :                 {
    5746                 :          87 :                   {
    5747                 :          87 :                     tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q20 };
    5748                 :          87 :                     tree res = generic_simplify_50 (loc, type, _p0, _p1, captures);
    5749                 :          87 :                     if (res) return res;
    5750                 :             :                   }
    5751                 :             :                 }
    5752                 :             :             }
    5753                 :             :         }
    5754                 :     1354724 :         if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
    5755                 :             :           {
    5756                 :       53144 :             {
    5757                 :       53144 :               tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
    5758                 :       53144 :               tree res = generic_simplify_50 (loc, type, _p0, _p1, captures);
    5759                 :       53144 :               if (res) return res;
    5760                 :             :             }
    5761                 :             :           }
    5762                 :     1301580 :         if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
    5763                 :             :           {
    5764                 :        1725 :             {
    5765                 :        1725 :               tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
    5766                 :        1725 :               tree res = generic_simplify_50 (loc, type, _p0, _p1, captures);
    5767                 :        1725 :               if (res) return res;
    5768                 :             :             }
    5769                 :             :           }
    5770                 :             :         break;
    5771                 :             :       }
    5772                 :      910355 :     case MINUS_EXPR:
    5773                 :      910355 :       {
    5774                 :      910355 :         tree _q20 = TREE_OPERAND (_p0, 0);
    5775                 :      910355 :         tree _q21 = TREE_OPERAND (_p0, 1);
    5776                 :      910355 :         {
    5777                 :      910355 :           tree _q20_pops[1];
    5778                 :      910355 :           if (tree_nop_convert (_q20, _q20_pops))
    5779                 :             :             {
    5780                 :       67589 :               tree _q30 = _q20_pops[0];
    5781                 :       67589 :               if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
    5782                 :             :                 {
    5783                 :           0 :                   {
    5784                 :           0 :                     tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q21 };
    5785                 :           0 :                     tree res = generic_simplify_51 (loc, type, _p0, _p1, captures);
    5786                 :           0 :                     if (res) return res;
    5787                 :             :                   }
    5788                 :             :                 }
    5789                 :             :             }
    5790                 :             :         }
    5791                 :      910355 :         if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
    5792                 :             :           {
    5793                 :         186 :             {
    5794                 :         186 :               tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
    5795                 :         186 :               tree res = generic_simplify_51 (loc, type, _p0, _p1, captures);
    5796                 :         186 :               if (res) return res;
    5797                 :             :             }
    5798                 :             :           }
    5799                 :             :         break;
    5800                 :             :       }
    5801                 :    22421538 :     default:;
    5802                 :             :     }
    5803                 :    22421538 : {
    5804                 :    22421538 :   tree _p0_pops[1];
    5805                 :    22421538 :   if (tree_nop_convert (_p0, _p0_pops))
    5806                 :             :     {
    5807                 :     4372436 :       tree _q20 = _p0_pops[0];
    5808                 :     4372436 :       switch (TREE_CODE (_q20))
    5809                 :             :         {
    5810                 :      336751 :         case PLUS_EXPR:
    5811                 :      336751 :           {
    5812                 :      336751 :             tree _q30 = TREE_OPERAND (_q20, 0);
    5813                 :      336751 :             tree _q31 = TREE_OPERAND (_q20, 1);
    5814                 :      336751 :             {
    5815                 :      336751 :               tree _q30_pops[1];
    5816                 :      336751 :               if (tree_nop_convert (_q30, _q30_pops))
    5817                 :             :                 {
    5818                 :       31392 :                   tree _q40 = _q30_pops[0];
    5819                 :       31392 :                   if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
    5820                 :             :                     {
    5821                 :         622 :                       {
    5822                 :         622 :                         tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q31 };
    5823                 :         622 :                         tree res = generic_simplify_50 (loc, type, _p0, _p1, captures);
    5824                 :         622 :                         if (res) return res;
    5825                 :             :                       }
    5826                 :             :                     }
    5827                 :             :                 }
    5828                 :             :             }
    5829                 :      336129 :             {
    5830                 :      336129 :               tree _q31_pops[1];
    5831                 :      336129 :               if (tree_nop_convert (_q31, _q31_pops))
    5832                 :             :                 {
    5833                 :        2139 :                   tree _q50 = _q31_pops[0];
    5834                 :        2139 :                   if ((_p1 == _q50 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q50, 0) && types_match (_p1, _q50)))
    5835                 :             :                     {
    5836                 :          52 :                       {
    5837                 :          52 :                         tree captures[2] ATTRIBUTE_UNUSED = { _q50, _q30 };
    5838                 :          52 :                         tree res = generic_simplify_50 (loc, type, _p0, _p1, captures);
    5839                 :          52 :                         if (res) return res;
    5840                 :             :                       }
    5841                 :             :                     }
    5842                 :             :                 }
    5843                 :             :             }
    5844                 :      336077 :             if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
    5845                 :             :               {
    5846                 :          16 :                 {
    5847                 :          16 :                   tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
    5848                 :          16 :                   tree res = generic_simplify_50 (loc, type, _p0, _p1, captures);
    5849                 :          16 :                   if (res) return res;
    5850                 :             :                 }
    5851                 :             :               }
    5852                 :      336061 :             if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
    5853                 :             :               {
    5854                 :           0 :                 {
    5855                 :           0 :                   tree captures[2] ATTRIBUTE_UNUSED = { _q31, _q30 };
    5856                 :           0 :                   tree res = generic_simplify_50 (loc, type, _p0, _p1, captures);
    5857                 :           0 :                   if (res) return res;
    5858                 :             :                 }
    5859                 :             :               }
    5860                 :             :             break;
    5861                 :             :           }
    5862                 :         873 :         case MINUS_EXPR:
    5863                 :         873 :           {
    5864                 :         873 :             tree _q30 = TREE_OPERAND (_q20, 0);
    5865                 :         873 :             tree _q31 = TREE_OPERAND (_q20, 1);
    5866                 :         873 :             {
    5867                 :         873 :               tree _q30_pops[1];
    5868                 :         873 :               if (tree_nop_convert (_q30, _q30_pops))
    5869                 :             :                 {
    5870                 :         398 :                   tree _q40 = _q30_pops[0];
    5871                 :         398 :                   if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
    5872                 :             :                     {
    5873                 :           0 :                       {
    5874                 :           0 :                         tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q31 };
    5875                 :           0 :                         tree res = generic_simplify_51 (loc, type, _p0, _p1, captures);
    5876                 :           0 :                         if (res) return res;
    5877                 :             :                       }
    5878                 :             :                     }
    5879                 :             :                 }
    5880                 :             :             }
    5881                 :         873 :             if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
    5882                 :             :               {
    5883                 :           0 :                 {
    5884                 :           0 :                   tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
    5885                 :           0 :                   tree res = generic_simplify_51 (loc, type, _p0, _p1, captures);
    5886                 :           0 :                   if (res) return res;
    5887                 :             :                 }
    5888                 :             :               }
    5889                 :             :             break;
    5890                 :             :           }
    5891                 :             :         default:;
    5892                 :             :         }
    5893                 :             :     }
    5894                 :             : }
    5895                 :    22420848 :   switch (TREE_CODE (_p1))
    5896                 :             :     {
    5897                 :     1286306 :     case PLUS_EXPR:
    5898                 :     1286306 :       {
    5899                 :     1286306 :         tree _q30 = TREE_OPERAND (_p1, 0);
    5900                 :     1286306 :         tree _q31 = TREE_OPERAND (_p1, 1);
    5901                 :     1286306 :         {
    5902                 :     1286306 :           tree _q30_pops[1];
    5903                 :     1286306 :           if (tree_nop_convert (_q30, _q30_pops))
    5904                 :             :             {
    5905                 :      339603 :               tree _q40 = _q30_pops[0];
    5906                 :      339603 :               if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
    5907                 :             :                 {
    5908                 :          71 :                   {
    5909                 :          71 :                     tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
    5910                 :          71 :                     tree res = generic_simplify_52 (loc, type, _p0, _p1, captures);
    5911                 :          71 :                     if (res) return res;
    5912                 :             :                   }
    5913                 :             :                 }
    5914                 :             :             }
    5915                 :             :         }
    5916                 :     1286235 :         {
    5917                 :     1286235 :           tree _q31_pops[1];
    5918                 :     1286235 :           if (tree_nop_convert (_q31, _q31_pops))
    5919                 :             :             {
    5920                 :       58875 :               tree _q50 = _q31_pops[0];
    5921                 :       58875 :               if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
    5922                 :             :                 {
    5923                 :           0 :                   {
    5924                 :           0 :                     tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
    5925                 :           0 :                     tree res = generic_simplify_52 (loc, type, _p0, _p1, captures);
    5926                 :           0 :                     if (res) return res;
    5927                 :             :                   }
    5928                 :             :                 }
    5929                 :             :             }
    5930                 :             :         }
    5931                 :     1286235 :         if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
    5932                 :             :           {
    5933                 :       38587 :             {
    5934                 :       38587 :               tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
    5935                 :       38587 :               tree res = generic_simplify_52 (loc, type, _p0, _p1, captures);
    5936                 :       38587 :               if (res) return res;
    5937                 :             :             }
    5938                 :             :           }
    5939                 :     1247648 :         if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
    5940                 :             :           {
    5941                 :        2708 :             {
    5942                 :        2708 :               tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
    5943                 :        2708 :               tree res = generic_simplify_52 (loc, type, _p0, _p1, captures);
    5944                 :        2708 :               if (res) return res;
    5945                 :             :             }
    5946                 :             :           }
    5947                 :             :         break;
    5948                 :             :       }
    5949                 :       71511 :     case MINUS_EXPR:
    5950                 :       71511 :       {
    5951                 :       71511 :         tree _q30 = TREE_OPERAND (_p1, 0);
    5952                 :       71511 :         tree _q31 = TREE_OPERAND (_p1, 1);
    5953                 :       71511 :         {
    5954                 :       71511 :           tree _q30_pops[1];
    5955                 :       71511 :           if (tree_nop_convert (_q30, _q30_pops))
    5956                 :             :             {
    5957                 :          61 :               tree _q40 = _q30_pops[0];
    5958                 :          61 :               if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
    5959                 :             :                 {
    5960                 :           0 :                   {
    5961                 :           0 :                     tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
    5962                 :           0 :                     tree res = generic_simplify_53 (loc, type, _p0, _p1, captures);
    5963                 :           0 :                     if (res) return res;
    5964                 :             :                   }
    5965                 :             :                 }
    5966                 :             :             }
    5967                 :             :         }
    5968                 :       71511 :         if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
    5969                 :             :           {
    5970                 :         134 :             {
    5971                 :         134 :               tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
    5972                 :         134 :               tree res = generic_simplify_53 (loc, type, _p0, _p1, captures);
    5973                 :         134 :               if (res) return res;
    5974                 :             :             }
    5975                 :             :           }
    5976                 :             :         break;
    5977                 :             :       }
    5978                 :    22379348 :     default:;
    5979                 :             :     }
    5980                 :    22379348 : {
    5981                 :    22379348 :   tree _p1_pops[1];
    5982                 :    22379348 :   if (tree_nop_convert (_p1, _p1_pops))
    5983                 :             :     {
    5984                 :     6512252 :       tree _q30 = _p1_pops[0];
    5985                 :     6512252 :       switch (TREE_CODE (_q30))
    5986                 :             :         {
    5987                 :      675446 :         case PLUS_EXPR:
    5988                 :      675446 :           {
    5989                 :      675446 :             tree _q40 = TREE_OPERAND (_q30, 0);
    5990                 :      675446 :             tree _q41 = TREE_OPERAND (_q30, 1);
    5991                 :      675446 :             {
    5992                 :      675446 :               tree _q40_pops[1];
    5993                 :      675446 :               if (tree_nop_convert (_q40, _q40_pops))
    5994                 :             :                 {
    5995                 :       85583 :                   tree _q50 = _q40_pops[0];
    5996                 :       85583 :                   if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
    5997                 :             :                     {
    5998                 :         149 :                       {
    5999                 :         149 :                         tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q41 };
    6000                 :         149 :                         tree res = generic_simplify_52 (loc, type, _p0, _p1, captures);
    6001                 :         149 :                         if (res) return res;
    6002                 :             :                       }
    6003                 :             :                     }
    6004                 :             :                 }
    6005                 :             :             }
    6006                 :      675297 :             {
    6007                 :      675297 :               tree _q41_pops[1];
    6008                 :      675297 :               if (tree_nop_convert (_q41, _q41_pops))
    6009                 :             :                 {
    6010                 :       17500 :                   tree _q60 = _q41_pops[0];
    6011                 :       17500 :                   if ((_q60 == _p0 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _p0, 0) && types_match (_q60, _p0)))
    6012                 :             :                     {
    6013                 :           0 :                       {
    6014                 :           0 :                         tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q40 };
    6015                 :           0 :                         tree res = generic_simplify_52 (loc, type, _p0, _p1, captures);
    6016                 :           0 :                         if (res) return res;
    6017                 :             :                       }
    6018                 :             :                     }
    6019                 :             :                 }
    6020                 :             :             }
    6021                 :      675297 :             if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
    6022                 :             :               {
    6023                 :           7 :                 {
    6024                 :           7 :                   tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q41 };
    6025                 :           7 :                   tree res = generic_simplify_52 (loc, type, _p0, _p1, captures);
    6026                 :           7 :                   if (res) return res;
    6027                 :             :                 }
    6028                 :             :               }
    6029                 :      675290 :             if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
    6030                 :             :               {
    6031                 :           0 :                 {
    6032                 :           0 :                   tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q40 };
    6033                 :           0 :                   tree res = generic_simplify_52 (loc, type, _p0, _p1, captures);
    6034                 :           0 :                   if (res) return res;
    6035                 :             :                 }
    6036                 :             :               }
    6037                 :             :             break;
    6038                 :             :           }
    6039                 :        7414 :         case MINUS_EXPR:
    6040                 :        7414 :           {
    6041                 :        7414 :             tree _q40 = TREE_OPERAND (_q30, 0);
    6042                 :        7414 :             tree _q41 = TREE_OPERAND (_q30, 1);
    6043                 :        7414 :             {
    6044                 :        7414 :               tree _q40_pops[1];
    6045                 :        7414 :               if (tree_nop_convert (_q40, _q40_pops))
    6046                 :             :                 {
    6047                 :        6708 :                   tree _q50 = _q40_pops[0];
    6048                 :        6708 :                   if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
    6049                 :             :                     {
    6050                 :           0 :                       {
    6051                 :           0 :                         tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q41 };
    6052                 :           0 :                         tree res = generic_simplify_53 (loc, type, _p0, _p1, captures);
    6053                 :           0 :                         if (res) return res;
    6054                 :             :                       }
    6055                 :             :                     }
    6056                 :             :                 }
    6057                 :             :             }
    6058                 :        7414 :             if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
    6059                 :             :               {
    6060                 :           2 :                 {
    6061                 :           2 :                   tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q41 };
    6062                 :           2 :                   tree res = generic_simplify_53 (loc, type, _p0, _p1, captures);
    6063                 :           2 :                   if (res) return res;
    6064                 :             :                 }
    6065                 :             :               }
    6066                 :             :             break;
    6067                 :             :           }
    6068                 :             :         default:;
    6069                 :             :         }
    6070                 :             :     }
    6071                 :             : }
    6072                 :    22379190 :   switch (TREE_CODE (_p0))
    6073                 :             :     {
    6074                 :     1299866 :     case PLUS_EXPR:
    6075                 :     1299866 :       {
    6076                 :     1299866 :         tree _q20 = TREE_OPERAND (_p0, 0);
    6077                 :     1299866 :         tree _q21 = TREE_OPERAND (_p0, 1);
    6078                 :     1299866 :         switch (TREE_CODE (_p1))
    6079                 :             :           {
    6080                 :           0 :           case MINUS_EXPR:
    6081                 :           0 :             {
    6082                 :           0 :               tree _q50 = TREE_OPERAND (_p1, 0);
    6083                 :           0 :               tree _q51 = TREE_OPERAND (_p1, 1);
    6084                 :           0 :               if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
    6085                 :             :                 {
    6086                 :           0 :                   {
    6087                 :           0 :                     tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
    6088                 :           0 :                     tree res = generic_simplify_54 (loc, type, _p0, _p1, captures);
    6089                 :           0 :                     if (res) return res;
    6090                 :             :                   }
    6091                 :             :                 }
    6092                 :           0 :               if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
    6093                 :             :                 {
    6094                 :           0 :                   {
    6095                 :           0 :                     tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
    6096                 :           0 :                     tree res = generic_simplify_54 (loc, type, _p0, _p1, captures);
    6097                 :           0 :                     if (res) return res;
    6098                 :             :                   }
    6099                 :             :                 }
    6100                 :             :               break;
    6101                 :             :             }
    6102                 :     1299866 :           default:;
    6103                 :             :           }
    6104                 :     1299866 :         if (CONSTANT_CLASS_P (_q21))
    6105                 :             :           {
    6106                 :      572585 :             if (CONSTANT_CLASS_P (_p1))
    6107                 :             :               {
    6108                 :          13 :                 {
    6109                 :          13 :                   tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
    6110                 :          13 :                   tree res = generic_simplify_17 (loc, type, _p0, _p1, captures, PLUS_EXPR, MINUS_EXPR, MINUS_EXPR);
    6111                 :          13 :                   if (res) return res;
    6112                 :             :                 }
    6113                 :             :               }
    6114                 :             :           }
    6115                 :             :         break;
    6116                 :             :       }
    6117                 :      910169 :     case MINUS_EXPR:
    6118                 :      910169 :       {
    6119                 :      910169 :         tree _q20 = TREE_OPERAND (_p0, 0);
    6120                 :      910169 :         tree _q21 = TREE_OPERAND (_p0, 1);
    6121                 :      910169 :         if (CONSTANT_CLASS_P (_q21))
    6122                 :             :           {
    6123                 :      101566 :             if (CONSTANT_CLASS_P (_p1))
    6124                 :             :               {
    6125                 :          12 :                 {
    6126                 :          12 :                   tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
    6127                 :          12 :                   tree res = generic_simplify_17 (loc, type, _p0, _p1, captures, MINUS_EXPR, PLUS_EXPR, MINUS_EXPR);
    6128                 :          12 :                   if (res) return res;
    6129                 :             :                 }
    6130                 :             :               }
    6131                 :             :           }
    6132                 :      910169 :         if (CONSTANT_CLASS_P (_q20))
    6133                 :             :           {
    6134                 :        2890 :             if (CONSTANT_CLASS_P (_p1))
    6135                 :             :               {
    6136                 :           1 :                 {
    6137                 :           1 :                   tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
    6138                 :           1 :                   tree res = generic_simplify_18 (loc, type, _p0, _p1, captures, MINUS_EXPR);
    6139                 :           1 :                   if (res) return res;
    6140                 :             :                 }
    6141                 :             :               }
    6142                 :             :           }
    6143                 :             :         break;
    6144                 :             :       }
    6145                 :     4769753 :     CASE_CONVERT:
    6146                 :     4769753 :       {
    6147                 :     4769753 :         tree _q20 = TREE_OPERAND (_p0, 0);
    6148                 :     4769753 :         switch (TREE_CODE (_p1))
    6149                 :             :           {
    6150                 :     3971758 :           CASE_CONVERT:
    6151                 :     3971758 :             {
    6152                 :     3971758 :               tree _q40 = TREE_OPERAND (_p1, 0);
    6153                 :     3971758 :               {
    6154                 :     3971758 :                 tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
    6155                 :     3971758 :                 tree res = generic_simplify_22 (loc, type, _p0, _p1, captures, MINUS_EXPR);
    6156                 :     3971758 :                 if (res) return res;
    6157                 :             :               }
    6158                 :     3957820 :               break;
    6159                 :             :             }
    6160                 :     4755815 :           default:;
    6161                 :             :           }
    6162                 :     4755815 :         switch (TREE_CODE (_q20))
    6163                 :             :           {
    6164                 :         223 :           case NEGATE_EXPR:
    6165                 :         223 :             {
    6166                 :         223 :               tree _q30 = TREE_OPERAND (_q20, 0);
    6167                 :         223 :               if (integer_each_onep (_p1))
    6168                 :             :                 {
    6169                 :           0 :                   {
    6170                 :           0 :                     tree captures[1] ATTRIBUTE_UNUSED = { _q30 };
    6171                 :           0 :                     tree res = generic_simplify_56 (loc, type, _p0, _p1, captures);
    6172                 :           0 :                     if (res) return res;
    6173                 :             :                   }
    6174                 :             :                 }
    6175                 :             :               break;
    6176                 :             :             }
    6177                 :      386198 :           case PLUS_EXPR:
    6178                 :      386198 :             {
    6179                 :      386198 :               tree _q30 = TREE_OPERAND (_q20, 0);
    6180                 :      386198 :               tree _q31 = TREE_OPERAND (_q20, 1);
    6181                 :      386198 :               switch (TREE_CODE (_p1))
    6182                 :             :                 {
    6183                 :      369933 :                 CASE_CONVERT:
    6184                 :      369933 :                   {
    6185                 :      369933 :                     tree _q60 = TREE_OPERAND (_p1, 0);
    6186                 :      369933 :                     if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q30, 0))
    6187                 :             :                       {
    6188                 :        5683 :                         {
    6189                 :        5683 :                           tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q30 };
    6190                 :        5683 :                           tree res = generic_simplify_57 (loc, type, _p0, _p1, captures);
    6191                 :        5683 :                           if (res) return res;
    6192                 :             :                         }
    6193                 :             :                       }
    6194                 :      364364 :                     if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q31, 0))
    6195                 :             :                       {
    6196                 :          32 :                         {
    6197                 :          32 :                           tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q31 };
    6198                 :          32 :                           tree res = generic_simplify_57 (loc, type, _p0, _p1, captures);
    6199                 :          32 :                           if (res) return res;
    6200                 :             :                         }
    6201                 :             :                       }
    6202                 :             :                     break;
    6203                 :             :                   }
    6204                 :      380597 :                 default:;
    6205                 :             :                 }
    6206                 :      380597 :               if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q30, 0))
    6207                 :             :                 {
    6208                 :        3867 :                   {
    6209                 :        3867 :                     tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q30 };
    6210                 :        3867 :                     tree res = generic_simplify_57 (loc, type, _p0, _p1, captures);
    6211                 :        3867 :                     if (res) return res;
    6212                 :             :                   }
    6213                 :             :                 }
    6214                 :      376730 :               if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q31, 0))
    6215                 :             :                 {
    6216                 :         960 :                   {
    6217                 :         960 :                     tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q31 };
    6218                 :         960 :                     tree res = generic_simplify_57 (loc, type, _p0, _p1, captures);
    6219                 :         960 :                     if (res) return res;
    6220                 :             :                   }
    6221                 :             :                 }
    6222                 :             :               break;
    6223                 :             :             }
    6224                 :       90617 :           case POINTER_PLUS_EXPR:
    6225                 :       90617 :             {
    6226                 :       90617 :               tree _q30 = TREE_OPERAND (_q20, 0);
    6227                 :       90617 :               tree _q31 = TREE_OPERAND (_q20, 1);
    6228                 :       90617 :               switch (TREE_CODE (_p1))
    6229                 :             :                 {
    6230                 :       89487 :                 CASE_CONVERT:
    6231                 :       89487 :                   {
    6232                 :       89487 :                     tree _q60 = TREE_OPERAND (_p1, 0);
    6233                 :       89487 :                     if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q30, 0))
    6234                 :             :                       {
    6235                 :       10750 :                         {
    6236                 :       10750 :                           tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q30 };
    6237                 :       10750 :                           if (!TYPE_SATURATING (type)
    6238                 :             : )
    6239                 :             :                             {
    6240                 :       10750 :                               if ((!FLOAT_TYPE_P (type) || flag_associative_math)
    6241                 :       21500 :  && !FIXED_POINT_TYPE_P (type)
    6242                 :             : )
    6243                 :             :                                 {
    6244                 :       10750 :                                   if (element_precision (type) <= element_precision (TREE_TYPE (captures[1]))
    6245                 :       10750 :  || (POINTER_TYPE_P (TREE_TYPE (captures[0]))
    6246                 :           0 :  && TREE_CODE (captures[1]) == INTEGER_CST
    6247                 :           0 :  && tree_int_cst_sign_bit (captures[1]) == 0)
    6248                 :             : )
    6249                 :             :                                     {
    6250                 :       10750 :                                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1176;
    6251                 :       10750 :                                       {
    6252                 :       10750 :                                         tree res_op0;
    6253                 :       10750 :                                         res_op0 = captures[1];
    6254                 :       10750 :                                         tree _r;
    6255                 :       10750 :                                         _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
    6256                 :       10750 :                                         if (TREE_SIDE_EFFECTS (captures[2]))
    6257                 :          11 :                                           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    6258                 :       10750 :                                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 889, __FILE__, __LINE__, true);
    6259                 :       10750 :                                         return _r;
    6260                 :             :                                       }
    6261                 :           0 : next_after_fail1176:;
    6262                 :             :                                     }
    6263                 :             :                                 }
    6264                 :             :                             }
    6265                 :             :                         }
    6266                 :             :                       }
    6267                 :             :                     break;
    6268                 :             :                   }
    6269                 :             :                 default:;
    6270                 :             :                 }
    6271                 :             :               break;
    6272                 :             :             }
    6273                 :     4734637 :           default:;
    6274                 :             :           }
    6275                 :     4734637 :         switch (TREE_CODE (_p1))
    6276                 :             :           {
    6277                 :     3936770 :           CASE_CONVERT:
    6278                 :     3936770 :             {
    6279                 :     3936770 :               tree _q40 = TREE_OPERAND (_p1, 0);
    6280                 :     3936770 :               switch (TREE_CODE (_q40))
    6281                 :             :                 {
    6282                 :      499184 :                 case PLUS_EXPR:
    6283                 :      499184 :                   {
    6284                 :      499184 :                     tree _q50 = TREE_OPERAND (_q40, 0);
    6285                 :      499184 :                     tree _q51 = TREE_OPERAND (_q40, 1);
    6286                 :      499184 :                     if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
    6287                 :             :                       {
    6288                 :        1946 :                         {
    6289                 :        1946 :                           tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q51, _q20 };
    6290                 :        1946 :                           tree res = generic_simplify_58 (loc, type, _p0, _p1, captures);
    6291                 :        1946 :                           if (res) return res;
    6292                 :             :                         }
    6293                 :             :                       }
    6294                 :      497310 :                     if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q20, 0))
    6295                 :             :                       {
    6296                 :          18 :                         {
    6297                 :          18 :                           tree captures[3] ATTRIBUTE_UNUSED = { _q51, _q50, _q20 };
    6298                 :          18 :                           tree res = generic_simplify_58 (loc, type, _p0, _p1, captures);
    6299                 :          18 :                           if (res) return res;
    6300                 :             :                         }
    6301                 :             :                       }
    6302                 :             :                     break;
    6303                 :             :                   }
    6304                 :             :                 default:;
    6305                 :             :                 }
    6306                 :             :               break;
    6307                 :             :             }
    6308                 :             :           default:;
    6309                 :             :           }
    6310                 :             :         break;
    6311                 :             :       }
    6312                 :      149036 :     case NEGATE_EXPR:
    6313                 :      149036 :       {
    6314                 :      149036 :         tree _q20 = TREE_OPERAND (_p0, 0);
    6315                 :      149036 :         if (integer_each_onep (_p1))
    6316                 :             :           {
    6317                 :          41 :             {
    6318                 :          41 :               tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
    6319                 :          41 :               tree res = generic_simplify_56 (loc, type, _p0, _p1, captures);
    6320                 :          41 :               if (res) return res;
    6321                 :             :             }
    6322                 :             :           }
    6323                 :             :         break;
    6324                 :             :       }
    6325                 :    22342141 :     default:;
    6326                 :             :     }
    6327                 :    22342141 : {
    6328                 :    22342141 :   tree _p0_pops[1];
    6329                 :    22342141 :   if (tree_nop_convert (_p0, _p0_pops))
    6330                 :             :     {
    6331                 :     4325731 :       tree _q20 = _p0_pops[0];
    6332                 :     4325731 :       switch (TREE_CODE (_q20))
    6333                 :             :         {
    6334                 :      318056 :         case PLUS_EXPR:
    6335                 :      318056 :           {
    6336                 :      318056 :             tree _q30 = TREE_OPERAND (_q20, 0);
    6337                 :      318056 :             tree _q31 = TREE_OPERAND (_q20, 1);
    6338                 :      318056 :             if (CONSTANT_CLASS_P (_q31))
    6339                 :             :               {
    6340                 :      311443 :                 if (CONSTANT_CLASS_P (_p1))
    6341                 :             :                   {
    6342                 :           0 :                     {
    6343                 :           0 :                       tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
    6344                 :           0 :                       tree res = generic_simplify_17 (loc, type, _p0, _p1, captures, PLUS_EXPR, MINUS_EXPR, MINUS_EXPR);
    6345                 :           0 :                       if (res) return res;
    6346                 :             :                     }
    6347                 :             :                   }
    6348                 :             :               }
    6349                 :             :             break;
    6350                 :             :           }
    6351                 :         873 :         case MINUS_EXPR:
    6352                 :         873 :           {
    6353                 :         873 :             tree _q30 = TREE_OPERAND (_q20, 0);
    6354                 :         873 :             tree _q31 = TREE_OPERAND (_q20, 1);
    6355                 :         873 :             if (CONSTANT_CLASS_P (_q31))
    6356                 :             :               {
    6357                 :           0 :                 if (CONSTANT_CLASS_P (_p1))
    6358                 :             :                   {
    6359                 :           0 :                     {
    6360                 :           0 :                       tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
    6361                 :           0 :                       tree res = generic_simplify_17 (loc, type, _p0, _p1, captures, MINUS_EXPR, PLUS_EXPR, MINUS_EXPR);
    6362                 :           0 :                       if (res) return res;
    6363                 :             :                     }
    6364                 :             :                   }
    6365                 :             :               }
    6366                 :         873 :             if (CONSTANT_CLASS_P (_q30))
    6367                 :             :               {
    6368                 :          18 :                 if (CONSTANT_CLASS_P (_p1))
    6369                 :             :                   {
    6370                 :           0 :                     {
    6371                 :           0 :                       tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
    6372                 :           0 :                       tree res = generic_simplify_18 (loc, type, _p0, _p1, captures, MINUS_EXPR);
    6373                 :           0 :                       if (res) return res;
    6374                 :             :                     }
    6375                 :             :                   }
    6376                 :             :               }
    6377                 :             :             break;
    6378                 :             :           }
    6379                 :             :         default:;
    6380                 :             :         }
    6381                 :             :     }
    6382                 :             : }
    6383                 :    22342141 : if (CONSTANT_CLASS_P (_p0))
    6384                 :             :   {
    6385                 :     5661090 :     switch (TREE_CODE (_p1))
    6386                 :             :       {
    6387                 :         823 :       case MINUS_EXPR:
    6388                 :         823 :         {
    6389                 :         823 :           tree _q30 = TREE_OPERAND (_p1, 0);
    6390                 :         823 :           tree _q31 = TREE_OPERAND (_p1, 1);
    6391                 :         823 :           if (CONSTANT_CLASS_P (_q30))
    6392                 :             :             {
    6393                 :         639 :               {
    6394                 :         639 :                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q31 };
    6395                 :         639 :                 tree res = generic_simplify_55 (loc, type, _p0, _p1, captures);
    6396                 :         639 :                 if (res) return res;
    6397                 :             :               }
    6398                 :             :             }
    6399                 :             :           break;
    6400                 :             :         }
    6401                 :     5660460 :       default:;
    6402                 :             :       }
    6403                 :     5660460 :   {
    6404                 :     5660460 :     tree _p1_pops[1];
    6405                 :     5660460 :     if (tree_nop_convert (_p1, _p1_pops))
    6406                 :             :       {
    6407                 :     1817310 :         tree _q30 = _p1_pops[0];
    6408                 :     1817310 :         switch (TREE_CODE (_q30))
    6409                 :             :           {
    6410                 :        7203 :           case MINUS_EXPR:
    6411                 :        7203 :             {
    6412                 :        7203 :               tree _q40 = TREE_OPERAND (_q30, 0);
    6413                 :        7203 :               tree _q41 = TREE_OPERAND (_q30, 1);
    6414                 :        7203 :               if (CONSTANT_CLASS_P (_q40))
    6415                 :             :                 {
    6416                 :          29 :                   {
    6417                 :          29 :                     tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q40, _q41 };
    6418                 :          29 :                     tree res = generic_simplify_55 (loc, type, _p0, _p1, captures);
    6419                 :          29 :                     if (res) return res;
    6420                 :             :                   }
    6421                 :             :                 }
    6422                 :             :               break;
    6423                 :             :             }
    6424                 :             :           default:;
    6425                 :             :           }
    6426                 :             :       }
    6427                 :             :   }
    6428                 :             :   }
    6429                 :    22341482 : if (integer_all_onesp (_p0))
    6430                 :             :   {
    6431                 :     1319054 :     {
    6432                 :     1319054 :       tree captures[1] ATTRIBUTE_UNUSED = { _p1 };
    6433                 :     1319054 :       if (!TYPE_SATURATING (type)
    6434                 :             : )
    6435                 :             :         {
    6436                 :     1319054 :           if ((!FLOAT_TYPE_P (type) || flag_associative_math)
    6437                 :     2638108 :  && !FIXED_POINT_TYPE_P (type)
    6438                 :             : )
    6439                 :             :             {
    6440                 :     1319054 :               if (TREE_CODE (type) != COMPLEX_TYPE
    6441                 :             : )
    6442                 :             :                 {
    6443                 :     1319052 :                   if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1177;
    6444                 :     1319052 :                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1177;
    6445                 :     1319052 :                   {
    6446                 :     1319052 :                     tree res_op0;
    6447                 :     1319052 :                     res_op0 = captures[0];
    6448                 :     1319052 :                     tree _r;
    6449                 :     1319052 :                     _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
    6450                 :     1319052 :                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 890, __FILE__, __LINE__, true);
    6451                 :     1319052 :                     return _r;
    6452                 :             :                   }
    6453                 :             : next_after_fail1177:;
    6454                 :             :                 }
    6455                 :             :             }
    6456                 :             :         }
    6457                 :             :     }
    6458                 :             :   }
    6459                 :    21022430 :   switch (TREE_CODE (_p1))
    6460                 :             :     {
    6461                 :     6813187 :     CASE_CONVERT:
    6462                 :     6813187 :       {
    6463                 :     6813187 :         tree _q30 = TREE_OPERAND (_p1, 0);
    6464                 :     6813187 :         switch (TREE_CODE (_q30))
    6465                 :             :           {
    6466                 :      685294 :           case PLUS_EXPR:
    6467                 :      685294 :             {
    6468                 :      685294 :               tree _q40 = TREE_OPERAND (_q30, 0);
    6469                 :      685294 :               tree _q41 = TREE_OPERAND (_q30, 1);
    6470                 :      685294 :               if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _p0, 0))
    6471                 :             :                 {
    6472                 :           0 :                   {
    6473                 :           0 :                     tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _p0 };
    6474                 :           0 :                     tree res = generic_simplify_58 (loc, type, _p0, _p1, captures);
    6475                 :           0 :                     if (res) return res;
    6476                 :             :                   }
    6477                 :             :                 }
    6478                 :      685294 :               if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _p0, 0))
    6479                 :             :                 {
    6480                 :        8051 :                   {
    6481                 :        8051 :                     tree captures[3] ATTRIBUTE_UNUSED = { _q41, _q40, _p0 };
    6482                 :        8051 :                     tree res = generic_simplify_58 (loc, type, _p0, _p1, captures);
    6483                 :        8051 :                     if (res) return res;
    6484                 :             :                   }
    6485                 :             :                 }
    6486                 :             :               break;
    6487                 :             :             }
    6488                 :             :           default:;
    6489                 :             :           }
    6490                 :             :         break;
    6491                 :             :       }
    6492                 :    21014576 :     default:;
    6493                 :             :     }
    6494                 :    21014576 :   switch (TREE_CODE (_p0))
    6495                 :             :     {
    6496                 :     4732745 :     CASE_CONVERT:
    6497                 :     4732745 :       {
    6498                 :     4732745 :         tree _q20 = TREE_OPERAND (_p0, 0);
    6499                 :     4732745 :         switch (TREE_CODE (_p1))
    6500                 :             :           {
    6501                 :     3934878 :           CASE_CONVERT:
    6502                 :     3934878 :             {
    6503                 :     3934878 :               tree _q40 = TREE_OPERAND (_p1, 0);
    6504                 :     3934878 :               switch (TREE_CODE (_q40))
    6505                 :             :                 {
    6506                 :      386896 :                 case POINTER_PLUS_EXPR:
    6507                 :      386896 :                   {
    6508                 :      386896 :                     tree _q50 = TREE_OPERAND (_q40, 0);
    6509                 :      386896 :                     tree _q51 = TREE_OPERAND (_q40, 1);
    6510                 :      386896 :                     if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
    6511                 :             :                       {
    6512                 :        1901 :                         {
    6513                 :        1901 :                           tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q51, _q20 };
    6514                 :        1901 :                           if (!TYPE_SATURATING (type)
    6515                 :             : )
    6516                 :             :                             {
    6517                 :        1901 :                               if ((!FLOAT_TYPE_P (type) || flag_associative_math)
    6518                 :        3802 :  && !FIXED_POINT_TYPE_P (type)
    6519                 :             : )
    6520                 :             :                                 {
    6521                 :        1901 :                                   if (INTEGRAL_TYPE_P (type)
    6522                 :        1901 :  && TYPE_OVERFLOW_UNDEFINED (type)
    6523                 :           0 :  && TREE_CODE (captures[1]) != INTEGER_CST
    6524                 :        1901 :  && element_precision (type) <= element_precision (TREE_TYPE (captures[1]))
    6525                 :             : )
    6526                 :             :                                     {
    6527                 :           0 :                                       {
    6528                 :           0 :  tree utype = unsigned_type_for (type);
    6529                 :           0 :                                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1178;
    6530                 :           0 :                                           {
    6531                 :           0 :                                             tree res_op0;
    6532                 :           0 :                                             {
    6533                 :           0 :                                               tree _o1[1], _r1;
    6534                 :           0 :                                               {
    6535                 :           0 :                                                 tree _o2[1], _r2;
    6536                 :           0 :                                                 _o2[0] = captures[1];
    6537                 :           0 :                                                 if (TREE_TYPE (_o2[0]) != utype)
    6538                 :             :                                                   {
    6539                 :           0 :                                                     _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
    6540                 :             :                                                   }
    6541                 :             :                                                 else
    6542                 :             :                                                   _r2 = _o2[0];
    6543                 :           0 :                                                 _o1[0] = _r2;
    6544                 :             :                                               }
    6545                 :           0 :                                               _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
    6546                 :           0 :                                               res_op0 = _r1;
    6547                 :             :                                             }
    6548                 :           0 :                                             tree _r;
    6549                 :           0 :                                             _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
    6550                 :           0 :                                             if (TREE_SIDE_EFFECTS (captures[2]))
    6551                 :           0 :                                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    6552                 :           0 :                                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 891, __FILE__, __LINE__, true);
    6553                 :           0 :                                             return _r;
    6554                 :             :                                           }
    6555                 :           0 : next_after_fail1178:;
    6556                 :             :                                       }
    6557                 :             :                                     }
    6558                 :             :                                   else
    6559                 :             :                                     {
    6560                 :        1901 :                                       if (element_precision (type) <= element_precision (TREE_TYPE (captures[1]))
    6561                 :        1901 :  || (POINTER_TYPE_P (TREE_TYPE (captures[0]))
    6562                 :           0 :  && TREE_CODE (captures[1]) == INTEGER_CST
    6563                 :           0 :  && tree_int_cst_sign_bit (captures[1]) == 0)
    6564                 :             : )
    6565                 :             :                                         {
    6566                 :        1901 :                                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1179;
    6567                 :        1901 :                                           {
    6568                 :        1901 :                                             tree res_op0;
    6569                 :        1901 :                                             {
    6570                 :        1901 :                                               tree _o1[1], _r1;
    6571                 :        1901 :                                               _o1[0] = captures[1];
    6572                 :        1901 :                                               if (TREE_TYPE (_o1[0]) != type)
    6573                 :             :                                                 {
    6574                 :        1897 :                                                   _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
    6575                 :             :                                                 }
    6576                 :             :                                               else
    6577                 :             :                                                 _r1 = _o1[0];
    6578                 :        1901 :                                               res_op0 = _r1;
    6579                 :             :                                             }
    6580                 :        1901 :                                             tree _r;
    6581                 :        1901 :                                             _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
    6582                 :        1901 :                                             if (TREE_SIDE_EFFECTS (captures[2]))
    6583                 :           0 :                                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    6584                 :        1901 :                                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 892, __FILE__, __LINE__, true);
    6585                 :        1901 :                                             return _r;
    6586                 :             :                                           }
    6587                 :           0 : next_after_fail1179:;
    6588                 :             :                                         }
    6589                 :             :                                     }
    6590                 :             :                                 }
    6591                 :             :                             }
    6592                 :             :                         }
    6593                 :             :                       }
    6594                 :             :                     break;
    6595                 :             :                   }
    6596                 :             :                 default:;
    6597                 :             :                 }
    6598                 :             :               break;
    6599                 :             :             }
    6600                 :     4730844 :           default:;
    6601                 :             :           }
    6602                 :     4730844 :         switch (TREE_CODE (_q20))
    6603                 :             :           {
    6604                 :      375770 :           case PLUS_EXPR:
    6605                 :      375770 :             {
    6606                 :      375770 :               tree _q30 = TREE_OPERAND (_q20, 0);
    6607                 :      375770 :               tree _q31 = TREE_OPERAND (_q20, 1);
    6608                 :      375770 :               switch (TREE_CODE (_p1))
    6609                 :             :                 {
    6610                 :      359633 :                 CASE_CONVERT:
    6611                 :      359633 :                   {
    6612                 :      359633 :                     tree _q60 = TREE_OPERAND (_p1, 0);
    6613                 :      359633 :                     switch (TREE_CODE (_q60))
    6614                 :             :                       {
    6615                 :      193883 :                       case PLUS_EXPR:
    6616                 :      193883 :                         {
    6617                 :      193883 :                           tree _q70 = TREE_OPERAND (_q60, 0);
    6618                 :      193883 :                           tree _q71 = TREE_OPERAND (_q60, 1);
    6619                 :      193883 :                           if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || operand_equal_p (_q70, _q30, 0))
    6620                 :             :                             {
    6621                 :        5418 :                               {
    6622                 :        5418 :                                 tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q31, _q71, _q30 };
    6623                 :        5418 :                                 tree res = generic_simplify_59 (loc, type, _p0, _p1, captures);
    6624                 :        5418 :                                 if (res) return res;
    6625                 :             :                               }
    6626                 :             :                             }
    6627                 :      188465 :                           if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || operand_equal_p (_q71, _q30, 0))
    6628                 :             :                             {
    6629                 :         102 :                               {
    6630                 :         102 :                                 tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q31, _q70, _q30 };
    6631                 :         102 :                                 tree res = generic_simplify_59 (loc, type, _p0, _p1, captures);
    6632                 :         102 :                                 if (res) return res;
    6633                 :             :                               }
    6634                 :             :                             }
    6635                 :      188363 :                           if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || operand_equal_p (_q70, _q31, 0))
    6636                 :             :                             {
    6637                 :         118 :                               {
    6638                 :         118 :                                 tree captures[4] ATTRIBUTE_UNUSED = { _q31, _q30, _q71, _q31 };
    6639                 :         118 :                                 tree res = generic_simplify_59 (loc, type, _p0, _p1, captures);
    6640                 :         118 :                                 if (res) return res;
    6641                 :             :                               }
    6642                 :             :                             }
    6643                 :      188245 :                           if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || operand_equal_p (_q71, _q31, 0))
    6644                 :             :                             {
    6645                 :      139227 :                               {
    6646                 :      139227 :                                 tree captures[4] ATTRIBUTE_UNUSED = { _q31, _q30, _q70, _q31 };
    6647                 :      139227 :                                 tree res = generic_simplify_59 (loc, type, _p0, _p1, captures);
    6648                 :      139227 :                                 if (res) return res;
    6649                 :             :                               }
    6650                 :             :                             }
    6651                 :             :                           break;
    6652                 :             :                         }
    6653                 :             :                       default:;
    6654                 :             :                       }
    6655                 :             :                     break;
    6656                 :             :                   }
    6657                 :             :                 default:;
    6658                 :             :                 }
    6659                 :             :               break;
    6660                 :             :             }
    6661                 :       79867 :           case POINTER_PLUS_EXPR:
    6662                 :       79867 :             {
    6663                 :       79867 :               tree _q30 = TREE_OPERAND (_q20, 0);
    6664                 :       79867 :               tree _q31 = TREE_OPERAND (_q20, 1);
    6665                 :       79867 :               switch (TREE_CODE (_p1))
    6666                 :             :                 {
    6667                 :       78737 :                 CASE_CONVERT:
    6668                 :       78737 :                   {
    6669                 :       78737 :                     tree _q60 = TREE_OPERAND (_p1, 0);
    6670                 :       78737 :                     switch (TREE_CODE (_q60))
    6671                 :             :                       {
    6672                 :       42996 :                       case POINTER_PLUS_EXPR:
    6673                 :       42996 :                         {
    6674                 :       42996 :                           tree _q70 = TREE_OPERAND (_q60, 0);
    6675                 :       42996 :                           tree _q71 = TREE_OPERAND (_q60, 1);
    6676                 :       42996 :                           if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || operand_equal_p (_q70, _q30, 0))
    6677                 :             :                             {
    6678                 :        8998 :                               {
    6679                 :        8998 :                                 tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q31, _q71, _q30 };
    6680                 :        8998 :                                 if (!TYPE_SATURATING (type)
    6681                 :             : )
    6682                 :             :                                   {
    6683                 :        8998 :                                     if ((!FLOAT_TYPE_P (type) || flag_associative_math)
    6684                 :       17996 :  && !FIXED_POINT_TYPE_P (type)
    6685                 :             : )
    6686                 :             :                                       {
    6687                 :        8998 :                                         if (INTEGRAL_TYPE_P (type)
    6688                 :        8998 :  && TYPE_OVERFLOW_UNDEFINED (type)
    6689                 :        8998 :  && element_precision (type) <= element_precision (TREE_TYPE (captures[1]))
    6690                 :             : )
    6691                 :             :                                           {
    6692                 :           0 :                                             {
    6693                 :           0 :  tree utype = unsigned_type_for (type);
    6694                 :           0 :                                                 if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1180;
    6695                 :           0 :                                                 {
    6696                 :           0 :                                                   tree res_op0;
    6697                 :           0 :                                                   {
    6698                 :           0 :                                                     tree _o1[2], _r1;
    6699                 :           0 :                                                     {
    6700                 :           0 :                                                       tree _o2[1], _r2;
    6701                 :           0 :                                                       _o2[0] = captures[1];
    6702                 :           0 :                                                       if (TREE_TYPE (_o2[0]) != utype)
    6703                 :             :                                                         {
    6704                 :           0 :                                                           _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
    6705                 :             :                                                         }
    6706                 :             :                                                       else
    6707                 :             :                                                         _r2 = _o2[0];
    6708                 :           0 :                                                       _o1[0] = _r2;
    6709                 :             :                                                     }
    6710                 :           0 :                                                     {
    6711                 :           0 :                                                       tree _o2[1], _r2;
    6712                 :           0 :                                                       _o2[0] = captures[2];
    6713                 :           0 :                                                       if (TREE_TYPE (_o2[0]) != utype)
    6714                 :             :                                                         {
    6715                 :           0 :                                                           _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
    6716                 :             :                                                         }
    6717                 :             :                                                       else
    6718                 :             :                                                         _r2 = _o2[0];
    6719                 :           0 :                                                       _o1[1] = _r2;
    6720                 :             :                                                     }
    6721                 :           0 :                                                     _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    6722                 :           0 :                                                     res_op0 = _r1;
    6723                 :             :                                                   }
    6724                 :           0 :                                                   tree _r;
    6725                 :           0 :                                                   _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
    6726                 :           0 :                                                   if (TREE_SIDE_EFFECTS (captures[3]))
    6727                 :           0 :                                                     _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
    6728                 :           0 :                                                   if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 893, __FILE__, __LINE__, true);
    6729                 :           0 :                                                   return _r;
    6730                 :             :                                                 }
    6731                 :           0 : next_after_fail1180:;
    6732                 :             :                                             }
    6733                 :             :                                           }
    6734                 :             :                                         else
    6735                 :             :                                           {
    6736                 :        8998 :                                             if (element_precision (type) <= element_precision (TREE_TYPE (captures[1]))
    6737                 :        8998 :  || (POINTER_TYPE_P (TREE_TYPE (captures[0]))
    6738                 :           0 :  && TREE_CODE (captures[1]) == INTEGER_CST
    6739                 :           0 :  && tree_int_cst_sign_bit (captures[1]) == 0
    6740                 :           0 :  && TREE_CODE (captures[2]) == INTEGER_CST
    6741                 :           0 :  && tree_int_cst_sign_bit (captures[2]) == 0)
    6742                 :             : )
    6743                 :             :                                               {
    6744                 :        8998 :                                                 if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1181;
    6745                 :        8998 :                                                 {
    6746                 :        8998 :                                                   tree res_op0;
    6747                 :        8998 :                                                   {
    6748                 :        8998 :                                                     tree _o1[1], _r1;
    6749                 :        8998 :                                                     _o1[0] = captures[1];
    6750                 :        8998 :                                                     if (TREE_TYPE (_o1[0]) != type)
    6751                 :             :                                                       {
    6752                 :        8928 :                                                         _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
    6753                 :             :                                                       }
    6754                 :             :                                                     else
    6755                 :             :                                                       _r1 = _o1[0];
    6756                 :        8998 :                                                     res_op0 = _r1;
    6757                 :             :                                                   }
    6758                 :        8998 :                                                   tree res_op1;
    6759                 :        8998 :                                                   {
    6760                 :        8998 :                                                     tree _o1[1], _r1;
    6761                 :        8998 :                                                     _o1[0] = captures[2];
    6762                 :        8998 :                                                     if (TREE_TYPE (_o1[0]) != type)
    6763                 :             :                                                       {
    6764                 :        8945 :                                                         _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
    6765                 :             :                                                       }
    6766                 :             :                                                     else
    6767                 :             :                                                       _r1 = _o1[0];
    6768                 :        8998 :                                                     res_op1 = _r1;
    6769                 :             :                                                   }
    6770                 :        8998 :                                                   tree _r;
    6771                 :        8998 :                                                   _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
    6772                 :        8998 :                                                   if (TREE_SIDE_EFFECTS (captures[3]))
    6773                 :           0 :                                                     _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
    6774                 :        8998 :                                                   if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 894, __FILE__, __LINE__, true);
    6775                 :        8998 :                                                   return _r;
    6776                 :             :                                                 }
    6777                 :           0 : next_after_fail1181:;
    6778                 :             :                                               }
    6779                 :             :                                           }
    6780                 :             :                                       }
    6781                 :             :                                   }
    6782                 :             :                               }
    6783                 :             :                             }
    6784                 :             :                           break;
    6785                 :             :                         }
    6786                 :             :                       default:;
    6787                 :             :                       }
    6788                 :             :                     break;
    6789                 :             :                   }
    6790                 :             :                 default:;
    6791                 :             :                 }
    6792                 :             :               break;
    6793                 :             :             }
    6794                 :             :           default:;
    6795                 :             :           }
    6796                 :             :         break;
    6797                 :             :       }
    6798                 :     1529411 :     case MULT_EXPR:
    6799                 :     1529411 :       {
    6800                 :     1529411 :         tree _q20 = TREE_OPERAND (_p0, 0);
    6801                 :     1529411 :         tree _q21 = TREE_OPERAND (_p0, 1);
    6802                 :     1529411 :         switch (TREE_CODE (_p1))
    6803                 :             :           {
    6804                 :      724026 :           case MULT_EXPR:
    6805                 :      724026 :             {
    6806                 :      724026 :               tree _q50 = TREE_OPERAND (_p1, 0);
    6807                 :      724026 :               tree _q51 = TREE_OPERAND (_p1, 1);
    6808                 :      724026 :               if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
    6809                 :             :                 {
    6810                 :        3964 :                   {
    6811                 :        3964 :                     tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
    6812                 :        3964 :                     tree res = generic_simplify_25 (loc, type, _p0, _p1, captures, MINUS_EXPR);
    6813                 :        3964 :                     if (res) return res;
    6814                 :             :                   }
    6815                 :             :                 }
    6816                 :      722819 :               if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
    6817                 :             :                 {
    6818                 :       14001 :                   {
    6819                 :       14001 :                     tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
    6820                 :       14001 :                     tree res = generic_simplify_25 (loc, type, _p0, _p1, captures, MINUS_EXPR);
    6821                 :       14001 :                     if (res) return res;
    6822                 :             :                   }
    6823                 :             :                 }
    6824                 :      708818 :               if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
    6825                 :             :                 {
    6826                 :       34264 :                   {
    6827                 :       34264 :                     tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
    6828                 :       34264 :                     tree res = generic_simplify_25 (loc, type, _p0, _p1, captures, MINUS_EXPR);
    6829                 :       34264 :                     if (res) return res;
    6830                 :             :                   }
    6831                 :             :                 }
    6832                 :      674634 :               if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
    6833                 :             :                 {
    6834                 :      207599 :                   {
    6835                 :      207599 :                     tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
    6836                 :      207599 :                     tree res = generic_simplify_25 (loc, type, _p0, _p1, captures, MINUS_EXPR);
    6837                 :      207599 :                     if (res) return res;
    6838                 :             :                   }
    6839                 :             :                 }
    6840                 :             :               break;
    6841                 :             :             }
    6842                 :             :           default:;
    6843                 :             :           }
    6844                 :             :         break;
    6845                 :             :       }
    6846                 :    20624003 :     default:;
    6847                 :             :     }
    6848                 :    20624003 :   switch (TREE_CODE (_p1))
    6849                 :             :     {
    6850                 :     1857011 :     case MULT_EXPR:
    6851                 :     1857011 :       {
    6852                 :     1857011 :         tree _q30 = TREE_OPERAND (_p1, 0);
    6853                 :     1857011 :         tree _q31 = TREE_OPERAND (_p1, 1);
    6854                 :     1857011 :         if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
    6855                 :             :           {
    6856                 :        3926 :             {
    6857                 :        3926 :               tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q31 };
    6858                 :        3926 :               tree res = generic_simplify_26 (loc, type, _p0, _p1, captures, MINUS_EXPR);
    6859                 :        3926 :               if (res) return res;
    6860                 :             :             }
    6861                 :             :           }
    6862                 :     1853159 :         if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
    6863                 :             :           {
    6864                 :        1338 :             {
    6865                 :        1338 :               tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q30 };
    6866                 :        1338 :               tree res = generic_simplify_26 (loc, type, _p0, _p1, captures, MINUS_EXPR);
    6867                 :        1338 :               if (res) return res;
    6868                 :             :             }
    6869                 :             :           }
    6870                 :             :         break;
    6871                 :             :       }
    6872                 :    20618912 :     default:;
    6873                 :             :     }
    6874                 :    20618912 :   switch (TREE_CODE (_p0))
    6875                 :             :     {
    6876                 :     1277937 :     case MULT_EXPR:
    6877                 :     1277937 :       {
    6878                 :     1277937 :         tree _q20 = TREE_OPERAND (_p0, 0);
    6879                 :     1277937 :         tree _q21 = TREE_OPERAND (_p0, 1);
    6880                 :     1277937 :         if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
    6881                 :             :           {
    6882                 :       39904 :             {
    6883                 :       39904 :               tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
    6884                 :       39904 :               tree res = generic_simplify_27 (loc, type, _p0, _p1, captures, MINUS_EXPR);
    6885                 :       39904 :               if (res) return res;
    6886                 :             :             }
    6887                 :             :           }
    6888                 :     1238119 :         if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
    6889                 :             :           {
    6890                 :         644 :             {
    6891                 :         644 :               tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
    6892                 :         644 :               tree res = generic_simplify_27 (loc, type, _p0, _p1, captures, MINUS_EXPR);
    6893                 :         644 :               if (res) return res;
    6894                 :             :             }
    6895                 :             :           }
    6896                 :             :         break;
    6897                 :             :       }
    6898                 :    20578995 :     default:;
    6899                 :             :     }
    6900                 :    20578995 :   switch (TREE_CODE (_p1))
    6901                 :             :     {
    6902                 :     1851920 :     case MULT_EXPR:
    6903                 :     1851920 :       {
    6904                 :     1851920 :         tree _q30 = TREE_OPERAND (_p1, 0);
    6905                 :     1851920 :         tree _q31 = TREE_OPERAND (_p1, 1);
    6906                 :     1851920 :         switch (TREE_CODE (_q30))
    6907                 :             :           {
    6908                 :       82139 :           case MINUS_EXPR:
    6909                 :       82139 :             {
    6910                 :       82139 :               tree _q40 = TREE_OPERAND (_q30, 0);
    6911                 :       82139 :               tree _q41 = TREE_OPERAND (_q30, 1);
    6912                 :       82139 :               if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
    6913                 :             :                 {
    6914                 :          19 :                   if (tree_zero_one_valued_p (_q31))
    6915                 :             :                     {
    6916                 :           0 :                       {
    6917                 :           0 :                         tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q41, _q31 };
    6918                 :           0 :                         tree res = generic_simplify_60 (loc, type, _p0, _p1, captures);
    6919                 :           0 :                         if (res) return res;
    6920                 :             :                       }
    6921                 :             :                     }
    6922                 :             :                 }
    6923                 :             :               break;
    6924                 :             :             }
    6925                 :     1851920 :           default:;
    6926                 :             :           }
    6927                 :     1851920 :       if (tree_zero_one_valued_p (_q30))
    6928                 :             :         {
    6929                 :        1156 :           switch (TREE_CODE (_q31))
    6930                 :             :             {
    6931                 :           9 :             case MINUS_EXPR:
    6932                 :           9 :               {
    6933                 :           9 :                 tree _q50 = TREE_OPERAND (_q31, 0);
    6934                 :           9 :                 tree _q51 = TREE_OPERAND (_q31, 1);
    6935                 :           9 :                 if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
    6936                 :             :                   {
    6937                 :           9 :                     {
    6938                 :           9 :                       tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q51, _q30 };
    6939                 :           9 :                       tree res = generic_simplify_60 (loc, type, _p0, _p1, captures);
    6940                 :           9 :                       if (res) return res;
    6941                 :             :                     }
    6942                 :             :                   }
    6943                 :             :                 break;
    6944                 :             :               }
    6945                 :             :             default:;
    6946                 :             :             }
    6947                 :             :         }
    6948                 :             :         break;
    6949                 :             :       }
    6950                 :    20578993 :     default:;
    6951                 :             :     }
    6952                 :    20578993 :   switch (TREE_CODE (_p0))
    6953                 :             :     {
    6954                 :           0 :     case VEC_COND_EXPR:
    6955                 :           0 :       {
    6956                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
    6957                 :           0 :         tree _q21 = TREE_OPERAND (_p0, 1);
    6958                 :           0 :         tree _q22 = TREE_OPERAND (_p0, 2);
    6959                 :           0 :         switch (TREE_CODE (_p1))
    6960                 :             :           {
    6961                 :           0 :           case VEC_COND_EXPR:
    6962                 :           0 :             {
    6963                 :           0 :               tree _q60 = TREE_OPERAND (_p1, 0);
    6964                 :           0 :               tree _q61 = TREE_OPERAND (_p1, 1);
    6965                 :           0 :               tree _q62 = TREE_OPERAND (_p1, 2);
    6966                 :           0 :               if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
    6967                 :             :                 {
    6968                 :           0 :                   {
    6969                 :           0 :                     tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
    6970                 :           0 :                     if (VECTOR_TYPE_P (type)
    6971                 :           0 :  && (TREE_CODE_CLASS (MINUS_EXPR) != tcc_comparison
    6972                 :             :  || types_match (type, TREE_TYPE (captures[2]))
    6973                 :             :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
    6974                 :             :  || (optimize_vectors_before_lowering_p ()
    6975                 :             :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
    6976                 :             : )
    6977                 :             :                       {
    6978                 :           0 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1182;
    6979                 :           0 :                         {
    6980                 :           0 :                           tree res_op0;
    6981                 :           0 :                           res_op0 = captures[1];
    6982                 :           0 :                           tree res_op1;
    6983                 :           0 :                           {
    6984                 :           0 :                             tree _o1[2], _r1;
    6985                 :           0 :                             _o1[0] = captures[2];
    6986                 :           0 :                             _o1[1] = captures[5];
    6987                 :           0 :                             _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    6988                 :           0 :                             if (EXPR_P (_r1))
    6989                 :           0 :                               goto next_after_fail1182;
    6990                 :           0 :                             res_op1 = _r1;
    6991                 :             :                           }
    6992                 :           0 :                           tree res_op2;
    6993                 :           0 :                           {
    6994                 :           0 :                             tree _o1[2], _r1;
    6995                 :           0 :                             _o1[0] = captures[3];
    6996                 :           0 :                             _o1[1] = captures[6];
    6997                 :           0 :                             _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    6998                 :           0 :                             if (EXPR_P (_r1))
    6999                 :           0 :                               goto next_after_fail1182;
    7000                 :           0 :                             res_op2 = _r1;
    7001                 :             :                           }
    7002                 :           0 :                           tree _r;
    7003                 :           0 :                           _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    7004                 :           0 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 857, __FILE__, __LINE__, true);
    7005                 :           0 :                           return _r;
    7006                 :             :                         }
    7007                 :           0 : next_after_fail1182:;
    7008                 :             :                       }
    7009                 :             :                   }
    7010                 :             :                 }
    7011                 :             :               break;
    7012                 :             :             }
    7013                 :           0 :           default:;
    7014                 :             :           }
    7015                 :           0 :         {
    7016                 :           0 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
    7017                 :           0 :           if (VECTOR_TYPE_P (type)
    7018                 :           0 :  && (TREE_CODE_CLASS (MINUS_EXPR) != tcc_comparison
    7019                 :             :  || types_match (type, TREE_TYPE (captures[2]))
    7020                 :             :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
    7021                 :             :  || (optimize_vectors_before_lowering_p ()
    7022                 :             :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
    7023                 :             : )
    7024                 :             :             {
    7025                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1183;
    7026                 :           0 :               {
    7027                 :           0 :                 if (! tree_invariant_p (captures[4])) goto next_after_fail1183;
    7028                 :           0 :                 tree res_op0;
    7029                 :           0 :                 res_op0 = captures[1];
    7030                 :           0 :                 tree res_op1;
    7031                 :           0 :                 {
    7032                 :           0 :                   tree _o1[2], _r1;
    7033                 :           0 :                   _o1[0] = captures[2];
    7034                 :           0 :                   _o1[1] = unshare_expr (captures[4]);
    7035                 :           0 :                   _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    7036                 :           0 :                   if (EXPR_P (_r1))
    7037                 :           0 :                     goto next_after_fail1183;
    7038                 :           0 :                   res_op1 = _r1;
    7039                 :             :                 }
    7040                 :           0 :                 tree res_op2;
    7041                 :           0 :                 {
    7042                 :           0 :                   tree _o1[2], _r1;
    7043                 :           0 :                   _o1[0] = captures[3];
    7044                 :           0 :                   _o1[1] = captures[4];
    7045                 :           0 :                   _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    7046                 :           0 :                   if (EXPR_P (_r1))
    7047                 :           0 :                     goto next_after_fail1183;
    7048                 :           0 :                   res_op2 = _r1;
    7049                 :             :                 }
    7050                 :           0 :                 tree _r;
    7051                 :           0 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    7052                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 858, __FILE__, __LINE__, true);
    7053                 :           0 :                 return _r;
    7054                 :             :               }
    7055                 :           0 : next_after_fail1183:;
    7056                 :             :             }
    7057                 :             :         }
    7058                 :           0 :         break;
    7059                 :             :       }
    7060                 :    20578993 :     default:;
    7061                 :             :     }
    7062                 :    20578993 : if (integer_zerop (_p0))
    7063                 :             :   {
    7064                 :      292677 :     {
    7065                 :      292677 :       tree captures[1] ATTRIBUTE_UNUSED = { _p1 };
    7066                 :      292677 :       if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1184;
    7067                 :      292677 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1184;
    7068                 :      292677 :       {
    7069                 :      292677 :         tree res_op0;
    7070                 :      292677 :         res_op0 = captures[0];
    7071                 :      292677 :         tree _r;
    7072                 :      292677 :         _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
    7073                 :      292677 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 895, __FILE__, __LINE__, true);
    7074                 :      292677 :         return _r;
    7075                 :             :       }
    7076                 :             : next_after_fail1184:;
    7077                 :             :     }
    7078                 :             :   }
    7079                 :    20286316 : if (real_zerop (_p0))
    7080                 :             :   {
    7081                 :         137 :     {
    7082                 :         137 :       tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    7083                 :         137 :       if (fold_real_zero_addition_p (type, captures[1], captures[0], 0)
    7084                 :             : )
    7085                 :             :         {
    7086                 :          56 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1185;
    7087                 :          56 :           {
    7088                 :          56 :             tree res_op0;
    7089                 :          56 :             res_op0 = captures[1];
    7090                 :          56 :             tree _r;
    7091                 :          56 :             _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
    7092                 :          56 :             if (TREE_SIDE_EFFECTS (captures[0]))
    7093                 :           0 :               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    7094                 :          56 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 896, __FILE__, __LINE__, true);
    7095                 :          56 :             return _r;
    7096                 :             :           }
    7097                 :           0 : next_after_fail1185:;
    7098                 :             :         }
    7099                 :             :     }
    7100                 :             :   }
    7101                 :    20286260 :   switch (TREE_CODE (_p1))
    7102                 :             :     {
    7103                 :           4 :     case VEC_COND_EXPR:
    7104                 :           4 :       {
    7105                 :           4 :         tree _q30 = TREE_OPERAND (_p1, 0);
    7106                 :           4 :         tree _q31 = TREE_OPERAND (_p1, 1);
    7107                 :           4 :         tree _q32 = TREE_OPERAND (_p1, 2);
    7108                 :           4 :         {
    7109                 :           4 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
    7110                 :           4 :           if (VECTOR_TYPE_P (type)
    7111                 :           4 :  && (TREE_CODE_CLASS (MINUS_EXPR) != tcc_comparison
    7112                 :             :  || types_match (type, TREE_TYPE (captures[3]))
    7113                 :             :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
    7114                 :             :  || (optimize_vectors_before_lowering_p ()
    7115                 :             :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
    7116                 :             : )
    7117                 :             :             {
    7118                 :           4 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1186;
    7119                 :           4 :               {
    7120                 :           4 :                 if (! tree_invariant_p (captures[0])) goto next_after_fail1186;
    7121                 :           0 :                 tree res_op0;
    7122                 :           0 :                 res_op0 = captures[2];
    7123                 :           0 :                 tree res_op1;
    7124                 :           0 :                 {
    7125                 :           0 :                   tree _o1[2], _r1;
    7126                 :           0 :                   _o1[0] = unshare_expr (captures[0]);
    7127                 :           0 :                   _o1[1] = captures[3];
    7128                 :           0 :                   _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    7129                 :           0 :                   if (EXPR_P (_r1))
    7130                 :           0 :                     goto next_after_fail1186;
    7131                 :           0 :                   res_op1 = _r1;
    7132                 :             :                 }
    7133                 :           0 :                 tree res_op2;
    7134                 :           0 :                 {
    7135                 :           0 :                   tree _o1[2], _r1;
    7136                 :           0 :                   _o1[0] = captures[0];
    7137                 :           0 :                   _o1[1] = captures[4];
    7138                 :           0 :                   _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    7139                 :           0 :                   if (EXPR_P (_r1))
    7140                 :           0 :                     goto next_after_fail1186;
    7141                 :           0 :                   res_op2 = _r1;
    7142                 :             :                 }
    7143                 :           0 :                 tree _r;
    7144                 :           0 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    7145                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 859, __FILE__, __LINE__, true);
    7146                 :           0 :                 return _r;
    7147                 :             :               }
    7148                 :           4 : next_after_fail1186:;
    7149                 :             :             }
    7150                 :             :         }
    7151                 :           4 :         if (integer_each_onep (_q31))
    7152                 :             :           {
    7153                 :           0 :             if (integer_zerop (_q32))
    7154                 :             :               {
    7155                 :           0 :                 {
    7156                 :           0 :                   tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
    7157                 :           0 :                   tree res = generic_simplify_61 (loc, type, _p0, _p1, captures);
    7158                 :           0 :                   if (res) return res;
    7159                 :             :                 }
    7160                 :             :               }
    7161                 :             :           }
    7162                 :             :         break;
    7163                 :             :       }
    7164                 :      111498 :     case VIEW_CONVERT_EXPR:
    7165                 :      111498 :       {
    7166                 :      111498 :         tree _q30 = TREE_OPERAND (_p1, 0);
    7167                 :      111498 :         switch (TREE_CODE (_q30))
    7168                 :             :           {
    7169                 :           0 :           case VEC_COND_EXPR:
    7170                 :           0 :             {
    7171                 :           0 :               tree _q40 = TREE_OPERAND (_q30, 0);
    7172                 :           0 :               tree _q41 = TREE_OPERAND (_q30, 1);
    7173                 :           0 :               tree _q42 = TREE_OPERAND (_q30, 2);
    7174                 :           0 :               if (integer_each_onep (_q41))
    7175                 :             :                 {
    7176                 :           0 :                   if (integer_zerop (_q42))
    7177                 :             :                     {
    7178                 :           0 :                       {
    7179                 :           0 :                         tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q30, _q40, _q41, _q42 };
    7180                 :           0 :                         tree res = generic_simplify_61 (loc, type, _p0, _p1, captures);
    7181                 :           0 :                         if (res) return res;
    7182                 :             :                       }
    7183                 :             :                     }
    7184                 :             :                 }
    7185                 :             :               break;
    7186                 :             :             }
    7187                 :             :           default:;
    7188                 :             :           }
    7189                 :             :         break;
    7190                 :             :       }
    7191                 :    20286260 :     default:;
    7192                 :             :     }
    7193                 :    20286260 :   switch (TREE_CODE (_p0))
    7194                 :             :     {
    7195                 :      121961 :     case RDIV_EXPR:
    7196                 :      121961 :       {
    7197                 :      121961 :         tree _q20 = TREE_OPERAND (_p0, 0);
    7198                 :      121961 :         tree _q21 = TREE_OPERAND (_p0, 1);
    7199                 :      121961 :         switch (TREE_CODE (_p1))
    7200                 :             :           {
    7201                 :       20407 :           case RDIV_EXPR:
    7202                 :       20407 :             {
    7203                 :       20407 :               tree _q50 = TREE_OPERAND (_p1, 0);
    7204                 :       20407 :               tree _q51 = TREE_OPERAND (_p1, 1);
    7205                 :       20407 :               if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
    7206                 :             :                 {
    7207                 :       20387 :                   {
    7208                 :       20387 :                     tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
    7209                 :       20387 :                     tree res = generic_simplify_33 (loc, type, _p0, _p1, captures, MINUS_EXPR);
    7210                 :       20387 :                     if (res) return res;
    7211                 :             :                   }
    7212                 :             :                 }
    7213                 :             :               break;
    7214                 :             :             }
    7215                 :             :           default:;
    7216                 :             :           }
    7217                 :             :         break;
    7218                 :             :       }
    7219                 :     1299866 :     case PLUS_EXPR:
    7220                 :     1299866 :       {
    7221                 :     1299866 :         tree _q20 = TREE_OPERAND (_p0, 0);
    7222                 :     1299866 :         tree _q21 = TREE_OPERAND (_p0, 1);
    7223                 :     1299866 :         switch (TREE_CODE (_q20))
    7224                 :             :           {
    7225                 :       47141 :           case CALL_EXPR:
    7226                 :       47141 :             switch (get_call_combined_fn (_q20))
    7227                 :             :               {
    7228                 :           4 :               case CFN_BUILT_IN_POPCOUNT:
    7229                 :           4 :                 if (call_expr_nargs (_q20) == 1)
    7230                 :             :     {
    7231                 :           4 :                     tree _q30 = CALL_EXPR_ARG (_q20, 0);
    7232                 :           4 :                     switch (TREE_CODE (_q21))
    7233                 :             :                       {
    7234                 :           4 :                       case CALL_EXPR:
    7235                 :           4 :                         switch (get_call_combined_fn (_q21))
    7236                 :             :                           {
    7237                 :           4 :                           case CFN_BUILT_IN_POPCOUNT:
    7238                 :           4 :                             if (call_expr_nargs (_q21) == 1)
    7239                 :             :     {
    7240                 :           4 :                                 tree _q50 = CALL_EXPR_ARG (_q21, 0);
    7241                 :           4 :                                 switch (TREE_CODE (_p1))
    7242                 :             :                                   {
    7243                 :           4 :                                   case CALL_EXPR:
    7244                 :           4 :                                     switch (get_call_combined_fn (_p1))
    7245                 :             :                                       {
    7246                 :           4 :                                       case CFN_BUILT_IN_POPCOUNT:
    7247                 :           4 :                                         if (call_expr_nargs (_p1) == 1)
    7248                 :             :     {
    7249                 :           4 :                                             tree _q70 = CALL_EXPR_ARG (_p1, 0);
    7250                 :           4 :                                             switch (TREE_CODE (_q70))
    7251                 :             :                                               {
    7252                 :           2 :                                               case BIT_AND_EXPR:
    7253                 :           2 :                                                 {
    7254                 :           2 :                                                   tree _q80 = TREE_OPERAND (_q70, 0);
    7255                 :           2 :                                                   tree _q81 = TREE_OPERAND (_q70, 1);
    7256                 :           2 :                                                   if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
    7257                 :             :                                                     {
    7258                 :           1 :                                                       if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
    7259                 :             :                                                         {
    7260                 :           1 :                                                           {
    7261                 :           1 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    7262                 :           1 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNT);
    7263                 :           1 :                                                             if (res) return res;
    7264                 :             :                                                           }
    7265                 :             :                                                         }
    7266                 :             :                                                     }
    7267                 :           1 :                                                   if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
    7268                 :             :                                                     {
    7269                 :           1 :                                                       if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
    7270                 :             :                                                         {
    7271                 :           1 :                                                           {
    7272                 :           1 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    7273                 :           1 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNT);
    7274                 :           1 :                                                             if (res) return res;
    7275                 :             :                                                           }
    7276                 :             :                                                         }
    7277                 :             :                                                     }
    7278                 :             :                                                   break;
    7279                 :             :                                                 }
    7280                 :           2 :                                               case BIT_IOR_EXPR:
    7281                 :           2 :                                                 {
    7282                 :           2 :                                                   tree _q80 = TREE_OPERAND (_q70, 0);
    7283                 :           2 :                                                   tree _q81 = TREE_OPERAND (_q70, 1);
    7284                 :           2 :                                                   if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
    7285                 :             :                                                     {
    7286                 :           1 :                                                       if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
    7287                 :             :                                                         {
    7288                 :           1 :                                                           {
    7289                 :           1 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    7290                 :           1 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNT);
    7291                 :           1 :                                                             if (res) return res;
    7292                 :             :                                                           }
    7293                 :             :                                                         }
    7294                 :             :                                                     }
    7295                 :           1 :                                                   if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
    7296                 :             :                                                     {
    7297                 :           1 :                                                       if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
    7298                 :             :                                                         {
    7299                 :           1 :                                                           {
    7300                 :           1 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    7301                 :           1 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNT);
    7302                 :           1 :                                                             if (res) return res;
    7303                 :             :                                                           }
    7304                 :             :                                                         }
    7305                 :             :                                                     }
    7306                 :             :                                                   break;
    7307                 :             :                                                 }
    7308                 :             :                                               default:;
    7309                 :             :                                               }
    7310                 :             :                                           }
    7311                 :             :                                         break;
    7312                 :             :                                       default:;
    7313                 :             :                                       }
    7314                 :             :                                     break;
    7315                 :             :                                   default:;
    7316                 :             :                                   }
    7317                 :             :                               }
    7318                 :             :                             break;
    7319                 :             :                           default:;
    7320                 :             :                           }
    7321                 :             :                         break;
    7322                 :             :                       default:;
    7323                 :             :                       }
    7324                 :             :                   }
    7325                 :             :                 break;
    7326                 :           0 :               case CFN_BUILT_IN_POPCOUNTLL:
    7327                 :           0 :                 if (call_expr_nargs (_q20) == 1)
    7328                 :             :     {
    7329                 :           0 :                     tree _q30 = CALL_EXPR_ARG (_q20, 0);
    7330                 :           0 :                     switch (TREE_CODE (_q21))
    7331                 :             :                       {
    7332                 :           0 :                       case CALL_EXPR:
    7333                 :           0 :                         switch (get_call_combined_fn (_q21))
    7334                 :             :                           {
    7335                 :           0 :                           case CFN_BUILT_IN_POPCOUNTLL:
    7336                 :           0 :                             if (call_expr_nargs (_q21) == 1)
    7337                 :             :     {
    7338                 :           0 :                                 tree _q50 = CALL_EXPR_ARG (_q21, 0);
    7339                 :           0 :                                 switch (TREE_CODE (_p1))
    7340                 :             :                                   {
    7341                 :           0 :                                   case CALL_EXPR:
    7342                 :           0 :                                     switch (get_call_combined_fn (_p1))
    7343                 :             :                                       {
    7344                 :           0 :                                       case CFN_BUILT_IN_POPCOUNTLL:
    7345                 :           0 :                                         if (call_expr_nargs (_p1) == 1)
    7346                 :             :     {
    7347                 :           0 :                                             tree _q70 = CALL_EXPR_ARG (_p1, 0);
    7348                 :           0 :                                             switch (TREE_CODE (_q70))
    7349                 :             :                                               {
    7350                 :           0 :                                               case BIT_AND_EXPR:
    7351                 :           0 :                                                 {
    7352                 :           0 :                                                   tree _q80 = TREE_OPERAND (_q70, 0);
    7353                 :           0 :                                                   tree _q81 = TREE_OPERAND (_q70, 1);
    7354                 :           0 :                                                   if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
    7355                 :             :                                                     {
    7356                 :           0 :                                                       if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
    7357                 :             :                                                         {
    7358                 :           0 :                                                           {
    7359                 :           0 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    7360                 :           0 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTLL);
    7361                 :           0 :                                                             if (res) return res;
    7362                 :             :                                                           }
    7363                 :             :                                                         }
    7364                 :             :                                                     }
    7365                 :           0 :                                                   if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
    7366                 :             :                                                     {
    7367                 :           0 :                                                       if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
    7368                 :             :                                                         {
    7369                 :           0 :                                                           {
    7370                 :           0 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    7371                 :           0 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTLL);
    7372                 :           0 :                                                             if (res) return res;
    7373                 :             :                                                           }
    7374                 :             :                                                         }
    7375                 :             :                                                     }
    7376                 :             :                                                   break;
    7377                 :             :                                                 }
    7378                 :           0 :                                               case BIT_IOR_EXPR:
    7379                 :           0 :                                                 {
    7380                 :           0 :                                                   tree _q80 = TREE_OPERAND (_q70, 0);
    7381                 :           0 :                                                   tree _q81 = TREE_OPERAND (_q70, 1);
    7382                 :           0 :                                                   if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
    7383                 :             :                                                     {
    7384                 :           0 :                                                       if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
    7385                 :             :                                                         {
    7386                 :           0 :                                                           {
    7387                 :           0 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    7388                 :           0 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTLL);
    7389                 :           0 :                                                             if (res) return res;
    7390                 :             :                                                           }
    7391                 :             :                                                         }
    7392                 :             :                                                     }
    7393                 :           0 :                                                   if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
    7394                 :             :                                                     {
    7395                 :           0 :                                                       if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
    7396                 :             :                                                         {
    7397                 :           0 :                                                           {
    7398                 :           0 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    7399                 :           0 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTLL);
    7400                 :           0 :                                                             if (res) return res;
    7401                 :             :                                                           }
    7402                 :             :                                                         }
    7403                 :             :                                                     }
    7404                 :             :                                                   break;
    7405                 :             :                                                 }
    7406                 :             :                                               default:;
    7407                 :             :                                               }
    7408                 :             :                                           }
    7409                 :             :                                         break;
    7410                 :             :                                       default:;
    7411                 :             :                                       }
    7412                 :             :                                     break;
    7413                 :             :                                   default:;
    7414                 :             :                                   }
    7415                 :             :                               }
    7416                 :             :                             break;
    7417                 :             :                           default:;
    7418                 :             :                           }
    7419                 :             :                         break;
    7420                 :             :                       default:;
    7421                 :             :                       }
    7422                 :             :                   }
    7423                 :             :                 break;
    7424                 :           0 :               case CFN_POPCOUNT:
    7425                 :           0 :                 if (call_expr_nargs (_q20) == 1)
    7426                 :             :     {
    7427                 :           0 :                     tree _q30 = CALL_EXPR_ARG (_q20, 0);
    7428                 :           0 :                     switch (TREE_CODE (_q21))
    7429                 :             :                       {
    7430                 :           0 :                       case CALL_EXPR:
    7431                 :           0 :                         switch (get_call_combined_fn (_q21))
    7432                 :             :                           {
    7433                 :           0 :                           case CFN_POPCOUNT:
    7434                 :           0 :                             if (call_expr_nargs (_q21) == 1)
    7435                 :             :     {
    7436                 :           0 :                                 tree _q50 = CALL_EXPR_ARG (_q21, 0);
    7437                 :           0 :                                 switch (TREE_CODE (_p1))
    7438                 :             :                                   {
    7439                 :           0 :                                   case CALL_EXPR:
    7440                 :           0 :                                     switch (get_call_combined_fn (_p1))
    7441                 :             :                                       {
    7442                 :           0 :                                       case CFN_POPCOUNT:
    7443                 :           0 :                                         if (call_expr_nargs (_p1) == 1)
    7444                 :             :     {
    7445                 :           0 :                                             tree _q70 = CALL_EXPR_ARG (_p1, 0);
    7446                 :           0 :                                             switch (TREE_CODE (_q70))
    7447                 :             :                                               {
    7448                 :           0 :                                               case BIT_AND_EXPR:
    7449                 :           0 :                                                 {
    7450                 :           0 :                                                   tree _q80 = TREE_OPERAND (_q70, 0);
    7451                 :           0 :                                                   tree _q81 = TREE_OPERAND (_q70, 1);
    7452                 :           0 :                                                   if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
    7453                 :             :                                                     {
    7454                 :           0 :                                                       if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
    7455                 :             :                                                         {
    7456                 :           0 :                                                           {
    7457                 :           0 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    7458                 :           0 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_POPCOUNT);
    7459                 :           0 :                                                             if (res) return res;
    7460                 :             :                                                           }
    7461                 :             :                                                         }
    7462                 :             :                                                     }
    7463                 :           0 :                                                   if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
    7464                 :             :                                                     {
    7465                 :           0 :                                                       if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
    7466                 :             :                                                         {
    7467                 :           0 :                                                           {
    7468                 :           0 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    7469                 :           0 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_POPCOUNT);
    7470                 :           0 :                                                             if (res) return res;
    7471                 :             :                                                           }
    7472                 :             :                                                         }
    7473                 :             :                                                     }
    7474                 :             :                                                   break;
    7475                 :             :                                                 }
    7476                 :           0 :                                               case BIT_IOR_EXPR:
    7477                 :           0 :                                                 {
    7478                 :           0 :                                                   tree _q80 = TREE_OPERAND (_q70, 0);
    7479                 :           0 :                                                   tree _q81 = TREE_OPERAND (_q70, 1);
    7480                 :           0 :                                                   if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
    7481                 :             :                                                     {
    7482                 :           0 :                                                       if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
    7483                 :             :                                                         {
    7484                 :           0 :                                                           {
    7485                 :           0 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    7486                 :           0 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_POPCOUNT);
    7487                 :           0 :                                                             if (res) return res;
    7488                 :             :                                                           }
    7489                 :             :                                                         }
    7490                 :             :                                                     }
    7491                 :           0 :                                                   if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
    7492                 :             :                                                     {
    7493                 :           0 :                                                       if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
    7494                 :             :                                                         {
    7495                 :           0 :                                                           {
    7496                 :           0 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    7497                 :           0 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_POPCOUNT);
    7498                 :           0 :                                                             if (res) return res;
    7499                 :             :                                                           }
    7500                 :             :                                                         }
    7501                 :             :                                                     }
    7502                 :             :                                                   break;
    7503                 :             :                                                 }
    7504                 :             :                                               default:;
    7505                 :             :                                               }
    7506                 :             :                                           }
    7507                 :             :                                         break;
    7508                 :             :                                       default:;
    7509                 :             :                                       }
    7510                 :             :                                     break;
    7511                 :             :                                   default:;
    7512                 :             :                                   }
    7513                 :             :                               }
    7514                 :             :                             break;
    7515                 :             :                           default:;
    7516                 :             :                           }
    7517                 :             :                         break;
    7518                 :             :                       default:;
    7519                 :             :                       }
    7520                 :             :                   }
    7521                 :             :                 break;
    7522                 :           0 :               case CFN_BUILT_IN_POPCOUNTIMAX:
    7523                 :           0 :                 if (call_expr_nargs (_q20) == 1)
    7524                 :             :     {
    7525                 :           0 :                     tree _q30 = CALL_EXPR_ARG (_q20, 0);
    7526                 :           0 :                     switch (TREE_CODE (_q21))
    7527                 :             :                       {
    7528                 :           0 :                       case CALL_EXPR:
    7529                 :           0 :                         switch (get_call_combined_fn (_q21))
    7530                 :             :                           {
    7531                 :           0 :                           case CFN_BUILT_IN_POPCOUNTIMAX:
    7532                 :           0 :                             if (call_expr_nargs (_q21) == 1)
    7533                 :             :     {
    7534                 :           0 :                                 tree _q50 = CALL_EXPR_ARG (_q21, 0);
    7535                 :           0 :                                 switch (TREE_CODE (_p1))
    7536                 :             :                                   {
    7537                 :           0 :                                   case CALL_EXPR:
    7538                 :           0 :                                     switch (get_call_combined_fn (_p1))
    7539                 :             :                                       {
    7540                 :           0 :                                       case CFN_BUILT_IN_POPCOUNTIMAX:
    7541                 :           0 :                                         if (call_expr_nargs (_p1) == 1)
    7542                 :             :     {
    7543                 :           0 :                                             tree _q70 = CALL_EXPR_ARG (_p1, 0);
    7544                 :           0 :                                             switch (TREE_CODE (_q70))
    7545                 :             :                                               {
    7546                 :           0 :                                               case BIT_AND_EXPR:
    7547                 :           0 :                                                 {
    7548                 :           0 :                                                   tree _q80 = TREE_OPERAND (_q70, 0);
    7549                 :           0 :                                                   tree _q81 = TREE_OPERAND (_q70, 1);
    7550                 :           0 :                                                   if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
    7551                 :             :                                                     {
    7552                 :           0 :                                                       if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
    7553                 :             :                                                         {
    7554                 :           0 :                                                           {
    7555                 :           0 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    7556                 :           0 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTIMAX);
    7557                 :           0 :                                                             if (res) return res;
    7558                 :             :                                                           }
    7559                 :             :                                                         }
    7560                 :             :                                                     }
    7561                 :           0 :                                                   if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
    7562                 :             :                                                     {
    7563                 :           0 :                                                       if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
    7564                 :             :                                                         {
    7565                 :           0 :                                                           {
    7566                 :           0 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    7567                 :           0 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTIMAX);
    7568                 :           0 :                                                             if (res) return res;
    7569                 :             :                                                           }
    7570                 :             :                                                         }
    7571                 :             :                                                     }
    7572                 :             :                                                   break;
    7573                 :             :                                                 }
    7574                 :           0 :                                               case BIT_IOR_EXPR:
    7575                 :           0 :                                                 {
    7576                 :           0 :                                                   tree _q80 = TREE_OPERAND (_q70, 0);
    7577                 :           0 :                                                   tree _q81 = TREE_OPERAND (_q70, 1);
    7578                 :           0 :                                                   if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
    7579                 :             :                                                     {
    7580                 :           0 :                                                       if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
    7581                 :             :                                                         {
    7582                 :           0 :                                                           {
    7583                 :           0 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    7584                 :           0 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTIMAX);
    7585                 :           0 :                                                             if (res) return res;
    7586                 :             :                                                           }
    7587                 :             :                                                         }
    7588                 :             :                                                     }
    7589                 :           0 :                                                   if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
    7590                 :             :                                                     {
    7591                 :           0 :                                                       if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
    7592                 :             :                                                         {
    7593                 :           0 :                                                           {
    7594                 :           0 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    7595                 :           0 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTIMAX);
    7596                 :           0 :                                                             if (res) return res;
    7597                 :             :                                                           }
    7598                 :             :                                                         }
    7599                 :             :                                                     }
    7600                 :             :                                                   break;
    7601                 :             :                                                 }
    7602                 :             :                                               default:;
    7603                 :             :                                               }
    7604                 :             :                                           }
    7605                 :             :                                         break;
    7606                 :             :                                       default:;
    7607                 :             :                                       }
    7608                 :             :                                     break;
    7609                 :             :                                   default:;
    7610                 :             :                                   }
    7611                 :             :                               }
    7612                 :             :                             break;
    7613                 :             :                           default:;
    7614                 :             :                           }
    7615                 :             :                         break;
    7616                 :             :                       default:;
    7617                 :             :                       }
    7618                 :             :                   }
    7619                 :             :                 break;
    7620                 :           0 :               case CFN_BUILT_IN_POPCOUNTL:
    7621                 :           0 :                 if (call_expr_nargs (_q20) == 1)
    7622                 :             :     {
    7623                 :           0 :                     tree _q30 = CALL_EXPR_ARG (_q20, 0);
    7624                 :           0 :                     switch (TREE_CODE (_q21))
    7625                 :             :                       {
    7626                 :           0 :                       case CALL_EXPR:
    7627                 :           0 :                         switch (get_call_combined_fn (_q21))
    7628                 :             :                           {
    7629                 :           0 :                           case CFN_BUILT_IN_POPCOUNTL:
    7630                 :           0 :                             if (call_expr_nargs (_q21) == 1)
    7631                 :             :     {
    7632                 :           0 :                                 tree _q50 = CALL_EXPR_ARG (_q21, 0);
    7633                 :           0 :                                 switch (TREE_CODE (_p1))
    7634                 :             :                                   {
    7635                 :           0 :                                   case CALL_EXPR:
    7636                 :           0 :                                     switch (get_call_combined_fn (_p1))
    7637                 :             :                                       {
    7638                 :           0 :                                       case CFN_BUILT_IN_POPCOUNTL:
    7639                 :           0 :                                         if (call_expr_nargs (_p1) == 1)
    7640                 :             :     {
    7641                 :           0 :                                             tree _q70 = CALL_EXPR_ARG (_p1, 0);
    7642                 :           0 :                                             switch (TREE_CODE (_q70))
    7643                 :             :                                               {
    7644                 :           0 :                                               case BIT_AND_EXPR:
    7645                 :           0 :                                                 {
    7646                 :           0 :                                                   tree _q80 = TREE_OPERAND (_q70, 0);
    7647                 :           0 :                                                   tree _q81 = TREE_OPERAND (_q70, 1);
    7648                 :           0 :                                                   if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
    7649                 :             :                                                     {
    7650                 :           0 :                                                       if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
    7651                 :             :                                                         {
    7652                 :           0 :                                                           {
    7653                 :           0 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    7654                 :           0 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTL);
    7655                 :           0 :                                                             if (res) return res;
    7656                 :             :                                                           }
    7657                 :             :                                                         }
    7658                 :             :                                                     }
    7659                 :           0 :                                                   if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
    7660                 :             :                                                     {
    7661                 :           0 :                                                       if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
    7662                 :             :                                                         {
    7663                 :           0 :                                                           {
    7664                 :           0 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    7665                 :           0 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTL);
    7666                 :           0 :                                                             if (res) return res;
    7667                 :             :                                                           }
    7668                 :             :                                                         }
    7669                 :             :                                                     }
    7670                 :             :                                                   break;
    7671                 :             :                                                 }
    7672                 :           0 :                                               case BIT_IOR_EXPR:
    7673                 :           0 :                                                 {
    7674                 :           0 :                                                   tree _q80 = TREE_OPERAND (_q70, 0);
    7675                 :           0 :                                                   tree _q81 = TREE_OPERAND (_q70, 1);
    7676                 :           0 :                                                   if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
    7677                 :             :                                                     {
    7678                 :           0 :                                                       if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
    7679                 :             :                                                         {
    7680                 :           0 :                                                           {
    7681                 :           0 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    7682                 :           0 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTL);
    7683                 :           0 :                                                             if (res) return res;
    7684                 :             :                                                           }
    7685                 :             :                                                         }
    7686                 :             :                                                     }
    7687                 :           0 :                                                   if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
    7688                 :             :                                                     {
    7689                 :           0 :                                                       if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
    7690                 :             :                                                         {
    7691                 :           0 :                                                           {
    7692                 :           0 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    7693                 :           0 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTL);
    7694                 :           0 :                                                             if (res) return res;
    7695                 :             :                                                           }
    7696                 :             :                                                         }
    7697                 :             :                                                     }
    7698                 :             :                                                   break;
    7699                 :             :                                                 }
    7700                 :             :                                               default:;
    7701                 :             :                                               }
    7702                 :             :                                           }
    7703                 :             :                                         break;
    7704                 :             :                                       default:;
    7705                 :             :                                       }
    7706                 :             :                                     break;
    7707                 :             :                                   default:;
    7708                 :             :                                   }
    7709                 :             :                               }
    7710                 :             :                             break;
    7711                 :             :                           default:;
    7712                 :             :                           }
    7713                 :             :                         break;
    7714                 :             :                       default:;
    7715                 :             :                       }
    7716                 :             :                   }
    7717                 :             :                 break;
    7718                 :             :               default:;
    7719                 :             :               }
    7720                 :             :             break;
    7721                 :             :           default:;
    7722                 :             :           }
    7723                 :             :         break;
    7724                 :             :       }
    7725                 :           0 :     case VEC_PERM_EXPR:
    7726                 :           0 :       {
    7727                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
    7728                 :           0 :         tree _q21 = TREE_OPERAND (_p0, 1);
    7729                 :           0 :         tree _q22 = TREE_OPERAND (_p0, 2);
    7730                 :           0 :         switch (TREE_CODE (_q20))
    7731                 :             :           {
    7732                 :           0 :           case MULT_EXPR:
    7733                 :           0 :             {
    7734                 :           0 :               tree _q30 = TREE_OPERAND (_q20, 0);
    7735                 :           0 :               tree _q31 = TREE_OPERAND (_q20, 1);
    7736                 :           0 :               if (tree_vec_same_elem_p (_q31))
    7737                 :             :                 {
    7738                 :           0 :                   if ((_q21 == _q20 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q20, 0) && types_match (_q21, _q20)))
    7739                 :             :                     {
    7740                 :           0 :                       {
    7741                 :           0 :                         tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q22, _p1 };
    7742                 :           0 :                         tree res = generic_simplify_64 (loc, type, _p0, _p1, captures);
    7743                 :           0 :                         if (res) return res;
    7744                 :             :                       }
    7745                 :             :                     }
    7746                 :             :                 }
    7747                 :           0 :               if (tree_vec_same_elem_p (_q30))
    7748                 :             :                 {
    7749                 :           0 :                   if ((_q21 == _q20 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q20, 0) && types_match (_q21, _q20)))
    7750                 :             :                     {
    7751                 :           0 :                       {
    7752                 :           0 :                         tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q31, _q30, _q22, _p1 };
    7753                 :           0 :                         tree res = generic_simplify_64 (loc, type, _p0, _p1, captures);
    7754                 :           0 :                         if (res) return res;
    7755                 :             :                       }
    7756                 :             :                     }
    7757                 :             :                 }
    7758                 :             :               break;
    7759                 :             :             }
    7760                 :             :           default:;
    7761                 :             :           }
    7762                 :             :         break;
    7763                 :             :       }
    7764                 :      642231 :     case CALL_EXPR:
    7765                 :      642231 :       switch (get_call_combined_fn (_p0))
    7766                 :             :         {
    7767                 :          18 :         case CFN_BUILT_IN_LOG:
    7768                 :          18 :           if (call_expr_nargs (_p0) == 1)
    7769                 :             :     {
    7770                 :          18 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    7771                 :          18 :               switch (TREE_CODE (_p1))
    7772                 :             :                 {
    7773                 :           0 :                 case CALL_EXPR:
    7774                 :           0 :                   switch (get_call_combined_fn (_p1))
    7775                 :             :                     {
    7776                 :           0 :                     case CFN_BUILT_IN_LOG:
    7777                 :           0 :                       if (call_expr_nargs (_p1) == 1)
    7778                 :             :     {
    7779                 :           0 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    7780                 :           0 :                           {
    7781                 :           0 :                             tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
    7782                 :           0 :                             tree res = generic_simplify_62 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LOG);
    7783                 :           0 :                             if (res) return res;
    7784                 :             :                           }
    7785                 :             :                         }
    7786                 :             :                       break;
    7787                 :             :                     default:;
    7788                 :             :                     }
    7789                 :             :                   break;
    7790                 :             :                 default:;
    7791                 :             :                 }
    7792                 :             :             }
    7793                 :             :           break;
    7794                 :           2 :         case CFN_BUILT_IN_LOG2:
    7795                 :           2 :           if (call_expr_nargs (_p0) == 1)
    7796                 :             :     {
    7797                 :           2 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    7798                 :           2 :               switch (TREE_CODE (_p1))
    7799                 :             :                 {
    7800                 :           0 :                 case CALL_EXPR:
    7801                 :           0 :                   switch (get_call_combined_fn (_p1))
    7802                 :             :                     {
    7803                 :           0 :                     case CFN_BUILT_IN_LOG2:
    7804                 :           0 :                       if (call_expr_nargs (_p1) == 1)
    7805                 :             :     {
    7806                 :           0 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    7807                 :           0 :                           {
    7808                 :           0 :                             tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
    7809                 :           0 :                             tree res = generic_simplify_62 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LOG2);
    7810                 :           0 :                             if (res) return res;
    7811                 :             :                           }
    7812                 :             :                         }
    7813                 :             :                       break;
    7814                 :             :                     default:;
    7815                 :             :                     }
    7816                 :             :                   break;
    7817                 :             :                 default:;
    7818                 :             :                 }
    7819                 :             :             }
    7820                 :             :           break;
    7821                 :           0 :         case CFN_BUILT_IN_LOGF:
    7822                 :           0 :           if (call_expr_nargs (_p0) == 1)
    7823                 :             :     {
    7824                 :           0 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    7825                 :           0 :               switch (TREE_CODE (_p1))
    7826                 :             :                 {
    7827                 :           0 :                 case CALL_EXPR:
    7828                 :           0 :                   switch (get_call_combined_fn (_p1))
    7829                 :             :                     {
    7830                 :           0 :                     case CFN_BUILT_IN_LOGF:
    7831                 :           0 :                       if (call_expr_nargs (_p1) == 1)
    7832                 :             :     {
    7833                 :           0 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    7834                 :           0 :                           {
    7835                 :           0 :                             tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
    7836                 :           0 :                             tree res = generic_simplify_62 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LOGF);
    7837                 :           0 :                             if (res) return res;
    7838                 :             :                           }
    7839                 :             :                         }
    7840                 :             :                       break;
    7841                 :             :                     default:;
    7842                 :             :                     }
    7843                 :             :                   break;
    7844                 :             :                 default:;
    7845                 :             :                 }
    7846                 :             :             }
    7847                 :             :           break;
    7848                 :           0 :         case CFN_BUILT_IN_LOGL:
    7849                 :           0 :           if (call_expr_nargs (_p0) == 1)
    7850                 :             :     {
    7851                 :           0 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    7852                 :           0 :               switch (TREE_CODE (_p1))
    7853                 :             :                 {
    7854                 :           0 :                 case CALL_EXPR:
    7855                 :           0 :                   switch (get_call_combined_fn (_p1))
    7856                 :             :                     {
    7857                 :           0 :                     case CFN_BUILT_IN_LOGL:
    7858                 :           0 :                       if (call_expr_nargs (_p1) == 1)
    7859                 :             :     {
    7860                 :           0 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    7861                 :           0 :                           {
    7862                 :           0 :                             tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
    7863                 :           0 :                             tree res = generic_simplify_62 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LOGL);
    7864                 :           0 :                             if (res) return res;
    7865                 :             :                           }
    7866                 :             :                         }
    7867                 :             :                       break;
    7868                 :             :                     default:;
    7869                 :             :                     }
    7870                 :             :                   break;
    7871                 :             :                 default:;
    7872                 :             :                 }
    7873                 :             :             }
    7874                 :             :           break;
    7875                 :           0 :         case CFN_BUILT_IN_LOG10F:
    7876                 :           0 :           if (call_expr_nargs (_p0) == 1)
    7877                 :             :     {
    7878                 :           0 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    7879                 :           0 :               switch (TREE_CODE (_p1))
    7880                 :             :                 {
    7881                 :           0 :                 case CALL_EXPR:
    7882                 :           0 :                   switch (get_call_combined_fn (_p1))
    7883                 :             :                     {
    7884                 :           0 :                     case CFN_BUILT_IN_LOG10F:
    7885                 :           0 :                       if (call_expr_nargs (_p1) == 1)
    7886                 :             :     {
    7887                 :           0 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    7888                 :           0 :                           {
    7889                 :           0 :                             tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
    7890                 :           0 :                             tree res = generic_simplify_62 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LOG10F);
    7891                 :           0 :                             if (res) return res;
    7892                 :             :                           }
    7893                 :             :                         }
    7894                 :             :                       break;
    7895                 :             :                     default:;
    7896                 :             :                     }
    7897                 :             :                   break;
    7898                 :             :                 default:;
    7899                 :             :                 }
    7900                 :             :             }
    7901                 :             :           break;
    7902                 :           0 :         case CFN_BUILT_IN_LOG10L:
    7903                 :           0 :           if (call_expr_nargs (_p0) == 1)
    7904                 :             :     {
    7905                 :           0 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    7906                 :           0 :               switch (TREE_CODE (_p1))
    7907                 :             :                 {
    7908                 :           0 :                 case CALL_EXPR:
    7909                 :           0 :                   switch (get_call_combined_fn (_p1))
    7910                 :             :                     {
    7911                 :           0 :                     case CFN_BUILT_IN_LOG10L:
    7912                 :           0 :                       if (call_expr_nargs (_p1) == 1)
    7913                 :             :     {
    7914                 :           0 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    7915                 :           0 :                           {
    7916                 :           0 :                             tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
    7917                 :           0 :                             tree res = generic_simplify_62 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LOG10L);
    7918                 :           0 :                             if (res) return res;
    7919                 :             :                           }
    7920                 :             :                         }
    7921                 :             :                       break;
    7922                 :             :                     default:;
    7923                 :             :                     }
    7924                 :             :                   break;
    7925                 :             :                 default:;
    7926                 :             :                 }
    7927                 :             :             }
    7928                 :             :           break;
    7929                 :           0 :         case CFN_LOG:
    7930                 :           0 :           if (call_expr_nargs (_p0) == 1)
    7931                 :             :     {
    7932                 :           0 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    7933                 :           0 :               switch (TREE_CODE (_p1))
    7934                 :             :                 {
    7935                 :           0 :                 case CALL_EXPR:
    7936                 :           0 :                   switch (get_call_combined_fn (_p1))
    7937                 :             :                     {
    7938                 :           0 :                     case CFN_LOG:
    7939                 :           0 :                       if (call_expr_nargs (_p1) == 1)
    7940                 :             :     {
    7941                 :           0 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    7942                 :           0 :                           {
    7943                 :           0 :                             tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
    7944                 :           0 :                             tree res = generic_simplify_62 (loc, type, _p0, _p1, captures, CFN_LOG);
    7945                 :           0 :                             if (res) return res;
    7946                 :             :                           }
    7947                 :             :                         }
    7948                 :             :                       break;
    7949                 :             :                     default:;
    7950                 :             :                     }
    7951                 :             :                   break;
    7952                 :             :                 default:;
    7953                 :             :                 }
    7954                 :             :             }
    7955                 :             :           break;
    7956                 :           0 :         case CFN_LOG2:
    7957                 :           0 :           if (call_expr_nargs (_p0) == 1)
    7958                 :             :     {
    7959                 :           0 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    7960                 :           0 :               switch (TREE_CODE (_p1))
    7961                 :             :                 {
    7962                 :           0 :                 case CALL_EXPR:
    7963                 :           0 :                   switch (get_call_combined_fn (_p1))
    7964                 :             :                     {
    7965                 :           0 :                     case CFN_LOG2:
    7966                 :           0 :                       if (call_expr_nargs (_p1) == 1)
    7967                 :             :     {
    7968                 :           0 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    7969                 :           0 :                           {
    7970                 :           0 :                             tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
    7971                 :           0 :                             tree res = generic_simplify_62 (loc, type, _p0, _p1, captures, CFN_LOG2);
    7972                 :           0 :                             if (res) return res;
    7973                 :             :                           }
    7974                 :             :                         }
    7975                 :             :                       break;
    7976                 :             :                     default:;
    7977                 :             :                     }
    7978                 :             :                   break;
    7979                 :             :                 default:;
    7980                 :             :                 }
    7981                 :             :             }
    7982                 :             :           break;
    7983                 :           0 :         case CFN_LOG10:
    7984                 :           0 :           if (call_expr_nargs (_p0) == 1)
    7985                 :             :     {
    7986                 :           0 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    7987                 :           0 :               switch (TREE_CODE (_p1))
    7988                 :             :                 {
    7989                 :           0 :                 case CALL_EXPR:
    7990                 :           0 :                   switch (get_call_combined_fn (_p1))
    7991                 :             :                     {
    7992                 :           0 :                     case CFN_LOG10:
    7993                 :           0 :                       if (call_expr_nargs (_p1) == 1)
    7994                 :             :     {
    7995                 :           0 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    7996                 :           0 :                           {
    7997                 :           0 :                             tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
    7998                 :           0 :                             tree res = generic_simplify_62 (loc, type, _p0, _p1, captures, CFN_LOG10);
    7999                 :           0 :                             if (res) return res;
    8000                 :             :                           }
    8001                 :             :                         }
    8002                 :             :                       break;
    8003                 :             :                     default:;
    8004                 :             :                     }
    8005                 :             :                   break;
    8006                 :             :                 default:;
    8007                 :             :                 }
    8008                 :             :             }
    8009                 :             :           break;
    8010                 :           6 :         case CFN_BUILT_IN_LOG10:
    8011                 :           6 :           if (call_expr_nargs (_p0) == 1)
    8012                 :             :     {
    8013                 :           6 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    8014                 :           6 :               switch (TREE_CODE (_p1))
    8015                 :             :                 {
    8016                 :           2 :                 case CALL_EXPR:
    8017                 :           2 :                   switch (get_call_combined_fn (_p1))
    8018                 :             :                     {
    8019                 :           2 :                     case CFN_BUILT_IN_LOG10:
    8020                 :           2 :                       if (call_expr_nargs (_p1) == 1)
    8021                 :             :     {
    8022                 :           2 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    8023                 :           2 :                           {
    8024                 :           2 :                             tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
    8025                 :           2 :                             tree res = generic_simplify_62 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LOG10);
    8026                 :           2 :                             if (res) return res;
    8027                 :             :                           }
    8028                 :             :                         }
    8029                 :             :                       break;
    8030                 :             :                     default:;
    8031                 :             :                     }
    8032                 :             :                   break;
    8033                 :             :                 default:;
    8034                 :             :                 }
    8035                 :             :             }
    8036                 :             :           break;
    8037                 :           0 :         case CFN_BUILT_IN_LOG2F:
    8038                 :           0 :           if (call_expr_nargs (_p0) == 1)
    8039                 :             :     {
    8040                 :           0 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    8041                 :           0 :               switch (TREE_CODE (_p1))
    8042                 :             :                 {
    8043                 :           0 :                 case CALL_EXPR:
    8044                 :           0 :                   switch (get_call_combined_fn (_p1))
    8045                 :             :                     {
    8046                 :           0 :                     case CFN_BUILT_IN_LOG2F:
    8047                 :           0 :                       if (call_expr_nargs (_p1) == 1)
    8048                 :             :     {
    8049                 :           0 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    8050                 :           0 :                           {
    8051                 :           0 :                             tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
    8052                 :           0 :                             tree res = generic_simplify_62 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LOG2F);
    8053                 :           0 :                             if (res) return res;
    8054                 :             :                           }
    8055                 :             :                         }
    8056                 :             :                       break;
    8057                 :             :                     default:;
    8058                 :             :                     }
    8059                 :             :                   break;
    8060                 :             :                 default:;
    8061                 :             :                 }
    8062                 :             :             }
    8063                 :             :           break;
    8064                 :           0 :         case CFN_BUILT_IN_LOG2L:
    8065                 :           0 :           if (call_expr_nargs (_p0) == 1)
    8066                 :             :     {
    8067                 :           0 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    8068                 :           0 :               switch (TREE_CODE (_p1))
    8069                 :             :                 {
    8070                 :           0 :                 case CALL_EXPR:
    8071                 :           0 :                   switch (get_call_combined_fn (_p1))
    8072                 :             :                     {
    8073                 :           0 :                     case CFN_BUILT_IN_LOG2L:
    8074                 :           0 :                       if (call_expr_nargs (_p1) == 1)
    8075                 :             :     {
    8076                 :           0 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    8077                 :           0 :                           {
    8078                 :           0 :                             tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
    8079                 :           0 :                             tree res = generic_simplify_62 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LOG2L);
    8080                 :           0 :                             if (res) return res;
    8081                 :             :                           }
    8082                 :             :                         }
    8083                 :             :                       break;
    8084                 :             :                     default:;
    8085                 :             :                     }
    8086                 :             :                   break;
    8087                 :             :                 default:;
    8088                 :             :                 }
    8089                 :             :             }
    8090                 :             :           break;
    8091                 :             :         default:;
    8092                 :             :         }
    8093                 :             :       break;
    8094                 :    20286243 :     default:;
    8095                 :             :     }
    8096                 :    20286243 :   switch (TREE_CODE (_p1))
    8097                 :             :     {
    8098                 :        6786 :     case BIT_AND_EXPR:
    8099                 :        6786 :       {
    8100                 :        6786 :         tree _q30 = TREE_OPERAND (_p1, 0);
    8101                 :        6786 :         tree _q31 = TREE_OPERAND (_p1, 1);
    8102                 :        6786 :         switch (TREE_CODE (_q30))
    8103                 :             :           {
    8104                 :          80 :           case MAX_EXPR:
    8105                 :          80 :             {
    8106                 :          80 :               tree _q40 = TREE_OPERAND (_q30, 0);
    8107                 :          80 :               tree _q41 = TREE_OPERAND (_q30, 1);
    8108                 :          80 :               if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
    8109                 :             :                 {
    8110                 :          80 :                   switch (TREE_CODE (_q41))
    8111                 :             :                     {
    8112                 :          80 :                     case INTEGER_CST:
    8113                 :          80 :                       {
    8114                 :          80 :                         switch (TREE_CODE (_q31))
    8115                 :             :                           {
    8116                 :          72 :                           case INTEGER_CST:
    8117                 :          72 :                             {
    8118                 :          72 :                               {
    8119                 :          72 :                                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q41, _q31 };
    8120                 :          72 :                                 {
    8121                 :          72 :  auto i = wi::neg (wi::to_wide (captures[2]));
    8122                 :          72 :                                     if (wi::popcount (i) == 1
    8123                 :         200 :  && (wi::to_wide (captures[1])) == (i - 1)
    8124                 :             : )
    8125                 :             :                                       {
    8126                 :          40 :                                         if (TYPE_UNSIGNED (TREE_TYPE (captures[0]))
    8127                 :             : )
    8128                 :             :                                           {
    8129                 :           8 :                                             if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1187;
    8130                 :           8 :                                             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1187;
    8131                 :           8 :                                             {
    8132                 :           8 :                                               tree res_op0;
    8133                 :           8 :                                               res_op0 = captures[0];
    8134                 :           8 :                                               tree res_op1;
    8135                 :           8 :                                               res_op1 = captures[1];
    8136                 :           8 :                                               tree _r;
    8137                 :           8 :                                               _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
    8138                 :           8 :                                               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 897, __FILE__, __LINE__, true);
    8139                 :           8 :                                               return _r;
    8140                 :             :                                             }
    8141                 :          64 : next_after_fail1187:;
    8142                 :             :                                           }
    8143                 :             :                                         else
    8144                 :             :                                           {
    8145                 :          32 :                                             if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1188;
    8146                 :          32 :                                             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1188;
    8147                 :          32 :                                             {
    8148                 :          32 :                                               if (! tree_invariant_p (captures[0])) goto next_after_fail1188;
    8149                 :           0 :                                               if (! tree_invariant_p (captures[1])) goto next_after_fail1188;
    8150                 :           0 :                                               tree res_op0;
    8151                 :           0 :                                               {
    8152                 :           0 :                                                 tree _o1[2], _r1;
    8153                 :           0 :                                                 _o1[0] = unshare_expr (captures[0]);
    8154                 :           0 :                                                 _o1[1] = unshare_expr (captures[1]);
    8155                 :           0 :                                                 _r1 = fold_build2_loc (loc, LE_EXPR, boolean_type_node, _o1[0], _o1[1]);
    8156                 :           0 :                                                 res_op0 = _r1;
    8157                 :             :                                               }
    8158                 :           0 :                                               tree res_op1;
    8159                 :           0 :                                               res_op1 = unshare_expr (captures[0]);
    8160                 :           0 :                                               tree res_op2;
    8161                 :           0 :                                               {
    8162                 :           0 :                                                 tree _o1[2], _r1;
    8163                 :           0 :                                                 _o1[0] = captures[0];
    8164                 :           0 :                                                 _o1[1] = captures[1];
    8165                 :           0 :                                                 _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    8166                 :           0 :                                                 res_op2 = _r1;
    8167                 :             :                                               }
    8168                 :           0 :                                               tree _r;
    8169                 :           0 :                                               _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
    8170                 :           0 :                                               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 898, __FILE__, __LINE__, true);
    8171                 :           0 :                                               return _r;
    8172                 :             :                                             }
    8173                 :          64 : next_after_fail1188:;
    8174                 :             :                                           }
    8175                 :             :                                       }
    8176                 :           8 :                                 }
    8177                 :             :                               }
    8178                 :          64 :                               break;
    8179                 :             :                             }
    8180                 :             :                           default:;
    8181                 :             :                           }
    8182                 :             :                         break;
    8183                 :             :                       }
    8184                 :             :                     default:;
    8185                 :             :                     }
    8186                 :             :                 }
    8187                 :             :               break;
    8188                 :             :             }
    8189                 :             :           default:;
    8190                 :             :           }
    8191                 :             :         break;
    8192                 :             :       }
    8193                 :    20286235 :     default:;
    8194                 :             :     }
    8195                 :    20286235 :   switch (TREE_CODE (_p0))
    8196                 :             :     {
    8197                 :           0 :     case VEC_PERM_EXPR:
    8198                 :           0 :       {
    8199                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
    8200                 :           0 :         tree _q21 = TREE_OPERAND (_p0, 1);
    8201                 :           0 :         tree _q22 = TREE_OPERAND (_p0, 2);
    8202                 :           0 :         if ((_q21 == _q20 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q20, 0) && types_match (_q21, _q20)))
    8203                 :             :           {
    8204                 :           0 :             switch (TREE_CODE (_p1))
    8205                 :             :               {
    8206                 :           0 :               case VEC_PERM_EXPR:
    8207                 :           0 :                 {
    8208                 :           0 :                   tree _q60 = TREE_OPERAND (_p1, 0);
    8209                 :           0 :                   tree _q61 = TREE_OPERAND (_p1, 1);
    8210                 :           0 :                   tree _q62 = TREE_OPERAND (_p1, 2);
    8211                 :           0 :                   if ((_q61 == _q60 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q60, 0) && types_match (_q61, _q60)))
    8212                 :             :                     {
    8213                 :           0 :                       if ((_q62 == _q22 && ! TREE_SIDE_EFFECTS (_q62)) || (operand_equal_p (_q62, _q22, 0) && types_match (_q62, _q22)))
    8214                 :             :                         {
    8215                 :           0 :                           {
    8216                 :           0 :                             tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q22, _q60 };
    8217                 :           0 :                             if (VECTOR_INTEGER_TYPE_P (type)
    8218                 :             : )
    8219                 :             :                               {
    8220                 :           0 :                                 if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1189;
    8221                 :           0 :                                 {
    8222                 :           0 :                                   tree res_op0;
    8223                 :           0 :                                   {
    8224                 :           0 :                                     tree _o1[2], _r1;
    8225                 :           0 :                                     _o1[0] = captures[0];
    8226                 :           0 :                                     _o1[1] = captures[2];
    8227                 :           0 :                                     _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    8228                 :           0 :                                     captures[3] = _r1;
    8229                 :             :                                   }
    8230                 :           0 :                                   res_op0 = unshare_expr (captures[3]);
    8231                 :           0 :                                   tree res_op1;
    8232                 :           0 :                                   res_op1 = captures[3];
    8233                 :           0 :                                   tree res_op2;
    8234                 :           0 :                                   res_op2 = captures[1];
    8235                 :           0 :                                   tree _r;
    8236                 :           0 :                                   _r = fold_build3_loc (loc, VEC_PERM_EXPR, type, res_op0, res_op1, res_op2);
    8237                 :           0 :                                   if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 860, __FILE__, __LINE__, true);
    8238                 :           0 :                                   return _r;
    8239                 :             :                                 }
    8240                 :           0 : next_after_fail1189:;
    8241                 :             :                               }
    8242                 :             :                           }
    8243                 :             :                         }
    8244                 :             :                     }
    8245                 :             :                   break;
    8246                 :             :                 }
    8247                 :           0 :               default:;
    8248                 :             :               }
    8249                 :           0 :             switch (TREE_CODE (_q22))
    8250                 :             :               {
    8251                 :           0 :               case VECTOR_CST:
    8252                 :           0 :                 {
    8253                 :           0 :                   switch (TREE_CODE (_p1))
    8254                 :             :                     {
    8255                 :           0 :                     case VEC_PERM_EXPR:
    8256                 :           0 :                       {
    8257                 :           0 :                         tree _q60 = TREE_OPERAND (_p1, 0);
    8258                 :           0 :                         tree _q61 = TREE_OPERAND (_p1, 1);
    8259                 :           0 :                         tree _q62 = TREE_OPERAND (_p1, 2);
    8260                 :           0 :                         if ((_q61 == _q60 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q60, 0) && types_match (_q61, _q60)))
    8261                 :             :                           {
    8262                 :           0 :                             if ((_q62 == _q22 && ! TREE_SIDE_EFFECTS (_q62)) || (operand_equal_p (_q62, _q22, 0) && types_match (_q62, _q22)))
    8263                 :             :                               {
    8264                 :           0 :                                 switch (TREE_CODE (_q62))
    8265                 :             :                                   {
    8266                 :           0 :                                   case VECTOR_CST:
    8267                 :           0 :                                     {
    8268                 :           0 :                                       {
    8269                 :           0 :                                         tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q22, _q60 };
    8270                 :           0 :                                         tree res = generic_simplify_39 (loc, type, _p0, _p1, captures, MINUS_EXPR);
    8271                 :           0 :                                         if (res) return res;
    8272                 :             :                                       }
    8273                 :           0 :                                       break;
    8274                 :             :                                     }
    8275                 :             :                                   default:;
    8276                 :             :                                   }
    8277                 :             :                               }
    8278                 :             :                           }
    8279                 :             :                         break;
    8280                 :             :                       }
    8281                 :             :                     default:;
    8282                 :             :                     }
    8283                 :             :                   break;
    8284                 :             :                 }
    8285                 :             :               default:;
    8286                 :             :               }
    8287                 :             :           }
    8288                 :             :         break;
    8289                 :             :       }
    8290                 :             :     default:;
    8291                 :             :     }
    8292                 :             :   return NULL_TREE;
    8293                 :             : }
    8294                 :             : 
    8295                 :             : tree
    8296                 :     1264238 : generic_simplify_LSHIFT_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
    8297                 :             : {
    8298                 :     1264238 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    8299                 :     1264238 :   switch (TREE_CODE (_p1))
    8300                 :             :     {
    8301                 :         305 :     case TRUNC_MOD_EXPR:
    8302                 :         305 :       {
    8303                 :         305 :         tree _q30 = TREE_OPERAND (_p1, 0);
    8304                 :         305 :         tree _q31 = TREE_OPERAND (_p1, 1);
    8305                 :         305 :         {
    8306                 :         305 :           tree _q31_pops[1];
    8307                 :         305 :           if (tree_power_of_two_cand (_q31, _q31_pops))
    8308                 :             :             {
    8309                 :         299 :               tree _q50 = _q31_pops[0];
    8310                 :         299 :               {
    8311                 :         299 :                 tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q31, _q50 };
    8312                 :         299 :                 tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, LSHIFT_EXPR, TRUNC_MOD_EXPR);
    8313                 :         299 :                 if (res) return res;
    8314                 :             :               }
    8315                 :             :             }
    8316                 :             :         }
    8317                 :          75 :         break;
    8318                 :             :       }
    8319                 :           0 :     case FLOOR_MOD_EXPR:
    8320                 :           0 :       {
    8321                 :           0 :         tree _q30 = TREE_OPERAND (_p1, 0);
    8322                 :           0 :         tree _q31 = TREE_OPERAND (_p1, 1);
    8323                 :           0 :         {
    8324                 :           0 :           tree _q31_pops[1];
    8325                 :           0 :           if (tree_power_of_two_cand (_q31, _q31_pops))
    8326                 :             :             {
    8327                 :           0 :               tree _q50 = _q31_pops[0];
    8328                 :           0 :               {
    8329                 :           0 :                 tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q31, _q50 };
    8330                 :           0 :                 tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, LSHIFT_EXPR, FLOOR_MOD_EXPR);
    8331                 :           0 :                 if (res) return res;
    8332                 :             :               }
    8333                 :             :             }
    8334                 :             :         }
    8335                 :           0 :         break;
    8336                 :             :       }
    8337                 :     1264008 :     default:;
    8338                 :             :     }
    8339                 :     1264008 : if (uniform_integer_cst_p (_p1))
    8340                 :             :   {
    8341                 :      853756 :     {
    8342                 :      853756 :       tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    8343                 :      853756 :       tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
    8344                 :      853756 :       if (res) return res;
    8345                 :             :     }
    8346                 :             :   }
    8347                 :     1263543 :   switch (TREE_CODE (_p0))
    8348                 :             :     {
    8349                 :      686935 :     CASE_CONVERT:
    8350                 :      686935 :       {
    8351                 :      686935 :         tree _q20 = TREE_OPERAND (_p0, 0);
    8352                 :      686935 :         switch (TREE_CODE (_q20))
    8353                 :             :           {
    8354                 :           4 :           case LT_EXPR:
    8355                 :           4 :             {
    8356                 :           4 :               tree _q30 = TREE_OPERAND (_q20, 0);
    8357                 :           4 :               tree _q31 = TREE_OPERAND (_q20, 1);
    8358                 :           4 :               if (integer_zerop (_q31))
    8359                 :             :                 {
    8360                 :           4 :                   switch (TREE_CODE (_p1))
    8361                 :             :                     {
    8362                 :           4 :                     case INTEGER_CST:
    8363                 :           4 :                       {
    8364                 :           4 :                         {
    8365                 :           4 :                           tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
    8366                 :           4 :                           if (TYPE_SIGN (TREE_TYPE (captures[0])) == SIGNED
    8367                 :           4 :  && wi::eq_p (wi::to_wide (captures[2]), TYPE_PRECISION (TREE_TYPE (captures[0])) - 1)
    8368                 :             : )
    8369                 :             :                             {
    8370                 :           0 :                               {
    8371                 :           0 :  wide_int wone = wi::one (TYPE_PRECISION (type));
    8372                 :           0 :                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1617;
    8373                 :           0 :                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1617;
    8374                 :           0 :                                   {
    8375                 :           0 :                                     tree res_op0;
    8376                 :           0 :                                     {
    8377                 :           0 :                                       tree _o1[1], _r1;
    8378                 :           0 :                                       _o1[0] = captures[0];
    8379                 :           0 :                                       if (TREE_TYPE (_o1[0]) != type)
    8380                 :             :                                         {
    8381                 :           0 :                                           _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
    8382                 :             :                                         }
    8383                 :             :                                       else
    8384                 :             :                                         _r1 = _o1[0];
    8385                 :           0 :                                       res_op0 = _r1;
    8386                 :             :                                     }
    8387                 :           0 :                                     tree res_op1;
    8388                 :           0 :                                     res_op1 =  wide_int_to_tree (type,
    8389                 :           0 :  wi::lshift (wone, wi::to_wide (captures[2])));
    8390                 :           0 :                                     tree _r;
    8391                 :           0 :                                     _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
    8392                 :           0 :                                     if (TREE_SIDE_EFFECTS (captures[1]))
    8393                 :           0 :                                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    8394                 :           0 :                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 968, __FILE__, __LINE__, true);
    8395                 :           0 :                                     return _r;
    8396                 :             :                                   }
    8397                 :           0 : next_after_fail1617:;
    8398                 :           0 :                               }
    8399                 :             :                             }
    8400                 :             :                         }
    8401                 :           4 :                         break;
    8402                 :             :                       }
    8403                 :             :                     default:;
    8404                 :             :                     }
    8405                 :             :                 }
    8406                 :             :               break;
    8407                 :             :             }
    8408                 :         123 :           CASE_CONVERT:
    8409                 :         123 :             {
    8410                 :         123 :               tree _q30 = TREE_OPERAND (_q20, 0);
    8411                 :         123 :               switch (TREE_CODE (_q30))
    8412                 :             :                 {
    8413                 :           0 :                 case RSHIFT_EXPR:
    8414                 :           0 :                   {
    8415                 :           0 :                     tree _q40 = TREE_OPERAND (_q30, 0);
    8416                 :           0 :                     tree _q41 = TREE_OPERAND (_q30, 1);
    8417                 :           0 :                     switch (TREE_CODE (_q41))
    8418                 :             :                       {
    8419                 :           0 :                       case INTEGER_CST:
    8420                 :           0 :                         {
    8421                 :           0 :                           if ((_p1 == _q41 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q41, 0) && types_match (_p1, _q41)))
    8422                 :             :                             {
    8423                 :           0 :                               {
    8424                 :           0 :                                 tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q40, _q41 };
    8425                 :           0 :                                 if (wi::ltu_p (wi::to_wide (captures[2]), element_precision (type))
    8426                 :           0 :  && INTEGRAL_TYPE_P (type)
    8427                 :           0 :  && INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
    8428                 :           0 :  && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
    8429                 :           0 :  && TYPE_PRECISION (type) == TYPE_PRECISION (TREE_TYPE (captures[1]))
    8430                 :           0 :  && (TYPE_PRECISION (TREE_TYPE (captures[0])) >= TYPE_PRECISION (type)
    8431                 :           0 :  || wi::geu_p (wi::to_wide (captures[2]),
    8432                 :           0 :  TYPE_PRECISION (type)
    8433                 :           0 :  - TYPE_PRECISION (TREE_TYPE (captures[0]))))
    8434                 :             : )
    8435                 :             :                                   {
    8436                 :           0 :                                     if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1618;
    8437                 :           0 :                                     {
    8438                 :           0 :                                       tree res_op0;
    8439                 :           0 :                                       {
    8440                 :           0 :                                         tree _o1[1], _r1;
    8441                 :           0 :                                         _o1[0] = captures[1];
    8442                 :           0 :                                         if (TREE_TYPE (_o1[0]) != type)
    8443                 :             :                                           {
    8444                 :           0 :                                             _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
    8445                 :             :                                           }
    8446                 :             :                                         else
    8447                 :             :                                           _r1 = _o1[0];
    8448                 :           0 :                                         res_op0 = _r1;
    8449                 :             :                                       }
    8450                 :           0 :                                       tree res_op1;
    8451                 :           0 :                                       {
    8452                 :           0 :                                         tree _o1[2], _r1;
    8453                 :           0 :                                         _o1[0] =  build_minus_one_cst (type);
    8454                 :           0 :                                         _o1[1] = captures[2];
    8455                 :           0 :                                         _r1 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    8456                 :           0 :                                         res_op1 = _r1;
    8457                 :             :                                       }
    8458                 :           0 :                                       tree _r;
    8459                 :           0 :                                       _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
    8460                 :           0 :                                       if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 969, __FILE__, __LINE__, true);
    8461                 :           0 :                                       return _r;
    8462                 :             :                                     }
    8463                 :           0 : next_after_fail1618:;
    8464                 :             :                                   }
    8465                 :             :                               }
    8466                 :             :                             }
    8467                 :             :                           break;
    8468                 :             :                         }
    8469                 :             :                       default:;
    8470                 :             :                       }
    8471                 :             :                     break;
    8472                 :             :                   }
    8473                 :             :                 default:;
    8474                 :             :                 }
    8475                 :             :               break;
    8476                 :             :             }
    8477                 :             :           default:;
    8478                 :             :           }
    8479                 :             :         break;
    8480                 :             :       }
    8481                 :       20654 :     case RSHIFT_EXPR:
    8482                 :       20654 :       {
    8483                 :       20654 :         tree _q20 = TREE_OPERAND (_p0, 0);
    8484                 :       20654 :         tree _q21 = TREE_OPERAND (_p0, 1);
    8485                 :       20654 :         switch (TREE_CODE (_q21))
    8486                 :             :           {
    8487                 :          48 :           case INTEGER_CST:
    8488                 :          48 :             {
    8489                 :          48 :               if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
    8490                 :             :                 {
    8491                 :           3 :                   {
    8492                 :           3 :                     tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
    8493                 :           3 :                     tree res = generic_simplify_406 (loc, type, _p0, _p1, captures);
    8494                 :           3 :                     if (res) return res;
    8495                 :             :                   }
    8496                 :             :                 }
    8497                 :             :               break;
    8498                 :             :             }
    8499                 :             :           default:;
    8500                 :             :           }
    8501                 :             :         break;
    8502                 :             :       }
    8503                 :     1263540 :     default:;
    8504                 :             :     }
    8505                 :     1263540 : {
    8506                 :     1263540 :   tree _p0_pops[1];
    8507                 :     1263540 :   if (tree_nop_convert (_p0, _p0_pops))
    8508                 :             :     {
    8509                 :      652851 :       tree _q20 = _p0_pops[0];
    8510                 :      652851 :       switch (TREE_CODE (_q20))
    8511                 :             :         {
    8512                 :          73 :         case RSHIFT_EXPR:
    8513                 :          73 :           {
    8514                 :          73 :             tree _q30 = TREE_OPERAND (_q20, 0);
    8515                 :          73 :             tree _q31 = TREE_OPERAND (_q20, 1);
    8516                 :          73 :             switch (TREE_CODE (_q31))
    8517                 :             :               {
    8518                 :          67 :               case INTEGER_CST:
    8519                 :          67 :                 {
    8520                 :          67 :                   if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
    8521                 :             :                     {
    8522                 :           8 :                       {
    8523                 :           8 :                         tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
    8524                 :           8 :                         tree res = generic_simplify_406 (loc, type, _p0, _p1, captures);
    8525                 :           8 :                         if (res) return res;
    8526                 :             :                       }
    8527                 :             :                     }
    8528                 :             :                   break;
    8529                 :             :                 }
    8530                 :             :               default:;
    8531                 :             :               }
    8532                 :             :             break;
    8533                 :             :           }
    8534                 :             :         default:;
    8535                 :             :         }
    8536                 :             :     }
    8537                 :             : }
    8538                 :     1263532 : if (integer_onep (_p0))
    8539                 :             :   {
    8540                 :      343064 :     switch (TREE_CODE (_p1))
    8541                 :             :       {
    8542                 :       53696 :       case MINUS_EXPR:
    8543                 :       53696 :         {
    8544                 :       53696 :           tree _q30 = TREE_OPERAND (_p1, 0);
    8545                 :       53696 :           tree _q31 = TREE_OPERAND (_p1, 1);
    8546                 :       53696 :           switch (TREE_CODE (_q30))
    8547                 :             :             {
    8548                 :       53693 :             case INTEGER_CST:
    8549                 :       53693 :               {
    8550                 :       53693 :                 {
    8551                 :       53693 :                   tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31 };
    8552                 :       53693 :                   if (INTEGRAL_TYPE_P (type)
    8553                 :       53693 :  && wi::eq_p (wi::to_wide (captures[2]), TYPE_PRECISION (type) - 1)
    8554                 :       53693 :  && single_use (captures[1])
    8555                 :             : )
    8556                 :             :                     {
    8557                 :       30618 :                       if (TYPE_UNSIGNED (type)
    8558                 :             : )
    8559                 :             :                         {
    8560                 :       30612 :                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1619;
    8561                 :       30612 :                           {
    8562                 :       30612 :                             tree res_op0;
    8563                 :       30612 :                             {
    8564                 :       30612 :                               tree _o1[2], _r1;
    8565                 :       30612 :                               _o1[0] = captures[0];
    8566                 :       30612 :                               _o1[1] = captures[2];
    8567                 :       30612 :                               _r1 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    8568                 :       30612 :                               res_op0 = _r1;
    8569                 :             :                             }
    8570                 :       30612 :                             tree res_op1;
    8571                 :       30612 :                             res_op1 = captures[3];
    8572                 :       30612 :                             tree _r;
    8573                 :       30612 :                             _r = fold_build2_loc (loc, RSHIFT_EXPR, type, res_op0, res_op1);
    8574                 :       30612 :                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 970, __FILE__, __LINE__, true);
    8575                 :       30612 :                             return _r;
    8576                 :             :                           }
    8577                 :           0 : next_after_fail1619:;
    8578                 :             :                         }
    8579                 :             :                       else
    8580                 :             :                         {
    8581                 :           6 :                           {
    8582                 :           6 :  tree utype = unsigned_type_for (type);
    8583                 :           6 :                               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1620;
    8584                 :           6 :                               {
    8585                 :           6 :                                 tree res_op0;
    8586                 :           6 :                                 {
    8587                 :           6 :                                   tree _o1[2], _r1;
    8588                 :           6 :                                   {
    8589                 :           6 :                                     tree _o2[2], _r2;
    8590                 :           6 :                                     {
    8591                 :           6 :                                       tree _o3[1], _r3;
    8592                 :           6 :                                       _o3[0] = captures[0];
    8593                 :           6 :                                       if (TREE_TYPE (_o3[0]) != utype)
    8594                 :             :                                         {
    8595                 :           6 :                                           _r3 = fold_build1_loc (loc, NOP_EXPR, utype, _o3[0]);
    8596                 :             :                                         }
    8597                 :             :                                       else
    8598                 :             :                                         _r3 = _o3[0];
    8599                 :           6 :                                       _o2[0] = _r3;
    8600                 :             :                                     }
    8601                 :           6 :                                     _o2[1] = captures[2];
    8602                 :           6 :                                     _r2 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
    8603                 :           6 :                                     _o1[0] = _r2;
    8604                 :             :                                   }
    8605                 :           6 :                                   _o1[1] = captures[3];
    8606                 :           6 :                                   _r1 = fold_build2_loc (loc, RSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    8607                 :           6 :                                   res_op0 = _r1;
    8608                 :             :                                 }
    8609                 :           6 :                                 tree _r;
    8610                 :           6 :                                 _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
    8611                 :           6 :                                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 971, __FILE__, __LINE__, true);
    8612                 :           6 :                                 return _r;
    8613                 :             :                               }
    8614                 :           0 : next_after_fail1620:;
    8615                 :             :                           }
    8616                 :             :                         }
    8617                 :             :                     }
    8618                 :             :                 }
    8619                 :       23075 :                 break;
    8620                 :             :               }
    8621                 :             :             default:;
    8622                 :             :             }
    8623                 :             :           break;
    8624                 :             :         }
    8625                 :             :       default:;
    8626                 :             :       }
    8627                 :             :   }
    8628                 :     1232914 :   if (integer_zerop (_p1))
    8629                 :             :     {
    8630                 :        1046 :       {
    8631                 :        1046 :         tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
    8632                 :        1046 :         tree res = generic_simplify_407 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
    8633                 :        1046 :         if (res) return res;
    8634                 :             :       }
    8635                 :             :     }
    8636                 :     1231868 :   if (integer_zerop (_p0))
    8637                 :             :     {
    8638                 :         178 :       {
    8639                 :         178 :         tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    8640                 :         178 :         tree res = generic_simplify_408 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
    8641                 :         178 :         if (res) return res;
    8642                 :             :       }
    8643                 :             :     }
    8644                 :     1231690 :   switch (TREE_CODE (_p1))
    8645                 :             :     {
    8646                 :           0 :     case VECTOR_CST:
    8647                 :           0 :       {
    8648                 :           0 :         {
    8649                 :           0 :           tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    8650                 :           0 :           tree res = generic_simplify_409 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
    8651                 :           0 :           if (res) return res;
    8652                 :             :         }
    8653                 :           0 :         break;
    8654                 :             :       }
    8655                 :           0 :     case CONSTRUCTOR:
    8656                 :           0 :       {
    8657                 :           0 :         {
    8658                 :           0 :           tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    8659                 :           0 :           tree res = generic_simplify_410 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
    8660                 :           0 :           if (res) return res;
    8661                 :             :         }
    8662                 :           0 :         break;
    8663                 :             :       }
    8664                 :     1231690 :     default:;
    8665                 :             :     }
    8666                 :     1231690 :   switch (TREE_CODE (_p0))
    8667                 :             :     {
    8668                 :         280 :     case LSHIFT_EXPR:
    8669                 :         280 :       {
    8670                 :         280 :         tree _q20 = TREE_OPERAND (_p0, 0);
    8671                 :         280 :         tree _q21 = TREE_OPERAND (_p0, 1);
    8672                 :         280 :         switch (TREE_CODE (_q21))
    8673                 :             :           {
    8674                 :          39 :           case INTEGER_CST:
    8675                 :          39 :             {
    8676                 :          39 :               switch (TREE_CODE (_p1))
    8677                 :             :                 {
    8678                 :          39 :                 case INTEGER_CST:
    8679                 :          39 :                   {
    8680                 :          39 :                     {
    8681                 :          39 :                       tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
    8682                 :          39 :                       tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
    8683                 :          39 :                       if (res) return res;
    8684                 :             :                     }
    8685                 :           0 :                     break;
    8686                 :             :                   }
    8687                 :             :                 default:;
    8688                 :             :                 }
    8689                 :             :               break;
    8690                 :             :             }
    8691                 :             :           default:;
    8692                 :             :           }
    8693                 :             :         break;
    8694                 :             :       }
    8695                 :      686780 :     CASE_CONVERT:
    8696                 :      686780 :       {
    8697                 :      686780 :         tree _q20 = TREE_OPERAND (_p0, 0);
    8698                 :      686780 :         switch (TREE_CODE (_q20))
    8699                 :             :           {
    8700                 :           0 :           case BIT_AND_EXPR:
    8701                 :           0 :             {
    8702                 :           0 :               tree _q30 = TREE_OPERAND (_q20, 0);
    8703                 :           0 :               tree _q31 = TREE_OPERAND (_q20, 1);
    8704                 :           0 :               switch (TREE_CODE (_q31))
    8705                 :             :                 {
    8706                 :           0 :                 case INTEGER_CST:
    8707                 :           0 :                   {
    8708                 :           0 :                     switch (TREE_CODE (_p1))
    8709                 :             :                       {
    8710                 :           0 :                       case INTEGER_CST:
    8711                 :           0 :                         {
    8712                 :           0 :                           {
    8713                 :           0 :                             tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1 };
    8714                 :           0 :                             tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LSHIFT_EXPR);
    8715                 :           0 :                             if (res) return res;
    8716                 :             :                           }
    8717                 :           0 :                           break;
    8718                 :             :                         }
    8719                 :             :                       default:;
    8720                 :             :                       }
    8721                 :             :                     break;
    8722                 :             :                   }
    8723                 :             :                 default:;
    8724                 :             :                 }
    8725                 :             :               break;
    8726                 :             :             }
    8727                 :          11 :           case BIT_XOR_EXPR:
    8728                 :          11 :             {
    8729                 :          11 :               tree _q30 = TREE_OPERAND (_q20, 0);
    8730                 :          11 :               tree _q31 = TREE_OPERAND (_q20, 1);
    8731                 :          11 :               switch (TREE_CODE (_q31))
    8732                 :             :                 {
    8733                 :           0 :                 case INTEGER_CST:
    8734                 :           0 :                   {
    8735                 :           0 :                     switch (TREE_CODE (_p1))
    8736                 :             :                       {
    8737                 :           0 :                       case INTEGER_CST:
    8738                 :           0 :                         {
    8739                 :           0 :                           {
    8740                 :           0 :                             tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1 };
    8741                 :           0 :                             tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, LSHIFT_EXPR);
    8742                 :           0 :                             if (res) return res;
    8743                 :             :                           }
    8744                 :           0 :                           break;
    8745                 :             :                         }
    8746                 :             :                       default:;
    8747                 :             :                       }
    8748                 :             :                     break;
    8749                 :             :                   }
    8750                 :             :                 default:;
    8751                 :             :                 }
    8752                 :             :               break;
    8753                 :             :             }
    8754                 :          18 :           case BIT_IOR_EXPR:
    8755                 :          18 :             {
    8756                 :          18 :               tree _q30 = TREE_OPERAND (_q20, 0);
    8757                 :          18 :               tree _q31 = TREE_OPERAND (_q20, 1);
    8758                 :          18 :               switch (TREE_CODE (_q31))
    8759                 :             :                 {
    8760                 :          11 :                 case INTEGER_CST:
    8761                 :          11 :                   {
    8762                 :          11 :                     switch (TREE_CODE (_p1))
    8763                 :             :                       {
    8764                 :          11 :                       case INTEGER_CST:
    8765                 :          11 :                         {
    8766                 :          11 :                           {
    8767                 :          11 :                             tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1 };
    8768                 :          11 :                             tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, LSHIFT_EXPR);
    8769                 :          11 :                             if (res) return res;
    8770                 :             :                           }
    8771                 :           2 :                           break;
    8772                 :             :                         }
    8773                 :             :                       default:;
    8774                 :             :                       }
    8775                 :             :                     break;
    8776                 :             :                   }
    8777                 :             :                 default:;
    8778                 :             :                 }
    8779                 :             :               break;
    8780                 :             :             }
    8781                 :             :           default:;
    8782                 :             :           }
    8783                 :             :         break;
    8784                 :             :       }
    8785                 :       15416 :     case BIT_AND_EXPR:
    8786                 :       15416 :       {
    8787                 :       15416 :         tree _q20 = TREE_OPERAND (_p0, 0);
    8788                 :       15416 :         tree _q21 = TREE_OPERAND (_p0, 1);
    8789                 :       15416 :         switch (TREE_CODE (_q21))
    8790                 :             :           {
    8791                 :       15321 :           case INTEGER_CST:
    8792                 :       15321 :             {
    8793                 :       15321 :               switch (TREE_CODE (_p1))
    8794                 :             :                 {
    8795                 :       15182 :                 case INTEGER_CST:
    8796                 :       15182 :                   {
    8797                 :       15182 :                     {
    8798                 :       15182 :                       tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1 };
    8799                 :       15182 :                       tree res = generic_simplify_413 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LSHIFT_EXPR);
    8800                 :       15182 :                       if (res) return res;
    8801                 :             :                     }
    8802                 :           7 :                     break;
    8803                 :             :                   }
    8804                 :             :                 default:;
    8805                 :             :                 }
    8806                 :             :               break;
    8807                 :             :             }
    8808                 :             :           default:;
    8809                 :             :           }
    8810                 :             :         break;
    8811                 :             :       }
    8812                 :          69 :     case BIT_XOR_EXPR:
    8813                 :          69 :       {
    8814                 :          69 :         tree _q20 = TREE_OPERAND (_p0, 0);
    8815                 :          69 :         tree _q21 = TREE_OPERAND (_p0, 1);
    8816                 :          69 :         switch (TREE_CODE (_q21))
    8817                 :             :           {
    8818                 :           0 :           case INTEGER_CST:
    8819                 :           0 :             {
    8820                 :           0 :               switch (TREE_CODE (_p1))
    8821                 :             :                 {
    8822                 :           0 :                 case INTEGER_CST:
    8823                 :           0 :                   {
    8824                 :           0 :                     {
    8825                 :           0 :                       tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1 };
    8826                 :           0 :                       tree res = generic_simplify_413 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, LSHIFT_EXPR);
    8827                 :           0 :                       if (res) return res;
    8828                 :             :                     }
    8829                 :           0 :                     break;
    8830                 :             :                   }
    8831                 :             :                 default:;
    8832                 :             :                 }
    8833                 :             :               break;
    8834                 :             :             }
    8835                 :             :           default:;
    8836                 :             :           }
    8837                 :             :         break;
    8838                 :             :       }
    8839                 :          78 :     case BIT_IOR_EXPR:
    8840                 :          78 :       {
    8841                 :          78 :         tree _q20 = TREE_OPERAND (_p0, 0);
    8842                 :          78 :         tree _q21 = TREE_OPERAND (_p0, 1);
    8843                 :          78 :         switch (TREE_CODE (_q21))
    8844                 :             :           {
    8845                 :           2 :           case INTEGER_CST:
    8846                 :           2 :             {
    8847                 :           2 :               switch (TREE_CODE (_p1))
    8848                 :             :                 {
    8849                 :           2 :                 case INTEGER_CST:
    8850                 :           2 :                   {
    8851                 :           2 :                     {
    8852                 :           2 :                       tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1 };
    8853                 :           2 :                       tree res = generic_simplify_413 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, LSHIFT_EXPR);
    8854                 :           2 :                       if (res) return res;
    8855                 :             :                     }
    8856                 :           0 :                     break;
    8857                 :             :                   }
    8858                 :             :                 default:;
    8859                 :             :                 }
    8860                 :             :               break;
    8861                 :             :             }
    8862                 :             :           default:;
    8863                 :             :           }
    8864                 :             :         break;
    8865                 :             :       }
    8866                 :           1 :     case VEC_COND_EXPR:
    8867                 :           1 :       {
    8868                 :           1 :         tree _q20 = TREE_OPERAND (_p0, 0);
    8869                 :           1 :         tree _q21 = TREE_OPERAND (_p0, 1);
    8870                 :           1 :         tree _q22 = TREE_OPERAND (_p0, 2);
    8871                 :           1 :         switch (TREE_CODE (_p1))
    8872                 :             :           {
    8873                 :           0 :           case VEC_COND_EXPR:
    8874                 :           0 :             {
    8875                 :           0 :               tree _q60 = TREE_OPERAND (_p1, 0);
    8876                 :           0 :               tree _q61 = TREE_OPERAND (_p1, 1);
    8877                 :           0 :               tree _q62 = TREE_OPERAND (_p1, 2);
    8878                 :           0 :               if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
    8879                 :             :                 {
    8880                 :           0 :                   {
    8881                 :           0 :                     tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
    8882                 :           0 :                     if (VECTOR_TYPE_P (type)
    8883                 :           0 :  && (TREE_CODE_CLASS (LSHIFT_EXPR) != tcc_comparison
    8884                 :             :  || types_match (type, TREE_TYPE (captures[2]))
    8885                 :             :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
    8886                 :             :  || (optimize_vectors_before_lowering_p ()
    8887                 :             :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
    8888                 :             : )
    8889                 :             :                       {
    8890                 :           0 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1621;
    8891                 :           0 :                         {
    8892                 :           0 :                           tree res_op0;
    8893                 :           0 :                           res_op0 = captures[1];
    8894                 :           0 :                           tree res_op1;
    8895                 :           0 :                           {
    8896                 :           0 :                             tree _o1[2], _r1;
    8897                 :           0 :                             _o1[0] = captures[2];
    8898                 :           0 :                             _o1[1] = captures[5];
    8899                 :           0 :                             _r1 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    8900                 :           0 :                             if (EXPR_P (_r1))
    8901                 :           0 :                               goto next_after_fail1621;
    8902                 :           0 :                             res_op1 = _r1;
    8903                 :             :                           }
    8904                 :           0 :                           tree res_op2;
    8905                 :           0 :                           {
    8906                 :           0 :                             tree _o1[2], _r1;
    8907                 :           0 :                             _o1[0] = captures[3];
    8908                 :           0 :                             _o1[1] = captures[6];
    8909                 :           0 :                             _r1 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    8910                 :           0 :                             if (EXPR_P (_r1))
    8911                 :           0 :                               goto next_after_fail1621;
    8912                 :           0 :                             res_op2 = _r1;
    8913                 :             :                           }
    8914                 :           0 :                           tree _r;
    8915                 :           0 :                           _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    8916                 :           0 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 857, __FILE__, __LINE__, true);
    8917                 :           0 :                           return _r;
    8918                 :             :                         }
    8919                 :           0 : next_after_fail1621:;
    8920                 :             :                       }
    8921                 :             :                   }
    8922                 :             :                 }
    8923                 :             :               break;
    8924                 :             :             }
    8925                 :           1 :           default:;
    8926                 :             :           }
    8927                 :           1 :         {
    8928                 :           1 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
    8929                 :           1 :           if (VECTOR_TYPE_P (type)
    8930                 :           1 :  && (TREE_CODE_CLASS (LSHIFT_EXPR) != tcc_comparison
    8931                 :             :  || types_match (type, TREE_TYPE (captures[2]))
    8932                 :             :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
    8933                 :             :  || (optimize_vectors_before_lowering_p ()
    8934                 :             :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
    8935                 :             : )
    8936                 :             :             {
    8937                 :           1 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1622;
    8938                 :           1 :               {
    8939                 :           1 :                 if (! tree_invariant_p (captures[4])) goto next_after_fail1622;
    8940                 :           0 :                 tree res_op0;
    8941                 :           0 :                 res_op0 = captures[1];
    8942                 :           0 :                 tree res_op1;
    8943                 :           0 :                 {
    8944                 :           0 :                   tree _o1[2], _r1;
    8945                 :           0 :                   _o1[0] = captures[2];
    8946                 :           0 :                   _o1[1] = unshare_expr (captures[4]);
    8947                 :           0 :                   _r1 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    8948                 :           0 :                   if (EXPR_P (_r1))
    8949                 :           0 :                     goto next_after_fail1622;
    8950                 :           0 :                   res_op1 = _r1;
    8951                 :             :                 }
    8952                 :           0 :                 tree res_op2;
    8953                 :           0 :                 {
    8954                 :           0 :                   tree _o1[2], _r1;
    8955                 :           0 :                   _o1[0] = captures[3];
    8956                 :           0 :                   _o1[1] = captures[4];
    8957                 :           0 :                   _r1 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    8958                 :           0 :                   if (EXPR_P (_r1))
    8959                 :           0 :                     goto next_after_fail1622;
    8960                 :           0 :                   res_op2 = _r1;
    8961                 :             :                 }
    8962                 :           0 :                 tree _r;
    8963                 :           0 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    8964                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 858, __FILE__, __LINE__, true);
    8965                 :           0 :                 return _r;
    8966                 :             :               }
    8967                 :           1 : next_after_fail1622:;
    8968                 :             :             }
    8969                 :             :         }
    8970                 :           1 :         break;
    8971                 :             :       }
    8972                 :     1216465 :     default:;
    8973                 :             :     }
    8974                 :     1216465 :   switch (TREE_CODE (_p1))
    8975                 :             :     {
    8976                 :           3 :     case VEC_COND_EXPR:
    8977                 :           3 :       {
    8978                 :           3 :         tree _q30 = TREE_OPERAND (_p1, 0);
    8979                 :           3 :         tree _q31 = TREE_OPERAND (_p1, 1);
    8980                 :           3 :         tree _q32 = TREE_OPERAND (_p1, 2);
    8981                 :           3 :         {
    8982                 :           3 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
    8983                 :           3 :           if (VECTOR_TYPE_P (type)
    8984                 :           3 :  && (TREE_CODE_CLASS (LSHIFT_EXPR) != tcc_comparison
    8985                 :             :  || types_match (type, TREE_TYPE (captures[3]))
    8986                 :             :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
    8987                 :             :  || (optimize_vectors_before_lowering_p ()
    8988                 :             :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
    8989                 :             : )
    8990                 :             :             {
    8991                 :           3 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1623;
    8992                 :           3 :               {
    8993                 :           3 :                 if (! tree_invariant_p (captures[0])) goto next_after_fail1623;
    8994                 :           1 :                 tree res_op0;
    8995                 :           1 :                 res_op0 = captures[2];
    8996                 :           1 :                 tree res_op1;
    8997                 :           1 :                 {
    8998                 :           1 :                   tree _o1[2], _r1;
    8999                 :           1 :                   _o1[0] = unshare_expr (captures[0]);
    9000                 :           1 :                   _o1[1] = captures[3];
    9001                 :           1 :                   _r1 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    9002                 :           1 :                   if (EXPR_P (_r1))
    9003                 :           0 :                     goto next_after_fail1623;
    9004                 :           1 :                   res_op1 = _r1;
    9005                 :             :                 }
    9006                 :           1 :                 tree res_op2;
    9007                 :           1 :                 {
    9008                 :           1 :                   tree _o1[2], _r1;
    9009                 :           1 :                   _o1[0] = captures[0];
    9010                 :           1 :                   _o1[1] = captures[4];
    9011                 :           1 :                   _r1 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    9012                 :           1 :                   if (EXPR_P (_r1))
    9013                 :           0 :                     goto next_after_fail1623;
    9014                 :           1 :                   res_op2 = _r1;
    9015                 :             :                 }
    9016                 :           1 :                 tree _r;
    9017                 :           1 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    9018                 :           1 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 859, __FILE__, __LINE__, true);
    9019                 :           1 :                 return _r;
    9020                 :             :               }
    9021                 :           2 : next_after_fail1623:;
    9022                 :             :             }
    9023                 :             :         }
    9024                 :           2 :         break;
    9025                 :             :       }
    9026                 :     1216464 :     default:;
    9027                 :             :     }
    9028                 :     1216464 :   switch (TREE_CODE (_p0))
    9029                 :             :     {
    9030                 :           0 :     case VEC_PERM_EXPR:
    9031                 :           0 :       {
    9032                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
    9033                 :           0 :         tree _q21 = TREE_OPERAND (_p0, 1);
    9034                 :           0 :         tree _q22 = TREE_OPERAND (_p0, 2);
    9035                 :           0 :         if ((_q21 == _q20 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q20, 0) && types_match (_q21, _q20)))
    9036                 :             :           {
    9037                 :           0 :             switch (TREE_CODE (_p1))
    9038                 :             :               {
    9039                 :           0 :               case VEC_PERM_EXPR:
    9040                 :           0 :                 {
    9041                 :           0 :                   tree _q60 = TREE_OPERAND (_p1, 0);
    9042                 :           0 :                   tree _q61 = TREE_OPERAND (_p1, 1);
    9043                 :           0 :                   tree _q62 = TREE_OPERAND (_p1, 2);
    9044                 :           0 :                   if ((_q61 == _q60 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q60, 0) && types_match (_q61, _q60)))
    9045                 :             :                     {
    9046                 :           0 :                       if ((_q62 == _q22 && ! TREE_SIDE_EFFECTS (_q62)) || (operand_equal_p (_q62, _q22, 0) && types_match (_q62, _q22)))
    9047                 :             :                         {
    9048                 :           0 :                           {
    9049                 :           0 :                             tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q22, _q60 };
    9050                 :           0 :                             if (VECTOR_INTEGER_TYPE_P (type)
    9051                 :             : )
    9052                 :             :                               {
    9053                 :           0 :                                 if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1624;
    9054                 :           0 :                                 {
    9055                 :           0 :                                   tree res_op0;
    9056                 :           0 :                                   {
    9057                 :           0 :                                     tree _o1[2], _r1;
    9058                 :           0 :                                     _o1[0] = captures[0];
    9059                 :           0 :                                     _o1[1] = captures[2];
    9060                 :           0 :                                     _r1 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    9061                 :           0 :                                     captures[3] = _r1;
    9062                 :             :                                   }
    9063                 :           0 :                                   res_op0 = unshare_expr (captures[3]);
    9064                 :           0 :                                   tree res_op1;
    9065                 :           0 :                                   res_op1 = captures[3];
    9066                 :           0 :                                   tree res_op2;
    9067                 :           0 :                                   res_op2 = captures[1];
    9068                 :           0 :                                   tree _r;
    9069                 :           0 :                                   _r = fold_build3_loc (loc, VEC_PERM_EXPR, type, res_op0, res_op1, res_op2);
    9070                 :           0 :                                   if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 860, __FILE__, __LINE__, true);
    9071                 :           0 :                                   return _r;
    9072                 :             :                                 }
    9073                 :           0 : next_after_fail1624:;
    9074                 :             :                               }
    9075                 :             :                           }
    9076                 :             :                         }
    9077                 :             :                     }
    9078                 :             :                   break;
    9079                 :             :                 }
    9080                 :             :               default:;
    9081                 :             :               }
    9082                 :             :           }
    9083                 :             :         break;
    9084                 :             :       }
    9085                 :             :     default:;
    9086                 :             :     }
    9087                 :             :   return NULL_TREE;
    9088                 :             : }
    9089                 :             : 
    9090                 :             : tree
    9091                 :       84706 : generic_simplify_MIN_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
    9092                 :             : {
    9093                 :       84706 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    9094                 :       84706 :   if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
    9095                 :             :     {
    9096                 :           0 :       {
    9097                 :           0 :         tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
    9098                 :           0 :         tree res = generic_simplify_505 (loc, type, _p0, _p1, captures, MIN_EXPR);
    9099                 :           0 :         if (res) return res;
    9100                 :             :       }
    9101                 :             :     }
    9102                 :       84706 :   switch (TREE_CODE (_p0))
    9103                 :             :     {
    9104                 :           4 :     case MIN_EXPR:
    9105                 :           4 :       {
    9106                 :           4 :         tree _q20 = TREE_OPERAND (_p0, 0);
    9107                 :           4 :         tree _q21 = TREE_OPERAND (_p0, 1);
    9108                 :           4 :         if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
    9109                 :             :           {
    9110                 :           0 :             {
    9111                 :           0 :               tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
    9112                 :           0 :               tree res = generic_simplify_506 (loc, type, _p0, _p1, captures, MIN_EXPR);
    9113                 :           0 :               if (res) return res;
    9114                 :             :             }
    9115                 :             :           }
    9116                 :           4 :         if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
    9117                 :             :           {
    9118                 :           0 :             {
    9119                 :           0 :               tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
    9120                 :           0 :               tree res = generic_simplify_506 (loc, type, _p0, _p1, captures, MIN_EXPR);
    9121                 :           0 :               if (res) return res;
    9122                 :             :             }
    9123                 :             :           }
    9124                 :             :         break;
    9125                 :             :       }
    9126                 :       84706 :     default:;
    9127                 :             :     }
    9128                 :       84706 :   switch (TREE_CODE (_p1))
    9129                 :             :     {
    9130                 :           0 :     case MIN_EXPR:
    9131                 :           0 :       {
    9132                 :           0 :         tree _q30 = TREE_OPERAND (_p1, 0);
    9133                 :           0 :         tree _q31 = TREE_OPERAND (_p1, 1);
    9134                 :           0 :         if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
    9135                 :             :           {
    9136                 :           0 :             {
    9137                 :           0 :               tree captures[3] ATTRIBUTE_UNUSED = { _p1, _p0, _q31 };
    9138                 :           0 :               tree res = generic_simplify_507 (loc, type, _p0, _p1, captures, MIN_EXPR);
    9139                 :           0 :               if (res) return res;
    9140                 :             :             }
    9141                 :             :           }
    9142                 :           0 :         if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
    9143                 :             :           {
    9144                 :           0 :             {
    9145                 :           0 :               tree captures[3] ATTRIBUTE_UNUSED = { _p1, _p0, _q30 };
    9146                 :           0 :               tree res = generic_simplify_507 (loc, type, _p0, _p1, captures, MIN_EXPR);
    9147                 :           0 :               if (res) return res;
    9148                 :             :             }
    9149                 :             :           }
    9150                 :             :         break;
    9151                 :             :       }
    9152                 :       84706 :     default:;
    9153                 :             :     }
    9154                 :       84706 :   switch (TREE_CODE (_p0))
    9155                 :             :     {
    9156                 :           4 :     case MAX_EXPR:
    9157                 :           4 :       {
    9158                 :           4 :         tree _q20 = TREE_OPERAND (_p0, 0);
    9159                 :           4 :         tree _q21 = TREE_OPERAND (_p0, 1);
    9160                 :           4 :         if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
    9161                 :             :           {
    9162                 :           3 :             {
    9163                 :           3 :               tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
    9164                 :           3 :               tree res = generic_simplify_508 (loc, type, _p0, _p1, captures);
    9165                 :           3 :               if (res) return res;
    9166                 :             :             }
    9167                 :             :           }
    9168                 :           1 :         if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
    9169                 :             :           {
    9170                 :           1 :             {
    9171                 :           1 :               tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
    9172                 :           1 :               tree res = generic_simplify_508 (loc, type, _p0, _p1, captures);
    9173                 :           1 :               if (res) return res;
    9174                 :             :             }
    9175                 :             :           }
    9176                 :             :         break;
    9177                 :             :       }
    9178                 :       84702 :     default:;
    9179                 :             :     }
    9180                 :       84702 :   switch (TREE_CODE (_p1))
    9181                 :             :     {
    9182                 :           0 :     case MAX_EXPR:
    9183                 :           0 :       {
    9184                 :           0 :         tree _q30 = TREE_OPERAND (_p1, 0);
    9185                 :           0 :         tree _q31 = TREE_OPERAND (_p1, 1);
    9186                 :           0 :         if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
    9187                 :             :           {
    9188                 :           0 :             {
    9189                 :           0 :               tree captures[2] ATTRIBUTE_UNUSED = { _q30, _p0 };
    9190                 :           0 :               tree res = generic_simplify_508 (loc, type, _p0, _p1, captures);
    9191                 :           0 :               if (res) return res;
    9192                 :             :             }
    9193                 :             :           }
    9194                 :           0 :         if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
    9195                 :             :           {
    9196                 :           0 :             {
    9197                 :           0 :               tree captures[2] ATTRIBUTE_UNUSED = { _q31, _p0 };
    9198                 :           0 :               tree res = generic_simplify_508 (loc, type, _p0, _p1, captures);
    9199                 :           0 :               if (res) return res;
    9200                 :             :             }
    9201                 :             :           }
    9202                 :             :         break;
    9203                 :             :       }
    9204                 :           0 :     case NEGATE_EXPR:
    9205                 :           0 :       {
    9206                 :           0 :         tree _q30 = TREE_OPERAND (_p1, 0);
    9207                 :           0 :         if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
    9208                 :             :           {
    9209                 :           0 :             {
    9210                 :           0 :               tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
    9211                 :           0 :               tree res = generic_simplify_509 (loc, type, _p0, _p1, captures);
    9212                 :           0 :               if (res) return res;
    9213                 :             :             }
    9214                 :             :           }
    9215                 :             :         break;
    9216                 :             :       }
    9217                 :       84702 :     default:;
    9218                 :             :     }
    9219                 :       84702 :   switch (TREE_CODE (_p0))
    9220                 :             :     {
    9221                 :           2 :     case NEGATE_EXPR:
    9222                 :           2 :       {
    9223                 :           2 :         tree _q20 = TREE_OPERAND (_p0, 0);
    9224                 :           2 :         if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
    9225                 :             :           {
    9226                 :           2 :             {
    9227                 :           2 :               tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
    9228                 :           2 :               tree res = generic_simplify_509 (loc, type, _p0, _p1, captures);
    9229                 :           2 :               if (res) return res;
    9230                 :             :             }
    9231                 :             :           }
    9232                 :             :         break;
    9233                 :             :       }
    9234                 :       84700 :     default:;
    9235                 :             :     }
    9236                 :       84700 :   {
    9237                 :       84700 :     tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    9238                 :       84700 :     if (INTEGRAL_TYPE_P (type)
    9239                 :       82914 :  && TYPE_MIN_VALUE (type)
    9240                 :      167614 :  && operand_equal_p (captures[1], TYPE_MIN_VALUE (type), OEP_ONLY_CONST)
    9241                 :             : )
    9242                 :             :       {
    9243                 :         544 :         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1688;
    9244                 :         544 :         {
    9245                 :         544 :           tree _r;
    9246                 :         544 :           _r = captures[1];
    9247                 :         544 :           if (TREE_SIDE_EFFECTS (captures[0]))
    9248                 :           0 :             _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    9249                 :         544 :           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 986, __FILE__, __LINE__, true);
    9250                 :         544 :           return _r;
    9251                 :             :         }
    9252                 :           0 : next_after_fail1688:;
    9253                 :             :       }
    9254                 :             :     else
    9255                 :             :       {
    9256                 :       84156 :         if (INTEGRAL_TYPE_P (type)
    9257                 :       82370 :  && TYPE_MAX_VALUE (type)
    9258                 :      166526 :  && operand_equal_p (captures[1], TYPE_MAX_VALUE (type), OEP_ONLY_CONST)
    9259                 :             : )
    9260                 :             :           {
    9261                 :           1 :             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1689;
    9262                 :           1 :             {
    9263                 :           1 :               tree _r;
    9264                 :           1 :               _r = captures[0];
    9265                 :           1 :               if (TREE_SIDE_EFFECTS (captures[1]))
    9266                 :           0 :                 _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    9267                 :           1 :               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 987, __FILE__, __LINE__, true);
    9268                 :           1 :               return _r;
    9269                 :             :             }
    9270                 :           0 : next_after_fail1689:;
    9271                 :             :           }
    9272                 :             :       }
    9273                 :             :   }
    9274                 :       84155 :   switch (TREE_CODE (_p1))
    9275                 :             :     {
    9276                 :          22 :     case PLUS_EXPR:
    9277                 :          22 :       {
    9278                 :          22 :         tree _q30 = TREE_OPERAND (_p1, 0);
    9279                 :          22 :         tree _q31 = TREE_OPERAND (_p1, 1);
    9280                 :          22 :         if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
    9281                 :             :           {
    9282                 :           0 :             switch (TREE_CODE (_q31))
    9283                 :             :               {
    9284                 :           0 :               case INTEGER_CST:
    9285                 :           0 :                 {
    9286                 :           0 :                   {
    9287                 :           0 :                     tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q31 };
    9288                 :           0 :                     if (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
    9289                 :             : )
    9290                 :             :                       {
    9291                 :           0 :                         if (tree_int_cst_sgn (captures[2]) > 0
    9292                 :             : )
    9293                 :             :                           {
    9294                 :           0 :                             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1690;
    9295                 :           0 :                             {
    9296                 :           0 :                               tree _r;
    9297                 :           0 :                               _r = captures[0];
    9298                 :           0 :                               if (TREE_SIDE_EFFECTS (captures[2]))
    9299                 :           0 :                                 _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    9300                 :           0 :                               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 988, __FILE__, __LINE__, true);
    9301                 :           0 :                               return _r;
    9302                 :             :                             }
    9303                 :           0 : next_after_fail1690:;
    9304                 :             :                           }
    9305                 :             :                         else
    9306                 :             :                           {
    9307                 :           0 :                             if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1691;
    9308                 :           0 :                             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1691;
    9309                 :           0 :                             {
    9310                 :           0 :                               tree _r;
    9311                 :           0 :                               _r = captures[1];
    9312                 :           0 :                               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 989, __FILE__, __LINE__, true);
    9313                 :           0 :                               return _r;
    9314                 :             :                             }
    9315                 :           0 : next_after_fail1691:;
    9316                 :             :                           }
    9317                 :             :                       }
    9318                 :             :                   }
    9319                 :           0 :                   break;
    9320                 :             :                 }
    9321                 :             :               default:;
    9322                 :             :               }
    9323                 :             :           }
    9324                 :             :         break;
    9325                 :             :       }
    9326                 :       84155 :     default:;
    9327                 :             :     }
    9328                 :       84155 :   switch (TREE_CODE (_p0))
    9329                 :             :     {
    9330                 :        5574 :     case PLUS_EXPR:
    9331                 :        5574 :       {
    9332                 :        5574 :         tree _q20 = TREE_OPERAND (_p0, 0);
    9333                 :        5574 :         tree _q21 = TREE_OPERAND (_p0, 1);
    9334                 :        5574 :         switch (TREE_CODE (_q21))
    9335                 :             :           {
    9336                 :        5445 :           case INTEGER_CST:
    9337                 :        5445 :             {
    9338                 :        5445 :               if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
    9339                 :             :                 {
    9340                 :           0 :                   {
    9341                 :           0 :                     tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p0, _q21 };
    9342                 :           0 :                     if (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
    9343                 :             : )
    9344                 :             :                       {
    9345                 :           0 :                         if (tree_int_cst_sgn (captures[2]) > 0
    9346                 :             : )
    9347                 :             :                           {
    9348                 :           0 :                             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1692;
    9349                 :           0 :                             {
    9350                 :           0 :                               tree _r;
    9351                 :           0 :                               _r = captures[0];
    9352                 :           0 :                               if (TREE_SIDE_EFFECTS (captures[2]))
    9353                 :           0 :                                 _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    9354                 :           0 :                               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 988, __FILE__, __LINE__, true);
    9355                 :           0 :                               return _r;
    9356                 :             :                             }
    9357                 :           0 : next_after_fail1692:;
    9358                 :             :                           }
    9359                 :             :                         else
    9360                 :             :                           {
    9361                 :           0 :                             if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1693;
    9362                 :           0 :                             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1693;
    9363                 :           0 :                             {
    9364                 :           0 :                               tree _r;
    9365                 :           0 :                               _r = captures[1];
    9366                 :           0 :                               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 989, __FILE__, __LINE__, true);
    9367                 :           0 :                               return _r;
    9368                 :             :                             }
    9369                 :           0 : next_after_fail1693:;
    9370                 :             :                           }
    9371                 :             :                       }
    9372                 :             :                   }
    9373                 :             :                 }
    9374                 :             :               break;
    9375                 :             :             }
    9376                 :             :           default:;
    9377                 :             :           }
    9378                 :             :         break;
    9379                 :             :       }
    9380                 :           4 :     case MIN_EXPR:
    9381                 :           4 :       {
    9382                 :           4 :         tree _q20 = TREE_OPERAND (_p0, 0);
    9383                 :           4 :         tree _q21 = TREE_OPERAND (_p0, 1);
    9384                 :           4 :         switch (TREE_CODE (_p1))
    9385                 :             :           {
    9386                 :           0 :           case MAX_EXPR:
    9387                 :           0 :             {
    9388                 :           0 :               tree _q50 = TREE_OPERAND (_p1, 0);
    9389                 :           0 :               tree _q51 = TREE_OPERAND (_p1, 1);
    9390                 :           0 :               if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
    9391                 :             :                 {
    9392                 :           0 :                   if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
    9393                 :             :                     {
    9394                 :           0 :                       {
    9395                 :           0 :                         tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
    9396                 :           0 :                         if (!HONOR_NANS (captures[0])
    9397                 :             : )
    9398                 :             :                           {
    9399                 :           0 :                             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1694;
    9400                 :           0 :                             {
    9401                 :           0 :                               tree res_op0;
    9402                 :           0 :                               res_op0 = captures[0];
    9403                 :           0 :                               tree res_op1;
    9404                 :           0 :                               res_op1 = captures[1];
    9405                 :           0 :                               tree _r;
    9406                 :           0 :                               _r = fold_build2_loc (loc, MIN_EXPR, type, res_op0, res_op1);
    9407                 :           0 :                               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 853, __FILE__, __LINE__, true);
    9408                 :           0 :                               return _r;
    9409                 :             :                             }
    9410                 :           0 : next_after_fail1694:;
    9411                 :             :                           }
    9412                 :             :                       }
    9413                 :             :                     }
    9414                 :             :                 }
    9415                 :           0 :               if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
    9416                 :             :                 {
    9417                 :           0 :                   if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
    9418                 :             :                     {
    9419                 :           0 :                       {
    9420                 :           0 :                         tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
    9421                 :           0 :                         if (!HONOR_NANS (captures[0])
    9422                 :             : )
    9423                 :             :                           {
    9424                 :           0 :                             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1695;
    9425                 :           0 :                             {
    9426                 :           0 :                               tree res_op0;
    9427                 :           0 :                               res_op0 = captures[0];
    9428                 :           0 :                               tree res_op1;
    9429                 :           0 :                               res_op1 = captures[1];
    9430                 :           0 :                               tree _r;
    9431                 :           0 :                               _r = fold_build2_loc (loc, MIN_EXPR, type, res_op0, res_op1);
    9432                 :           0 :                               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 853, __FILE__, __LINE__, true);
    9433                 :           0 :                               return _r;
    9434                 :             :                             }
    9435                 :           0 : next_after_fail1695:;
    9436                 :             :                           }
    9437                 :             :                       }
    9438                 :             :                     }
    9439                 :             :                 }
    9440                 :             :               break;
    9441                 :             :             }
    9442                 :             :           default:;
    9443                 :             :           }
    9444                 :             :         break;
    9445                 :             :       }
    9446                 :           0 :     case MAX_EXPR:
    9447                 :           0 :       {
    9448                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
    9449                 :           0 :         tree _q21 = TREE_OPERAND (_p0, 1);
    9450                 :           0 :         switch (TREE_CODE (_p1))
    9451                 :             :           {
    9452                 :           0 :           case MIN_EXPR:
    9453                 :           0 :             {
    9454                 :           0 :               tree _q50 = TREE_OPERAND (_p1, 0);
    9455                 :           0 :               tree _q51 = TREE_OPERAND (_p1, 1);
    9456                 :           0 :               if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
    9457                 :             :                 {
    9458                 :           0 :                   if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
    9459                 :             :                     {
    9460                 :           0 :                       {
    9461                 :           0 :                         tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
    9462                 :           0 :                         if (!HONOR_NANS (captures[0])
    9463                 :             : )
    9464                 :             :                           {
    9465                 :           0 :                             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1696;
    9466                 :           0 :                             {
    9467                 :           0 :                               tree res_op0;
    9468                 :           0 :                               res_op0 = captures[0];
    9469                 :           0 :                               tree res_op1;
    9470                 :           0 :                               res_op1 = captures[1];
    9471                 :           0 :                               tree _r;
    9472                 :           0 :                               _r = fold_build2_loc (loc, MIN_EXPR, type, res_op0, res_op1);
    9473                 :           0 :                               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 853, __FILE__, __LINE__, true);
    9474                 :           0 :                               return _r;
    9475                 :             :                             }
    9476                 :           0 : next_after_fail1696:;
    9477                 :             :                           }
    9478                 :             :                       }
    9479                 :             :                     }
    9480                 :             :                 }
    9481                 :           0 :               if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
    9482                 :             :                 {
    9483                 :           0 :                   if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
    9484                 :             :                     {
    9485                 :           0 :                       {
    9486                 :           0 :                         tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
    9487                 :           0 :                         if (!HONOR_NANS (captures[0])
    9488                 :             : )
    9489                 :             :                           {
    9490                 :           0 :                             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1697;
    9491                 :           0 :                             {
    9492                 :           0 :                               tree res_op0;
    9493                 :           0 :                               res_op0 = captures[0];
    9494                 :           0 :                               tree res_op1;
    9495                 :           0 :                               res_op1 = captures[1];
    9496                 :           0 :                               tree _r;
    9497                 :           0 :                               _r = fold_build2_loc (loc, MIN_EXPR, type, res_op0, res_op1);
    9498                 :           0 :                               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 853, __FILE__, __LINE__, true);
    9499                 :           0 :                               return _r;
    9500                 :             :                             }
    9501                 :           0 : next_after_fail1697:;
    9502                 :             :                           }
    9503                 :             :                       }
    9504                 :             :                     }
    9505                 :             :                 }
    9506                 :             :               break;
    9507                 :             :             }
    9508                 :             :           default:;
    9509                 :             :           }
    9510                 :             :         break;
    9511                 :             :       }
    9512                 :         501 :     CASE_CONVERT:
    9513                 :         501 :       {
    9514                 :         501 :         tree _q20 = TREE_OPERAND (_p0, 0);
    9515                 :         501 :         switch (TREE_CODE (_q20))
    9516                 :             :           {
    9517                 :           2 :           case ADDR_EXPR:
    9518                 :           2 :             {
    9519                 :           2 :               switch (TREE_CODE (_p1))
    9520                 :             :                 {
    9521                 :           2 :                 CASE_CONVERT:
    9522                 :           2 :                   {
    9523                 :           2 :                     tree _q40 = TREE_OPERAND (_p1, 0);
    9524                 :           2 :                     switch (TREE_CODE (_q40))
    9525                 :             :                       {
    9526                 :           2 :                       case ADDR_EXPR:
    9527                 :           2 :                         {
    9528                 :           2 :                           {
    9529                 :           2 :                             tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
    9530                 :           2 :                             tree res = generic_simplify_510 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR);
    9531                 :           2 :                             if (res) return res;
    9532                 :             :                           }
    9533                 :           2 :                           break;
    9534                 :             :                         }
    9535                 :             :                       default:;
    9536                 :             :                       }
    9537                 :             :                     break;
    9538                 :             :                   }
    9539                 :           0 :                 case ADDR_EXPR:
    9540                 :           0 :                   {
    9541                 :           0 :                     {
    9542                 :           0 :                       tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _p1 };
    9543                 :           0 :                       tree res = generic_simplify_511 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR);
    9544                 :           0 :                       if (res) return res;
    9545                 :             :                     }
    9546                 :           0 :                     break;
    9547                 :             :                   }
    9548                 :             :                 default:;
    9549                 :             :                 }
    9550                 :             :               break;
    9551                 :             :             }
    9552                 :             :           default:;
    9553                 :             :           }
    9554                 :             :         break;
    9555                 :             :       }
    9556                 :          10 :     case ADDR_EXPR:
    9557                 :          10 :       {
    9558                 :          10 :         switch (TREE_CODE (_p1))
    9559                 :             :           {
    9560                 :           0 :           CASE_CONVERT:
    9561                 :           0 :             {
    9562                 :           0 :               tree _q30 = TREE_OPERAND (_p1, 0);
    9563                 :           0 :               switch (TREE_CODE (_q30))
    9564                 :             :                 {
    9565                 :           0 :                 case ADDR_EXPR:
    9566                 :           0 :                   {
    9567                 :           0 :                     {
    9568                 :           0 :                       tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _p1, _q30 };
    9569                 :           0 :                       tree res = generic_simplify_512 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR);
    9570                 :           0 :                       if (res) return res;
    9571                 :             :                     }
    9572                 :           0 :                     break;
    9573                 :             :                   }
    9574                 :             :                 default:;
    9575                 :             :                 }
    9576                 :             :               break;
    9577                 :             :             }
    9578                 :          10 :           case ADDR_EXPR:
    9579                 :          10 :             {
    9580                 :          10 :               {
    9581                 :          10 :                 tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _p1, _p1 };
    9582                 :          10 :                 tree res = generic_simplify_513 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR);
    9583                 :          10 :                 if (res) return res;
    9584                 :             :               }
    9585                 :          10 :               break;
    9586                 :             :             }
    9587                 :             :           default:;
    9588                 :             :           }
    9589                 :             :         break;
    9590                 :             :       }
    9591                 :           0 :     case NEGATE_EXPR:
    9592                 :           0 :       {
    9593                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
    9594                 :           0 :         switch (TREE_CODE (_p1))
    9595                 :             :           {
    9596                 :           0 :           case NEGATE_EXPR:
    9597                 :           0 :             {
    9598                 :           0 :               tree _q40 = TREE_OPERAND (_p1, 0);
    9599                 :           0 :               {
    9600                 :           0 :                 tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
    9601                 :           0 :                 if (FLOAT_TYPE_P (TREE_TYPE (captures[1]))
    9602                 :           0 :  || (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
    9603                 :           0 :  && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[1])))
    9604                 :             : )
    9605                 :             :                   {
    9606                 :           0 :                     if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1698;
    9607                 :           0 :                     {
    9608                 :           0 :                       tree res_op0;
    9609                 :           0 :                       {
    9610                 :           0 :                         tree _o1[2], _r1;
    9611                 :           0 :                         _o1[0] = captures[1];
    9612                 :           0 :                         _o1[1] = captures[3];
    9613                 :           0 :                         _r1 = fold_build2_loc (loc, MAX_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    9614                 :           0 :                         res_op0 = _r1;
    9615                 :             :                       }
    9616                 :           0 :                       tree _r;
    9617                 :           0 :                       _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
    9618                 :           0 :                       if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 990, __FILE__, __LINE__, true);
    9619                 :           0 :                       return _r;
    9620                 :             :                     }
    9621                 :           0 : next_after_fail1698:;
    9622                 :             :                   }
    9623                 :             :               }
    9624                 :           0 :               break;
    9625                 :             :             }
    9626                 :             :           default:;
    9627                 :             :           }
    9628                 :             :         break;
    9629                 :             :       }
    9630                 :           0 :     case BIT_NOT_EXPR:
    9631                 :           0 :       {
    9632                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
    9633                 :           0 :         switch (TREE_CODE (_p1))
    9634                 :             :           {
    9635                 :           0 :           case BIT_NOT_EXPR:
    9636                 :           0 :             {
    9637                 :           0 :               tree _q40 = TREE_OPERAND (_p1, 0);
    9638                 :           0 :               {
    9639                 :           0 :                 tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
    9640                 :           0 :                 tree res = generic_simplify_514 (loc, type, _p0, _p1, captures, MIN_EXPR, MAX_EXPR);
    9641                 :           0 :                 if (res) return res;
    9642                 :             :               }
    9643                 :           0 :               break;
    9644                 :             :             }
    9645                 :             :           default:;
    9646                 :             :           }
    9647                 :             :         break;
    9648                 :             :       }
    9649                 :           0 :     case VEC_COND_EXPR:
    9650                 :           0 :       {
    9651                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
    9652                 :           0 :         tree _q21 = TREE_OPERAND (_p0, 1);
    9653                 :           0 :         tree _q22 = TREE_OPERAND (_p0, 2);
    9654                 :           0 :         switch (TREE_CODE (_p1))
    9655                 :             :           {
    9656                 :           0 :           case VEC_COND_EXPR:
    9657                 :           0 :             {
    9658                 :           0 :               tree _q60 = TREE_OPERAND (_p1, 0);
    9659                 :           0 :               tree _q61 = TREE_OPERAND (_p1, 1);
    9660                 :           0 :               tree _q62 = TREE_OPERAND (_p1, 2);
    9661                 :           0 :               if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
    9662                 :             :                 {
    9663                 :           0 :                   {
    9664                 :           0 :                     tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
    9665                 :           0 :                     if (VECTOR_TYPE_P (type)
    9666                 :           0 :  && (TREE_CODE_CLASS (MIN_EXPR) != tcc_comparison
    9667                 :             :  || types_match (type, TREE_TYPE (captures[2]))
    9668                 :             :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
    9669                 :             :  || (optimize_vectors_before_lowering_p ()
    9670                 :             :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
    9671                 :             : )
    9672                 :             :                       {
    9673                 :           0 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1699;
    9674                 :           0 :                         {
    9675                 :           0 :                           tree res_op0;
    9676                 :           0 :                           res_op0 = captures[1];
    9677                 :           0 :                           tree res_op1;
    9678                 :           0 :                           {
    9679                 :           0 :                             tree _o1[2], _r1;
    9680                 :           0 :                             _o1[0] = captures[2];
    9681                 :           0 :                             _o1[1] = captures[5];
    9682                 :           0 :                             _r1 = fold_build2_loc (loc, MIN_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    9683                 :           0 :                             if (EXPR_P (_r1))
    9684                 :           0 :                               goto next_after_fail1699;
    9685                 :           0 :                             res_op1 = _r1;
    9686                 :             :                           }
    9687                 :           0 :                           tree res_op2;
    9688                 :           0 :                           {
    9689                 :           0 :                             tree _o1[2], _r1;
    9690                 :           0 :                             _o1[0] = captures[3];
    9691                 :           0 :                             _o1[1] = captures[6];
    9692                 :           0 :                             _r1 = fold_build2_loc (loc, MIN_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    9693                 :           0 :                             if (EXPR_P (_r1))
    9694                 :           0 :                               goto next_after_fail1699;
    9695                 :           0 :                             res_op2 = _r1;
    9696                 :             :                           }
    9697                 :           0 :                           tree _r;
    9698                 :           0 :                           _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    9699                 :           0 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 857, __FILE__, __LINE__, true);
    9700                 :           0 :                           return _r;
    9701                 :             :                         }
    9702                 :           0 : next_after_fail1699:;
    9703                 :             :                       }
    9704                 :             :                   }
    9705                 :             :                 }
    9706                 :             :               break;
    9707                 :             :             }
    9708                 :           0 :           default:;
    9709                 :             :           }
    9710                 :           0 :         {
    9711                 :           0 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
    9712                 :           0 :           if (VECTOR_TYPE_P (type)
    9713                 :           0 :  && (TREE_CODE_CLASS (MIN_EXPR) != tcc_comparison
    9714                 :             :  || types_match (type, TREE_TYPE (captures[2]))
    9715                 :             :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
    9716                 :             :  || (optimize_vectors_before_lowering_p ()
    9717                 :             :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
    9718                 :             : )
    9719                 :             :             {
    9720                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1700;
    9721                 :           0 :               {
    9722                 :           0 :                 if (! tree_invariant_p (captures[4])) goto next_after_fail1700;
    9723                 :           0 :                 tree res_op0;
    9724                 :           0 :                 res_op0 = captures[1];
    9725                 :           0 :                 tree res_op1;
    9726                 :           0 :                 {
    9727                 :           0 :                   tree _o1[2], _r1;
    9728                 :           0 :                   _o1[0] = captures[2];
    9729                 :           0 :                   _o1[1] = unshare_expr (captures[4]);
    9730                 :           0 :                   _r1 = fold_build2_loc (loc, MIN_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    9731                 :           0 :                   if (EXPR_P (_r1))
    9732                 :           0 :                     goto next_after_fail1700;
    9733                 :           0 :                   res_op1 = _r1;
    9734                 :             :                 }
    9735                 :           0 :                 tree res_op2;
    9736                 :           0 :                 {
    9737                 :           0 :                   tree _o1[2], _r1;
    9738                 :           0 :                   _o1[0] = captures[3];
    9739                 :           0 :                   _o1[1] = captures[4];
    9740                 :           0 :                   _r1 = fold_build2_loc (loc, MIN_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    9741                 :           0 :                   if (EXPR_P (_r1))
    9742                 :           0 :                     goto next_after_fail1700;
    9743                 :           0 :                   res_op2 = _r1;
    9744                 :             :                 }
    9745                 :           0 :                 tree _r;
    9746                 :           0 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    9747                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 858, __FILE__, __LINE__, true);
    9748                 :           0 :                 return _r;
    9749                 :             :               }
    9750                 :           0 : next_after_fail1700:;
    9751                 :             :             }
    9752                 :             :         }
    9753                 :           0 :         break;
    9754                 :             :       }
    9755                 :       84155 :     default:;
    9756                 :             :     }
    9757                 :       84155 :   switch (TREE_CODE (_p1))
    9758                 :             :     {
    9759                 :           0 :     case VEC_COND_EXPR:
    9760                 :           0 :       {
    9761                 :           0 :         tree _q30 = TREE_OPERAND (_p1, 0);
    9762                 :           0 :         tree _q31 = TREE_OPERAND (_p1, 1);
    9763                 :           0 :         tree _q32 = TREE_OPERAND (_p1, 2);
    9764                 :           0 :         {
    9765                 :           0 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
    9766                 :           0 :           if (VECTOR_TYPE_P (type)
    9767                 :           0 :  && (TREE_CODE_CLASS (MIN_EXPR) != tcc_comparison
    9768                 :             :  || types_match (type, TREE_TYPE (captures[3]))
    9769                 :             :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
    9770                 :             :  || (optimize_vectors_before_lowering_p ()
    9771                 :             :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
    9772                 :             : )
    9773                 :             :             {
    9774                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1701;
    9775                 :           0 :               {
    9776                 :           0 :                 if (! tree_invariant_p (captures[0])) goto next_after_fail1701;
    9777                 :           0 :                 tree res_op0;
    9778                 :           0 :                 res_op0 = captures[2];
    9779                 :           0 :                 tree res_op1;
    9780                 :           0 :                 {
    9781                 :           0 :                   tree _o1[2], _r1;
    9782                 :           0 :                   _o1[0] = unshare_expr (captures[0]);
    9783                 :           0 :                   _o1[1] = captures[3];
    9784                 :           0 :                   _r1 = fold_build2_loc (loc, MIN_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    9785                 :           0 :                   if (EXPR_P (_r1))
    9786                 :           0 :                     goto next_after_fail1701;
    9787                 :           0 :                   res_op1 = _r1;
    9788                 :             :                 }
    9789                 :           0 :                 tree res_op2;
    9790                 :           0 :                 {
    9791                 :           0 :                   tree _o1[2], _r1;
    9792                 :           0 :                   _o1[0] = captures[0];
    9793                 :           0 :                   _o1[1] = captures[4];
    9794                 :           0 :                   _r1 = fold_build2_loc (loc, MIN_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    9795                 :           0 :                   if (EXPR_P (_r1))
    9796                 :           0 :                     goto next_after_fail1701;
    9797                 :           0 :                   res_op2 = _r1;
    9798                 :             :                 }
    9799                 :           0 :                 tree _r;
    9800                 :           0 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    9801                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 859, __FILE__, __LINE__, true);
    9802                 :           0 :                 return _r;
    9803                 :             :               }
    9804                 :           0 : next_after_fail1701:;
    9805                 :             :             }
    9806                 :             :         }
    9807                 :           0 :         break;
    9808                 :             :       }
    9809                 :       84155 :     default:;
    9810                 :             :     }
    9811                 :       84155 :   if (tree_zero_one_valued_p (_p0))
    9812                 :             :     {
    9813                 :           5 :       if (tree_zero_one_valued_p (_p1))
    9814                 :             :         {
    9815                 :           2 :           {
    9816                 :           2 :             tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    9817                 :           2 :             tree res = generic_simplify_515 (loc, type, _p0, _p1, captures, MIN_EXPR, BIT_AND_EXPR);
    9818                 :           2 :             if (res) return res;
    9819                 :             :           }
    9820                 :             :         }
    9821                 :             :     }
    9822                 :             :   return NULL_TREE;
    9823                 :             : }
    9824                 :             : 
    9825                 :             : tree
    9826                 :      867741 : generic_simplify_COMPLEX_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
    9827                 :             : {
    9828                 :      867741 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    9829                 :      867741 :   switch (TREE_CODE (_p0))
    9830                 :             :     {
    9831                 :          32 :     case REALPART_EXPR:
    9832                 :          32 :       {
    9833                 :          32 :         tree _q20 = TREE_OPERAND (_p0, 0);
    9834                 :          32 :         switch (TREE_CODE (_p1))
    9835                 :             :           {
    9836                 :          22 :           case IMAGPART_EXPR:
    9837                 :          22 :             {
    9838                 :          22 :               tree _q40 = TREE_OPERAND (_p1, 0);
    9839                 :          22 :               if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
    9840                 :             :                 {
    9841                 :          22 :                   {
    9842                 :          22 :                     tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
    9843                 :          22 :                     if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1717;
    9844                 :          22 :                     {
    9845                 :          22 :                       tree _r;
    9846                 :          22 :                       _r = captures[0];
    9847                 :          22 :                       if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 996, __FILE__, __LINE__, true);
    9848                 :          22 :                       return _r;
    9849                 :             :                     }
    9850                 :           0 : next_after_fail1717:;
    9851                 :             :                   }
    9852                 :             :                 }
    9853                 :             :               break;
    9854                 :             :             }
    9855                 :             :           default:;
    9856                 :             :           }
    9857                 :             :         break;
    9858                 :             :       }
    9859                 :             :     default:;
    9860                 :             :     }
    9861                 :             :   return NULL_TREE;
    9862                 :             : }
    9863                 :             : 
    9864                 :             : tree
    9865                 :      225524 : generic_simplify_ORDERED_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
    9866                 :             : {
    9867                 :      225524 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    9868                 :      225524 :   switch (TREE_CODE (_p0))
    9869                 :             :     {
    9870                 :           0 :     case VEC_COND_EXPR:
    9871                 :           0 :       {
    9872                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
    9873                 :           0 :         tree _q21 = TREE_OPERAND (_p0, 1);
    9874                 :           0 :         tree _q22 = TREE_OPERAND (_p0, 2);
    9875                 :           0 :         switch (TREE_CODE (_p1))
    9876                 :             :           {
    9877                 :           0 :           case VEC_COND_EXPR:
    9878                 :           0 :             {
    9879                 :           0 :               tree _q60 = TREE_OPERAND (_p1, 0);
    9880                 :           0 :               tree _q61 = TREE_OPERAND (_p1, 1);
    9881                 :           0 :               tree _q62 = TREE_OPERAND (_p1, 2);
    9882                 :           0 :               if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
    9883                 :             :                 {
    9884                 :           0 :                   {
    9885                 :           0 :                     tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
    9886                 :           0 :                     if (VECTOR_TYPE_P (type)
    9887                 :           0 :  && (TREE_CODE_CLASS (ORDERED_EXPR) != tcc_comparison
    9888                 :           0 :  || types_match (type, TREE_TYPE (captures[2]))
    9889                 :           0 :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
    9890                 :             :  || (optimize_vectors_before_lowering_p ()
    9891                 :           0 :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
    9892                 :             : )
    9893                 :             :                       {
    9894                 :           0 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1723;
    9895                 :           0 :                         {
    9896                 :           0 :                           tree res_op0;
    9897                 :           0 :                           res_op0 = captures[1];
    9898                 :           0 :                           tree res_op1;
    9899                 :           0 :                           {
    9900                 :           0 :                             tree _o1[2], _r1;
    9901                 :           0 :                             _o1[0] = captures[2];
    9902                 :           0 :                             _o1[1] = captures[5];
    9903                 :           0 :                             _r1 = fold_build2_loc (loc, ORDERED_EXPR, type, _o1[0], _o1[1]);
    9904                 :           0 :                             if (EXPR_P (_r1))
    9905                 :           0 :                               goto next_after_fail1723;
    9906                 :           0 :                             res_op1 = _r1;
    9907                 :             :                           }
    9908                 :           0 :                           tree res_op2;
    9909                 :           0 :                           {
    9910                 :           0 :                             tree _o1[2], _r1;
    9911                 :           0 :                             _o1[0] = captures[3];
    9912                 :           0 :                             _o1[1] = captures[6];
    9913                 :           0 :                             _r1 = fold_build2_loc (loc, ORDERED_EXPR, type, _o1[0], _o1[1]);
    9914                 :           0 :                             if (EXPR_P (_r1))
    9915                 :           0 :                               goto next_after_fail1723;
    9916                 :           0 :                             res_op2 = _r1;
    9917                 :             :                           }
    9918                 :           0 :                           tree _r;
    9919                 :           0 :                           _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    9920                 :           0 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 857, __FILE__, __LINE__, true);
    9921                 :           0 :                           return _r;
    9922                 :             :                         }
    9923                 :           0 : next_after_fail1723:;
    9924                 :             :                       }
    9925                 :             :                   }
    9926                 :             :                 }
    9927                 :             :               break;
    9928                 :             :             }
    9929                 :           0 :           default:;
    9930                 :             :           }
    9931                 :           0 :         {
    9932                 :           0 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
    9933                 :           0 :           if (VECTOR_TYPE_P (type)
    9934                 :           0 :  && (TREE_CODE_CLASS (ORDERED_EXPR) != tcc_comparison
    9935                 :           0 :  || types_match (type, TREE_TYPE (captures[2]))
    9936                 :           0 :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
    9937                 :             :  || (optimize_vectors_before_lowering_p ()
    9938                 :           0 :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
    9939                 :             : )
    9940                 :             :             {
    9941                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1724;
    9942                 :           0 :               {
    9943                 :           0 :                 if (! tree_invariant_p (captures[4])) goto next_after_fail1724;
    9944                 :           0 :                 tree res_op0;
    9945                 :           0 :                 res_op0 = captures[1];
    9946                 :           0 :                 tree res_op1;
    9947                 :           0 :                 {
    9948                 :           0 :                   tree _o1[2], _r1;
    9949                 :           0 :                   _o1[0] = captures[2];
    9950                 :           0 :                   _o1[1] = unshare_expr (captures[4]);
    9951                 :           0 :                   _r1 = fold_build2_loc (loc, ORDERED_EXPR, type, _o1[0], _o1[1]);
    9952                 :           0 :                   if (EXPR_P (_r1))
    9953                 :           0 :                     goto next_after_fail1724;
    9954                 :           0 :                   res_op1 = _r1;
    9955                 :             :                 }
    9956                 :           0 :                 tree res_op2;
    9957                 :           0 :                 {
    9958                 :           0 :                   tree _o1[2], _r1;
    9959                 :           0 :                   _o1[0] = captures[3];
    9960                 :           0 :                   _o1[1] = captures[4];
    9961                 :           0 :                   _r1 = fold_build2_loc (loc, ORDERED_EXPR, type, _o1[0], _o1[1]);
    9962                 :           0 :                   if (EXPR_P (_r1))
    9963                 :           0 :                     goto next_after_fail1724;
    9964                 :           0 :                   res_op2 = _r1;
    9965                 :             :                 }
    9966                 :           0 :                 tree _r;
    9967                 :           0 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    9968                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 858, __FILE__, __LINE__, true);
    9969                 :           0 :                 return _r;
    9970                 :             :               }
    9971                 :           0 : next_after_fail1724:;
    9972                 :             :             }
    9973                 :             :         }
    9974                 :           0 :         break;
    9975                 :             :       }
    9976                 :      225524 :     default:;
    9977                 :             :     }
    9978                 :      225524 :   switch (TREE_CODE (_p1))
    9979                 :             :     {
    9980                 :           0 :     case VEC_COND_EXPR:
    9981                 :           0 :       {
    9982                 :           0 :         tree _q30 = TREE_OPERAND (_p1, 0);
    9983                 :           0 :         tree _q31 = TREE_OPERAND (_p1, 1);
    9984                 :           0 :         tree _q32 = TREE_OPERAND (_p1, 2);
    9985                 :           0 :         {
    9986                 :           0 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
    9987                 :           0 :           if (VECTOR_TYPE_P (type)
    9988                 :           0 :  && (TREE_CODE_CLASS (ORDERED_EXPR) != tcc_comparison
    9989                 :           0 :  || types_match (type, TREE_TYPE (captures[3]))
    9990                 :           0 :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
    9991                 :             :  || (optimize_vectors_before_lowering_p ()
    9992                 :           0 :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
    9993                 :             : )
    9994                 :             :             {
    9995                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1725;
    9996                 :           0 :               {
    9997                 :           0 :                 if (! tree_invariant_p (captures[0])) goto next_after_fail1725;
    9998                 :           0 :                 tree res_op0;
    9999                 :           0 :                 res_op0 = captures[2];
   10000                 :           0 :                 tree res_op1;
   10001                 :           0 :                 {
   10002                 :           0 :                   tree _o1[2], _r1;
   10003                 :           0 :                   _o1[0] = unshare_expr (captures[0]);
   10004                 :           0 :                   _o1[1] = captures[3];
   10005                 :           0 :                   _r1 = fold_build2_loc (loc, ORDERED_EXPR, type, _o1[0], _o1[1]);
   10006                 :           0 :                   if (EXPR_P (_r1))
   10007                 :           0 :                     goto next_after_fail1725;
   10008                 :           0 :                   res_op1 = _r1;
   10009                 :             :                 }
   10010                 :           0 :                 tree res_op2;
   10011                 :           0 :                 {
   10012                 :           0 :                   tree _o1[2], _r1;
   10013                 :           0 :                   _o1[0] = captures[0];
   10014                 :           0 :                   _o1[1] = captures[4];
   10015                 :           0 :                   _r1 = fold_build2_loc (loc, ORDERED_EXPR, type, _o1[0], _o1[1]);
   10016                 :           0 :                   if (EXPR_P (_r1))
   10017                 :           0 :                     goto next_after_fail1725;
   10018                 :           0 :                   res_op2 = _r1;
   10019                 :             :                 }
   10020                 :           0 :                 tree _r;
   10021                 :           0 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
   10022                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 859, __FILE__, __LINE__, true);
   10023                 :           0 :                 return _r;
   10024                 :             :               }
   10025                 :           0 : next_after_fail1725:;
   10026                 :             :             }
   10027                 :             :         }
   10028                 :           0 :         break;
   10029                 :             :       }
   10030                 :      225524 :     default:;
   10031                 :             :     }
   10032                 :      225524 :   switch (TREE_CODE (_p0))
   10033                 :             :     {
   10034                 :           0 :     case FLOAT_EXPR:
   10035                 :           0 :       {
   10036                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
   10037                 :           0 :         switch (TREE_CODE (_p1))
   10038                 :             :           {
   10039                 :           0 :           case FLOAT_EXPR:
   10040                 :           0 :             {
   10041                 :           0 :               tree _q40 = TREE_OPERAND (_p1, 0);
   10042                 :           0 :               {
   10043                 :           0 :                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
   10044                 :           0 :                 tree res = generic_simplify_256 (loc, type, _p0, _p1, captures, ORDERED_EXPR, ORDERED_EXPR);
   10045                 :           0 :                 if (res) return res;
   10046                 :             :               }
   10047                 :           0 :               break;
   10048                 :             :             }
   10049                 :             :           default:;
   10050                 :             :           }
   10051                 :             :         break;
   10052                 :             :       }
   10053                 :           0 :     case NEGATE_EXPR:
   10054                 :           0 :       {
   10055                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
   10056                 :           0 :         switch (TREE_CODE (_p1))
   10057                 :             :           {
   10058                 :           0 :           case NEGATE_EXPR:
   10059                 :           0 :             {
   10060                 :           0 :               tree _q40 = TREE_OPERAND (_p1, 0);
   10061                 :           0 :               {
   10062                 :           0 :                 tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
   10063                 :           0 :                 tree res = generic_simplify_259 (loc, type, _p0, _p1, captures, ORDERED_EXPR, ORDERED_EXPR);
   10064                 :           0 :                 if (res) return res;
   10065                 :             :               }
   10066                 :           0 :               break;
   10067                 :             :             }
   10068                 :           0 :           default:;
   10069                 :             :           }
   10070                 :           0 :       if (CONSTANT_CLASS_P (_p1))
   10071                 :             :         {
   10072                 :           0 :           {
   10073                 :           0 :             tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
   10074                 :           0 :             tree res = generic_simplify_260 (loc, type, _p0, _p1, captures, ORDERED_EXPR, ORDERED_EXPR);
   10075                 :           0 :             if (res) return res;
   10076                 :             :           }
   10077                 :             :         }
   10078                 :             :         break;
   10079                 :             :       }
   10080                 :      225524 :     default:;
   10081                 :             :     }
   10082                 :      225524 :   switch (TREE_CODE (_p1))
   10083                 :             :     {
   10084                 :         102 :     case REAL_CST:
   10085                 :         102 :       {
   10086                 :         102 :         {
   10087                 :         102 :           tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
   10088                 :         102 :           tree res = generic_simplify_544 (loc, type, _p0, _p1, captures, ORDERED_EXPR);
   10089                 :         102 :           if (res) return res;
   10090                 :             :         }
   10091                 :         102 :         break;
   10092                 :             :       }
   10093                 :      225524 :     default:;
   10094                 :             :     }
   10095                 :      225524 :   {
   10096                 :      225524 :     tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
   10097                 :      225524 :     if (tree_expr_nan_p (captures[0]) || tree_expr_nan_p (captures[1])
   10098                 :             : )
   10099                 :             :       {
   10100                 :           0 :         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1726;
   10101                 :           0 :         {
   10102                 :           0 :           tree _r;
   10103                 :           0 :           _r =  constant_boolean_node (false, type);
   10104                 :           0 :           if (TREE_SIDE_EFFECTS (captures[0]))
   10105                 :           0 :             _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
   10106                 :           0 :           if (TREE_SIDE_EFFECTS (captures[1]))
   10107                 :           0 :             _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
   10108                 :           0 :           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 999, __FILE__, __LINE__, true);
   10109                 :           0 :           return _r;
   10110                 :             :         }
   10111                 :           0 : next_after_fail1726:;
   10112                 :             :       }
   10113                 :             :     else
   10114                 :             :       {
   10115                 :      225524 :         if (!tree_expr_maybe_nan_p (captures[0]) && !tree_expr_maybe_nan_p (captures[1])
   10116                 :             : )
   10117                 :             :           {
   10118                 :          10 :             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1727;
   10119                 :          10 :             {
   10120                 :          10 :               tree _r;
   10121                 :          10 :               _r =  constant_boolean_node (true, type);
   10122                 :          10 :               if (TREE_SIDE_EFFECTS (captures[0]))
   10123                 :           0 :                 _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
   10124                 :          10 :               if (TREE_SIDE_EFFECTS (captures[1]))
   10125                 :           0 :                 _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
   10126                 :          10 :               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1000, __FILE__, __LINE__, true);
   10127                 :          10 :               return _r;
   10128                 :             :             }
   10129                 :           0 : next_after_fail1727:;
   10130                 :             :           }
   10131                 :             :       }
   10132                 :             :   }
   10133                 :      225514 :   return NULL_TREE;
   10134                 :             : }
   10135                 :             : 
   10136                 :             : tree
   10137                 :     1869057 : generic_simplify_UNGT_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
   10138                 :             : {
   10139                 :     1869057 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
   10140                 :     1869057 :   switch (TREE_CODE (_p0))
   10141                 :             :     {
   10142                 :           0 :     case VEC_COND_EXPR:
   10143                 :           0 :       {
   10144                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
   10145                 :           0 :         tree _q21 = TREE_OPERAND (_p0, 1);
   10146                 :           0 :         tree _q22 = TREE_OPERAND (_p0, 2);
   10147                 :           0 :         switch (TREE_CODE (_p1))
   10148                 :             :           {
   10149                 :           0 :           case VEC_COND_EXPR:
   10150                 :           0 :             {
   10151                 :           0 :               tree _q60 = TREE_OPERAND (_p1, 0);
   10152                 :           0 :               tree _q61 = TREE_OPERAND (_p1, 1);
   10153                 :           0 :               tree _q62 = TREE_OPERAND (_p1, 2);
   10154                 :           0 :               if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
   10155                 :             :                 {
   10156                 :           0 :                   {
   10157                 :           0 :                     tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
   10158                 :           0 :                     if (VECTOR_TYPE_P (type)
   10159                 :           0 :  && (TREE_CODE_CLASS (UNGT_EXPR) != tcc_comparison
   10160                 :           0 :  || types_match (type, TREE_TYPE (captures[2]))
   10161                 :           0 :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
   10162                 :             :  || (optimize_vectors_before_lowering_p ()
   10163                 :           0 :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
   10164                 :             : )
   10165                 :             :                       {
   10166                 :           0 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1734;
   10167                 :           0 :                         {
   10168                 :           0 :                           tree res_op0;
   10169                 :           0 :                           res_op0 = captures[1];
   10170                 :           0 :                           tree res_op1;
   10171                 :           0 :                           {
   10172                 :           0 :                             tree _o1[2], _r1;
   10173                 :           0 :                             _o1[0] = captures[2];
   10174                 :           0 :                             _o1[1] = captures[5];
   10175                 :           0 :                             _r1 = fold_build2_loc (loc, UNGT_EXPR, type, _o1[0], _o1[1]);
   10176                 :           0 :                             if (EXPR_P (_r1))
   10177                 :           0 :                               goto next_after_fail1734;
   10178                 :           0 :                             res_op1 = _r1;
   10179                 :             :                           }
   10180                 :           0 :                           tree res_op2;
   10181                 :           0 :                           {
   10182                 :           0 :                             tree _o1[2], _r1;
   10183                 :           0 :                             _o1[0] = captures[3];
   10184                 :           0 :                             _o1[1] = captures[6];
   10185                 :           0 :                             _r1 = fold_build2_loc (loc, UNGT_EXPR, type, _o1[0], _o1[1]);
   10186                 :           0 :                             if (EXPR_P (_r1))
   10187                 :           0 :                               goto next_after_fail1734;
   10188                 :           0 :                             res_op2 = _r1;
   10189                 :             :                           }
   10190                 :           0 :                           tree _r;
   10191                 :           0 :                           _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
   10192                 :           0 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 857, __FILE__, __LINE__, true);
   10193                 :           0 :                           return _r;
   10194                 :             :                         }
   10195                 :           0 : next_after_fail1734:;
   10196                 :             :                       }
   10197                 :             :                   }
   10198                 :             :                 }
   10199                 :             :               break;
   10200                 :             :             }
   10201                 :           0 :           default:;
   10202                 :             :           }
   10203                 :           0 :         {
   10204                 :           0 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
   10205                 :           0 :           if (VECTOR_TYPE_P (type)
   10206                 :           0 :  && (TREE_CODE_CLASS (UNGT_EXPR) != tcc_comparison
   10207                 :           0 :  || types_match (type, TREE_TYPE (captures[2]))
   10208                 :           0 :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
   10209                 :             :  || (optimize_vectors_before_lowering_p ()
   10210                 :           0 :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
   10211                 :             : )
   10212                 :             :             {
   10213                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1735;
   10214                 :           0 :               {
   10215                 :           0 :                 if (! tree_invariant_p (captures[4])) goto next_after_fail1735;
   10216                 :           0 :                 tree res_op0;
   10217                 :           0 :                 res_op0 = captures[1];
   10218                 :           0 :                 tree res_op1;
   10219                 :           0 :                 {
   10220                 :           0 :                   tree _o1[2], _r1;
   10221                 :           0 :                   _o1[0] = captures[2];
   10222                 :           0 :                   _o1[1] = unshare_expr (captures[4]);
   10223                 :           0 :                   _r1 = fold_build2_loc (loc, UNGT_EXPR, type, _o1[0], _o1[1]);
   10224                 :           0 :                   if (EXPR_P (_r1))
   10225                 :           0 :                     goto next_after_fail1735;
   10226                 :           0 :                   res_op1 = _r1;
   10227                 :             :                 }
   10228                 :           0 :                 tree res_op2;
   10229                 :           0 :                 {
   10230                 :           0 :                   tree _o1[2], _r1;
   10231                 :           0 :                   _o1[0] = captures[3];
   10232                 :           0 :                   _o1[1] = captures[4];
   10233                 :           0 :                   _r1 = fold_build2_loc (loc, UNGT_EXPR, type, _o1[0], _o1[1]);
   10234                 :           0 :                   if (EXPR_P (_r1))
   10235                 :           0 :                     goto next_after_fail1735;
   10236                 :           0 :                   res_op2 = _r1;
   10237                 :             :                 }
   10238                 :           0 :                 tree _r;
   10239                 :           0 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
   10240                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 858, __FILE__, __LINE__, true);
   10241                 :           0 :                 return _r;
   10242                 :             :               }
   10243                 :           0 : next_after_fail1735:;
   10244                 :             :             }
   10245                 :             :         }
   10246                 :           0 :         break;
   10247                 :             :       }
   10248                 :     1869057 :     default:;
   10249                 :             :     }
   10250                 :     1869057 :   switch (TREE_CODE (_p1))
   10251                 :             :     {
   10252                 :           0 :     case VEC_COND_EXPR:
   10253                 :           0 :       {
   10254                 :           0 :         tree _q30 = TREE_OPERAND (_p1, 0);
   10255                 :           0 :         tree _q31 = TREE_OPERAND (_p1, 1);
   10256                 :           0 :         tree _q32 = TREE_OPERAND (_p1, 2);
   10257                 :           0 :         {
   10258                 :           0 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
   10259                 :           0 :           if (VECTOR_TYPE_P (type)
   10260                 :           0 :  && (TREE_CODE_CLASS (UNGT_EXPR) != tcc_comparison
   10261                 :           0 :  || types_match (type, TREE_TYPE (captures[3]))
   10262                 :           0 :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
   10263                 :             :  || (optimize_vectors_before_lowering_p ()
   10264                 :           0 :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
   10265                 :             : )
   10266                 :             :             {
   10267                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1736;
   10268                 :           0 :               {
   10269                 :           0 :                 if (! tree_invariant_p (captures[0])) goto next_after_fail1736;
   10270                 :           0 :                 tree res_op0;
   10271                 :           0 :                 res_op0 = captures[2];
   10272                 :           0 :                 tree res_op1;
   10273                 :           0 :                 {
   10274                 :           0 :                   tree _o1[2], _r1;
   10275                 :           0 :                   _o1[0] = unshare_expr (captures[0]);
   10276                 :           0 :                   _o1[1] = captures[3];
   10277                 :           0 :                   _r1 = fold_build2_loc (loc, UNGT_EXPR, type, _o1[0], _o1[1]);
   10278                 :           0 :                   if (EXPR_P (_r1))
   10279                 :           0 :                     goto next_after_fail1736;
   10280                 :           0 :                   res_op1 = _r1;
   10281                 :             :                 }
   10282                 :           0 :                 tree res_op2;
   10283                 :           0 :                 {
   10284                 :           0 :                   tree _o1[2], _r1;
   10285                 :           0 :                   _o1[0] = captures[0];
   10286                 :           0 :                   _o1[1] = captures[4];
   10287                 :           0 :                   _r1 = fold_build2_loc (loc, UNGT_EXPR, type, _o1[0], _o1[1]);
   10288                 :           0 :                   if (EXPR_P (_r1))
   10289                 :           0 :                     goto next_after_fail1736;
   10290                 :           0 :                   res_op2 = _r1;
   10291                 :             :                 }
   10292                 :           0 :                 tree _r;
   10293                 :           0 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
   10294                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 859, __FILE__, __LINE__, true);
   10295                 :           0 :                 return _r;
   10296                 :             :               }
   10297                 :           0 : next_after_fail1736:;
   10298                 :             :             }
   10299                 :             :         }
   10300                 :           0 :         break;
   10301                 :             :       }
   10302                 :     1869057 :     default:;
   10303                 :             :     }
   10304                 :     1869057 :   if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
   10305                 :             :     {
   10306                 :           0 :       {
   10307                 :           0 :         tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
   10308                 :           0 :         tree res = generic_simplify_545 (loc, type, _p0, _p1, captures, UNGT_EXPR);
   10309                 :           0 :         if (res) return res;
   10310                 :             :       }
   10311                 :             :     }
   10312                 :     1869057 :   switch (TREE_CODE (_p0))
   10313                 :             :     {
   10314                 :         339 :     case FLOAT_EXPR:
   10315                 :         339 :       {
   10316                 :         339 :         tree _q20 = TREE_OPERAND (_p0, 0);
   10317                 :         339 :         switch (TREE_CODE (_p1))
   10318                 :             :           {
   10319                 :           0 :           case FLOAT_EXPR:
   10320                 :           0 :             {
   10321                 :           0 :               tree _q40 = TREE_OPERAND (_p1, 0);
   10322                 :           0 :               {
   10323                 :           0 :                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
   10324                 :           0 :                 tree res = generic_simplify_256 (loc, type, _p0, _p1, captures, UNGT_EXPR, GT_EXPR);
   10325                 :           0 :                 if (res) return res;
   10326                 :             :               }
   10327                 :           0 :               break;
   10328                 :             :             }
   10329                 :             :           default:;
   10330                 :             :           }
   10331                 :             :         break;
   10332                 :             :       }
   10333                 :           0 :     case NEGATE_EXPR:
   10334                 :           0 :       {
   10335                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
   10336                 :           0 :         switch (TREE_CODE (_p1))
   10337                 :             :           {
   10338                 :           0 :           case NEGATE_EXPR:
   10339                 :           0 :             {
   10340                 :           0 :               tree _q40 = TREE_OPERAND (_p1, 0);
   10341                 :           0 :               {
   10342                 :           0 :                 tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
   10343                 :           0 :                 tree res = generic_simplify_259 (loc, type, _p0, _p1, captures, UNGT_EXPR, UNLT_EXPR);
   10344                 :           0 :                 if (res) return res;
   10345                 :             :               }
   10346                 :           0 :               break;
   10347                 :             :             }
   10348                 :           0 :           default:;
   10349                 :             :           }
   10350                 :           0 :       if (CONSTANT_CLASS_P (_p1))
   10351                 :             :         {
   10352                 :           0 :           {
   10353                 :           0 :             tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
   10354                 :           0 :             tree res = generic_simplify_260 (loc, type, _p0, _p1, captures, UNGT_EXPR, UNLT_EXPR);
   10355                 :           0 :             if (res) return res;
   10356                 :             :           }
   10357                 :             :         }
   10358                 :             :         break;
   10359                 :             :       }
   10360                 :     1869057 :     default:;
   10361                 :             :     }
   10362                 :     1869057 :   switch (TREE_CODE (_p1))
   10363                 :             :     {
   10364                 :     1446743 :     case REAL_CST:
   10365                 :     1446743 :       {
   10366                 :     1446743 :         {
   10367                 :     1446743 :           tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
   10368                 :     1446743 :           tree res = generic_simplify_544 (loc, type, _p0, _p1, captures, UNGT_EXPR);
   10369                 :     1446743 :           if (res) return res;
   10370                 :             :         }
   10371                 :     1446741 :         break;
   10372                 :             :       }
   10373                 :             :     default:;
   10374                 :             :     }
   10375                 :             :   return NULL_TREE;
   10376                 :             : }
   10377                 :             : 
   10378                 :             : tree
   10379                 :     9355747 : generic_simplify_TRUTH_OR_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
   10380                 :             : {
   10381                 :     9355747 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
   10382                 :     9355747 :   switch (TREE_CODE (_p0))
   10383                 :             :     {
   10384                 :     1329705 :     case LE_EXPR:
   10385                 :     1329705 :       {
   10386                 :     1329705 :         tree _q20 = TREE_OPERAND (_p0, 0);
   10387                 :     1329705 :         tree _q21 = TREE_OPERAND (_p0, 1);
   10388                 :     1329705 :         switch (TREE_CODE (_q20))
   10389                 :             :           {
   10390                 :        4227 :           case POINTER_PLUS_EXPR:
   10391                 :        4227 :             {
   10392                 :        4227 :               tree _q30 = TREE_OPERAND (_q20, 0);
   10393                 :        4227 :               tree _q31 = TREE_OPERAND (_q20, 1);
   10394                 :        4227 :               switch (TREE_CODE (_q31))
   10395                 :             :                 {
   10396                 :        3996 :                 case INTEGER_CST:
   10397                 :        3996 :                   {
   10398                 :        3996 :                     switch (TREE_CODE (_p1))
   10399                 :             :                       {
   10400                 :        1272 :                       case LE_EXPR:
   10401                 :        1272 :                         {
   10402                 :        1272 :                           tree _q70 = TREE_OPERAND (_p1, 0);
   10403                 :        1272 :                           tree _q71 = TREE_OPERAND (_p1, 1);
   10404                 :        1272 :                           switch (TREE_CODE (_q70))
   10405                 :             :                             {
   10406                 :         769 :                             case POINTER_PLUS_EXPR:
   10407                 :         769 :                               {
   10408                 :         769 :                                 tree _q80 = TREE_OPERAND (_q70, 0);
   10409                 :         769 :                                 tree _q81 = TREE_OPERAND (_q70, 1);
   10410                 :         769 :                                 if ((_q80 == _q21 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q21, 0) && types_match (_q80, _q21)))
   10411                 :             :                                   {
   10412                 :         510 :                                     if ((_q81 == _q31 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q31, 0) && types_match (_q81, _q31)))
   10413                 :             :                                       {
   10414                 :         395 :                                         if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
   10415                 :             :                                           {
   10416                 :         395 :                                             {
   10417                 :         395 :                                               tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q70 };
   10418                 :         395 :                                               const enum tree_code cmp = LE_EXPR;
   10419                 :         395 :                                               if (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[2]))
   10420                 :         394 :  && TYPE_OVERFLOW_WRAPS (sizetype)
   10421                 :         789 :  && TYPE_PRECISION (TREE_TYPE (captures[2])) == TYPE_PRECISION (sizetype)
   10422                 :             : )
   10423                 :             :                                                 {
   10424                 :         394 :                                                   {
   10425                 :         394 :  offset_int off = wi::to_offset (captures[3]) - (cmp == LE_EXPR ? 1 : 0);
   10426                 :         394 :  offset_int rhs = off * 2;
   10427                 :         394 :                                                       if (wi::min_precision (rhs, UNSIGNED) <= TYPE_PRECISION (sizetype)
   10428                 :             : )
   10429                 :             :                                                         {
   10430                 :         394 :                                                           {
   10431                 :         394 :  bool swap_p = tree_swap_operands_p (captures[2], captures[4]);
   10432                 :         394 :  tree rhs_tree = wide_int_to_tree (sizetype, rhs);
   10433                 :         394 :                                                               if (cmp == LT_EXPR
   10434                 :             : )
   10435                 :             :                                                                 {
   10436                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1763;
   10437                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1763;
   10438                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1763;
   10439                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1763;
   10440                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[6])) goto next_after_fail1763;
   10441                 :             :                                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1763;
   10442                 :             :                                                                   {
   10443                 :             :                                                                     tree res_op0;
   10444                 :             :                                                                     {
   10445                 :             :                                                                       tree _o1[1], _r1;
   10446                 :             :                                                                       {
   10447                 :             :                                                                         tree _o2[2], _r2;
   10448                 :             :                                                                         _o2[0] =  swap_p ? captures[6] : captures[1];
   10449                 :             :                                                                         _o2[1] =  swap_p ? captures[2] : captures[4];
   10450                 :             :                                                                         _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
   10451                 :             :                                                                         _o1[0] = _r2;
   10452                 :             :                                                                       }
   10453                 :             :                                                                       if (TREE_TYPE (_o1[0]) != sizetype)
   10454                 :             :                                                                         {
   10455                 :             :                                                                           _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
   10456                 :             :                                                                         }
   10457                 :             :                                                                       else
   10458                 :             :                                                                         _r1 = _o1[0];
   10459                 :             :                                                                       res_op0 = _r1;
   10460                 :             :                                                                     }
   10461                 :             :                                                                     tree res_op1;
   10462                 :             :                                                                     res_op1 =  rhs_tree;
   10463                 :             :                                                                     tree _r;
   10464                 :             :                                                                     _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
   10465                 :             :                                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 903, __FILE__, __LINE__, true);
   10466                 :         394 :                                                                     return _r;
   10467                 :             :                                                                   }
   10468                 :             : next_after_fail1763:;
   10469                 :             :                                                                 }
   10470                 :             :                                                               else
   10471                 :             :                                                                 {
   10472                 :         394 :                                                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1764;
   10473                 :         394 :                                                                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1764;
   10474                 :         394 :                                                                   if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1764;
   10475                 :         394 :                                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1764;
   10476                 :         394 :                                                                   {
   10477                 :         394 :                                                                     tree res_op0;
   10478                 :         394 :                                                                     {
   10479                 :         394 :                                                                       tree _o1[1], _r1;
   10480                 :         394 :                                                                       {
   10481                 :         394 :                                                                         tree _o2[2], _r2;
   10482                 :         394 :                                                                         {
   10483                 :         394 :                                                                           tree _o3[2], _r3;
   10484                 :         394 :                                                                           _o3[0] =  swap_p ? captures[4] : captures[2];
   10485                 :         394 :                                                                           _o3[1] =  wide_int_to_tree (sizetype, off);
   10486                 :         394 :                                                                           _r3 = fold_build2_loc (loc, POINTER_PLUS_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
   10487                 :         394 :                                                                           _o2[0] = _r3;
   10488                 :             :                                                                         }
   10489                 :         394 :                                                                         _o2[1] =  swap_p ? captures[2] : captures[4];
   10490                 :         394 :                                                                         _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
   10491                 :         394 :                                                                         _o1[0] = _r2;
   10492                 :             :                                                                       }
   10493                 :         394 :                                                                       if (TREE_TYPE (_o1[0]) != sizetype)
   10494                 :             :                                                                         {
   10495                 :         394 :                                                                           _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
   10496                 :             :                                                                         }
   10497                 :             :                                                                       else
   10498                 :             :                                                                         _r1 = _o1[0];
   10499                 :         394 :                                                                       res_op0 = _r1;
   10500                 :             :                                                                     }
   10501                 :         394 :                                                                     tree res_op1;
   10502                 :         394 :                                                                     res_op1 =  rhs_tree;
   10503                 :         394 :                                                                     tree _r;
   10504                 :         394 :                                                                     _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
   10505                 :         394 :                                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 904, __FILE__, __LINE__, true);
   10506                 :         394 :                                                                     return _r;
   10507                 :             :                                                                   }
   10508                 :           0 : next_after_fail1764:;
   10509                 :             :                                                                 }
   10510                 :             :                                                           }
   10511                 :             :                                                         }
   10512                 :             :                                                   }
   10513                 :             :                                                 }
   10514                 :             :                                             }
   10515                 :             :                                           }
   10516                 :             :                                       }
   10517                 :             :                                   }
   10518                 :             :                                 break;
   10519                 :             :                               }
   10520                 :             :                             default:;
   10521                 :             :                             }
   10522                 :             :                           break;
   10523                 :             :                         }
   10524                 :          85 :                       case GE_EXPR:
   10525                 :          85 :                         {
   10526                 :          85 :                           tree _q70 = TREE_OPERAND (_p1, 0);
   10527                 :          85 :                           tree _q71 = TREE_OPERAND (_p1, 1);
   10528                 :          85 :                           if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
   10529                 :             :                             {
   10530                 :          14 :                               switch (TREE_CODE (_q71))
   10531                 :             :                                 {
   10532                 :          14 :                                 case POINTER_PLUS_EXPR:
   10533                 :          14 :                                   {
   10534                 :          14 :                                     tree _q90 = TREE_OPERAND (_q71, 0);
   10535                 :          14 :                                     tree _q91 = TREE_OPERAND (_q71, 1);
   10536                 :          14 :                                     if ((_q90 == _q21 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q21, 0) && types_match (_q90, _q21)))
   10537                 :             :                                       {
   10538                 :          12 :                                         if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
   10539                 :             :                                           {
   10540                 :           9 :                                             {
   10541                 :           9 :                                               tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q71 };
   10542                 :           9 :                                               const enum tree_code cmp = LE_EXPR;
   10543                 :           9 :                                               if (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[2]))
   10544                 :           9 :  && TYPE_OVERFLOW_WRAPS (sizetype)
   10545                 :          18 :  && TYPE_PRECISION (TREE_TYPE (captures[2])) == TYPE_PRECISION (sizetype)
   10546                 :             : )
   10547                 :             :                                                 {
   10548                 :           9 :                                                   {
   10549                 :           9 :  offset_int off = wi::to_offset (captures[3]) - (cmp == LE_EXPR ? 1 : 0);
   10550                 :           9 :  offset_int rhs = off * 2;
   10551                 :           9 :                                                       if (wi::min_precision (rhs, UNSIGNED) <= TYPE_PRECISION (sizetype)
   10552                 :             : )
   10553                 :             :                                                         {
   10554                 :           9 :                                                           {
   10555                 :           9 :  bool swap_p = tree_swap_operands_p (captures[2], captures[4]);
   10556                 :           9 :  tree rhs_tree = wide_int_to_tree (sizetype, rhs);
   10557                 :           9 :                                                               if (cmp == LT_EXPR
   10558                 :             : )
   10559                 :             :                                                                 {
   10560                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1765;
   10561                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1765;
   10562                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1765;
   10563                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1765;
   10564                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[6])) goto next_after_fail1765;
   10565                 :             :                                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1765;
   10566                 :             :                                                                   {
   10567                 :             :                                                                     tree res_op0;
   10568                 :             :                                                                     {
   10569                 :             :                                                                       tree _o1[1], _r1;
   10570                 :             :                                                                       {
   10571                 :             :                                                                         tree _o2[2], _r2;
   10572                 :             :                                                                         _o2[0] =  swap_p ? captures[6] : captures[1];
   10573                 :             :                                                                         _o2[1] =  swap_p ? captures[2] : captures[4];
   10574                 :             :                                                                         _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
   10575                 :             :                                                                         _o1[0] = _r2;
   10576                 :             :                                                                       }
   10577                 :             :                                                                       if (TREE_TYPE (_o1[0]) != sizetype)
   10578                 :             :                                                                         {
   10579                 :             :                                                                           _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
   10580                 :             :                                                                         }
   10581                 :             :                                                                       else
   10582                 :             :                                                                         _r1 = _o1[0];
   10583                 :             :                                                                       res_op0 = _r1;
   10584                 :             :                                                                     }
   10585                 :             :                                                                     tree res_op1;
   10586                 :             :                                                                     res_op1 =  rhs_tree;
   10587                 :             :                                                                     tree _r;
   10588                 :             :                                                                     _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
   10589                 :             :                                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 903, __FILE__, __LINE__, true);
   10590                 :           9 :                                                                     return _r;
   10591                 :             :                                                                   }
   10592                 :             : next_after_fail1765:;
   10593                 :             :                                                                 }
   10594                 :             :                                                               else
   10595                 :             :                                                                 {
   10596                 :           9 :                                                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1766;
   10597                 :           9 :                                                                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1766;
   10598                 :           9 :                                                                   if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1766;
   10599                 :           9 :                                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1766;
   10600                 :           9 :                                                                   {
   10601                 :           9 :                                                                     tree res_op0;
   10602                 :           9 :                                                                     {
   10603                 :           9 :                                                                       tree _o1[1], _r1;
   10604                 :           9 :                                                                       {
   10605                 :           9 :                                                                         tree _o2[2], _r2;
   10606                 :           9 :                                                                         {
   10607                 :           9 :                                                                           tree _o3[2], _r3;
   10608                 :           9 :                                                                           _o3[0] =  swap_p ? captures[4] : captures[2];
   10609                 :           9 :                                                                           _o3[1] =  wide_int_to_tree (sizetype, off);
   10610                 :           9 :                                                                           _r3 = fold_build2_loc (loc, POINTER_PLUS_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
   10611                 :           9 :                                                                           _o2[0] = _r3;
   10612                 :             :                                                                         }
   10613                 :           9 :                                                                         _o2[1] =  swap_p ? captures[2] : captures[4];
   10614                 :           9 :                                                                         _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
   10615                 :           9 :                                                                         _o1[0] = _r2;
   10616                 :             :                                                                       }
   10617                 :           9 :                                                                       if (TREE_TYPE (_o1[0]) != sizetype)
   10618                 :             :                                                                         {
   10619                 :           9 :                                                                           _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
   10620                 :             :                                                                         }
   10621                 :             :                                                                       else
   10622                 :             :                                                                         _r1 = _o1[0];
   10623                 :           9 :                                                                       res_op0 = _r1;
   10624                 :             :                                                                     }
   10625                 :           9 :                                                                     tree res_op1;
   10626                 :           9 :                                                                     res_op1 =  rhs_tree;
   10627                 :           9 :                                                                     tree _r;
   10628                 :           9 :                                                                     _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
   10629                 :           9 :                                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 904, __FILE__, __LINE__, true);
   10630                 :           9 :                                                                     return _r;
   10631                 :             :                                                                   }
   10632                 :           0 : next_after_fail1766:;
   10633                 :             :                                                                 }
   10634                 :             :                                                           }
   10635                 :             :                                                         }
   10636                 :             :                                                   }
   10637                 :             :                                                 }
   10638                 :             :                                             }
   10639                 :             :                                           }
   10640                 :             :                                       }
   10641                 :             :                                     break;
   10642                 :             :                                   }
   10643                 :             :                                 default:;
   10644                 :             :                                 }
   10645                 :             :                             }
   10646                 :             :                           break;
   10647                 :             :                         }
   10648                 :             :                       default:;
   10649                 :             :                       }
   10650                 :             :                     break;
   10651                 :             :                   }
   10652                 :             :                 default:;
   10653                 :             :                 }
   10654                 :             :               break;
   10655                 :             :             }
   10656                 :             :           default:;
   10657                 :             :           }
   10658                 :             :         break;
   10659                 :             :       }
   10660                 :     1041649 :     case LT_EXPR:
   10661                 :     1041649 :       {
   10662                 :     1041649 :         tree _q20 = TREE_OPERAND (_p0, 0);
   10663                 :     1041649 :         tree _q21 = TREE_OPERAND (_p0, 1);
   10664                 :     1041649 :         switch (TREE_CODE (_q20))
   10665                 :             :           {
   10666                 :        2299 :           case POINTER_PLUS_EXPR:
   10667                 :        2299 :             {
   10668                 :        2299 :               tree _q30 = TREE_OPERAND (_q20, 0);
   10669                 :        2299 :               tree _q31 = TREE_OPERAND (_q20, 1);
   10670                 :        2299 :               switch (TREE_CODE (_q31))
   10671                 :             :                 {
   10672                 :        2113 :                 case INTEGER_CST:
   10673                 :        2113 :                   {
   10674                 :        2113 :                     switch (TREE_CODE (_p1))
   10675                 :             :                       {
   10676                 :         137 :                       case LT_EXPR:
   10677                 :         137 :                         {
   10678                 :         137 :                           tree _q70 = TREE_OPERAND (_p1, 0);
   10679                 :         137 :                           tree _q71 = TREE_OPERAND (_p1, 1);
   10680                 :         137 :                           switch (TREE_CODE (_q70))
   10681                 :             :                             {
   10682                 :          10 :                             case POINTER_PLUS_EXPR:
   10683                 :          10 :                               {
   10684                 :          10 :                                 tree _q80 = TREE_OPERAND (_q70, 0);
   10685                 :          10 :                                 tree _q81 = TREE_OPERAND (_q70, 1);
   10686                 :          10 :                                 if ((_q80 == _q21 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q21, 0) && types_match (_q80, _q21)))
   10687                 :             :                                   {
   10688                 :           1 :                                     if ((_q81 == _q31 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q31, 0) && types_match (_q81, _q31)))
   10689                 :             :                                       {
   10690                 :           1 :                                         if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
   10691                 :             :                                           {
   10692                 :           1 :                                             {
   10693                 :           1 :                                               tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q70 };
   10694                 :           1 :                                               const enum tree_code cmp = LT_EXPR;
   10695                 :           1 :                                               if (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[2]))
   10696                 :           0 :  && TYPE_OVERFLOW_WRAPS (sizetype)
   10697                 :           1 :  && TYPE_PRECISION (TREE_TYPE (captures[2])) == TYPE_PRECISION (sizetype)
   10698                 :             : )
   10699                 :             :                                                 {
   10700                 :           0 :                                                   {
   10701                 :           0 :  offset_int off = wi::to_offset (captures[3]) - (cmp == LE_EXPR ? 1 : 0);
   10702                 :           0 :  offset_int rhs = off * 2;
   10703                 :           0 :                                                       if (wi::min_precision (rhs, UNSIGNED) <= TYPE_PRECISION (sizetype)
   10704                 :             : )
   10705                 :             :                                                         {
   10706                 :           0 :                                                           {
   10707                 :           0 :  bool swap_p = tree_swap_operands_p (captures[2], captures[4]);
   10708                 :           0 :  tree rhs_tree = wide_int_to_tree (sizetype, rhs);
   10709                 :           0 :                                                               if (cmp == LT_EXPR
   10710                 :             : )
   10711                 :             :                                                                 {
   10712                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1767;
   10713                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1767;
   10714                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1767;
   10715                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1767;
   10716                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[6])) goto next_after_fail1767;
   10717                 :           0 :                                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1767;
   10718                 :           0 :                                                                   {
   10719                 :           0 :                                                                     tree res_op0;
   10720                 :           0 :                                                                     {
   10721                 :           0 :                                                                       tree _o1[1], _r1;
   10722                 :           0 :                                                                       {
   10723                 :           0 :                                                                         tree _o2[2], _r2;
   10724                 :           0 :                                                                         _o2[0] =  swap_p ? captures[6] : captures[1];
   10725                 :           0 :                                                                         _o2[1] =  swap_p ? captures[2] : captures[4];
   10726                 :           0 :                                                                         _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
   10727                 :           0 :                                                                         _o1[0] = _r2;
   10728                 :             :                                                                       }
   10729                 :           0 :                                                                       if (TREE_TYPE (_o1[0]) != sizetype)
   10730                 :             :                                                                         {
   10731                 :           0 :                                                                           _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
   10732                 :             :                                                                         }
   10733                 :             :                                                                       else
   10734                 :             :                                                                         _r1 = _o1[0];
   10735                 :           0 :                                                                       res_op0 = _r1;
   10736                 :             :                                                                     }
   10737                 :           0 :                                                                     tree res_op1;
   10738                 :           0 :                                                                     res_op1 =  rhs_tree;
   10739                 :           0 :                                                                     tree _r;
   10740                 :           0 :                                                                     _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
   10741                 :           0 :                                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 903, __FILE__, __LINE__, true);
   10742                 :           0 :                                                                     return _r;
   10743                 :             :                                                                   }
   10744                 :           0 : next_after_fail1767:;
   10745                 :             :                                                                 }
   10746                 :             :                                                               else
   10747                 :             :                                                                 {
   10748                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1768;
   10749                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1768;
   10750                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1768;
   10751                 :             :                                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1768;
   10752                 :             :                                                                   {
   10753                 :             :                                                                     tree res_op0;
   10754                 :             :                                                                     {
   10755                 :             :                                                                       tree _o1[1], _r1;
   10756                 :             :                                                                       {
   10757                 :             :                                                                         tree _o2[2], _r2;
   10758                 :             :                                                                         {
   10759                 :             :                                                                           tree _o3[2], _r3;
   10760                 :             :                                                                           _o3[0] =  swap_p ? captures[4] : captures[2];
   10761                 :             :                                                                           _o3[1] =  wide_int_to_tree (sizetype, off);
   10762                 :             :                                                                           _r3 = fold_build2_loc (loc, POINTER_PLUS_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
   10763                 :             :                                                                           _o2[0] = _r3;
   10764                 :             :                                                                         }
   10765                 :             :                                                                         _o2[1] =  swap_p ? captures[2] : captures[4];
   10766                 :             :                                                                         _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
   10767                 :             :                                                                         _o1[0] = _r2;
   10768                 :             :                                                                       }
   10769                 :             :                                                                       if (TREE_TYPE (_o1[0]) != sizetype)
   10770                 :             :                                                                         {
   10771                 :             :                                                                           _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
   10772                 :             :                                                                         }
   10773                 :             :                                                                       else
   10774                 :             :                                                                         _r1 = _o1[0];
   10775                 :             :                                                                       res_op0 = _r1;
   10776                 :             :                                                                     }
   10777                 :             :                                                                     tree res_op1;
   10778                 :             :                                                                     res_op1 =  rhs_tree;
   10779                 :             :                                                                     tree _r;
   10780                 :             :                                                                     _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
   10781                 :             :                                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 904, __FILE__, __LINE__, true);
   10782                 :             :                                                                     return _r;
   10783                 :             :                                                                   }
   10784                 :             : next_after_fail1768:;
   10785                 :             :                                                                 }
   10786                 :             :                                                           }
   10787                 :             :                                                         }
   10788                 :             :                                                   }
   10789                 :             :                                                 }
   10790                 :             :                                             }
   10791                 :             :                                           }
   10792                 :             :                                       }
   10793                 :             :                                   }
   10794                 :             :                                 break;
   10795                 :             :                               }
   10796                 :             :                             default:;
   10797                 :             :                             }
   10798                 :             :                           break;
   10799                 :             :                         }
   10800                 :        1238 :                       case GT_EXPR:
   10801                 :        1238 :                         {
   10802                 :        1238 :                           tree _q70 = TREE_OPERAND (_p1, 0);
   10803                 :        1238 :                           tree _q71 = TREE_OPERAND (_p1, 1);
   10804                 :        1238 :                           if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
   10805                 :             :                             {
   10806                 :           0 :                               switch (TREE_CODE (_q71))
   10807                 :             :                                 {
   10808                 :           0 :                                 case POINTER_PLUS_EXPR:
   10809                 :           0 :                                   {
   10810                 :           0 :                                     tree _q90 = TREE_OPERAND (_q71, 0);
   10811                 :           0 :                                     tree _q91 = TREE_OPERAND (_q71, 1);
   10812                 :           0 :                                     if ((_q90 == _q21 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q21, 0) && types_match (_q90, _q21)))
   10813                 :             :                                       {
   10814                 :           0 :                                         if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
   10815                 :             :                                           {
   10816                 :           0 :                                             {
   10817                 :           0 :                                               tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q71 };
   10818                 :           0 :                                               const enum tree_code cmp = LT_EXPR;
   10819                 :           0 :                                               if (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[2]))
   10820                 :           0 :  && TYPE_OVERFLOW_WRAPS (sizetype)
   10821                 :           0 :  && TYPE_PRECISION (TREE_TYPE (captures[2])) == TYPE_PRECISION (sizetype)
   10822                 :             : )
   10823                 :             :                                                 {
   10824                 :           0 :                                                   {
   10825                 :           0 :  offset_int off = wi::to_offset (captures[3]) - (cmp == LE_EXPR ? 1 : 0);
   10826                 :           0 :  offset_int rhs = off * 2;
   10827                 :           0 :                                                       if (wi::min_precision (rhs, UNSIGNED) <= TYPE_PRECISION (sizetype)
   10828                 :             : )
   10829                 :             :                                                         {
   10830                 :           0 :                                                           {
   10831                 :           0 :  bool swap_p = tree_swap_operands_p (captures[2], captures[4]);
   10832                 :           0 :  tree rhs_tree = wide_int_to_tree (sizetype, rhs);
   10833                 :           0 :                                                               if (cmp == LT_EXPR
   10834                 :             : )
   10835                 :             :                                                                 {
   10836                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1769;
   10837                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1769;
   10838                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1769;
   10839                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1769;
   10840                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[6])) goto next_after_fail1769;
   10841                 :           0 :                                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1769;
   10842                 :           0 :                                                                   {
   10843                 :           0 :                                                                     tree res_op0;
   10844                 :           0 :                                                                     {
   10845                 :           0 :                                                                       tree _o1[1], _r1;
   10846                 :           0 :                                                                       {
   10847                 :           0 :                                                                         tree _o2[2], _r2;
   10848                 :           0 :                                                                         _o2[0] =  swap_p ? captures[6] : captures[1];
   10849                 :           0 :                                                                         _o2[1] =  swap_p ? captures[2] : captures[4];
   10850                 :           0 :                                                                         _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
   10851                 :           0 :                                                                         _o1[0] = _r2;
   10852                 :             :                                                                       }
   10853                 :           0 :                                                                       if (TREE_TYPE (_o1[0]) != sizetype)
   10854                 :             :                                                                         {
   10855                 :           0 :                                                                           _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
   10856                 :             :                                                                         }
   10857                 :             :                                                                       else
   10858                 :             :                                                                         _r1 = _o1[0];
   10859                 :           0 :                                                                       res_op0 = _r1;
   10860                 :             :                                                                     }
   10861                 :           0 :                                                                     tree res_op1;
   10862                 :           0 :                                                                     res_op1 =  rhs_tree;
   10863                 :           0 :                                                                     tree _r;
   10864                 :           0 :                                                                     _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
   10865                 :           0 :                                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 903, __FILE__, __LINE__, true);
   10866                 :           0 :                                                                     return _r;
   10867                 :             :                                                                   }
   10868                 :           0 : next_after_fail1769:;
   10869                 :             :                                                                 }
   10870                 :             :                                                               else
   10871                 :             :                                                                 {
   10872                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1770;
   10873                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1770;
   10874                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1770;
   10875                 :             :                                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1770;
   10876                 :             :                                                                   {
   10877                 :             :                                                                     tree res_op0;
   10878                 :             :                                                                     {
   10879                 :             :                                                                       tree _o1[1], _r1;
   10880                 :             :                                                                       {
   10881                 :             :                                                                         tree _o2[2], _r2;
   10882                 :             :                                                                         {
   10883                 :             :                                                                           tree _o3[2], _r3;
   10884                 :             :                                                                           _o3[0] =  swap_p ? captures[4] : captures[2];
   10885                 :             :                                                                           _o3[1] =  wide_int_to_tree (sizetype, off);
   10886                 :             :                                                                           _r3 = fold_build2_loc (loc, POINTER_PLUS_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
   10887                 :             :                                                                           _o2[0] = _r3;
   10888                 :             :                                                                         }
   10889                 :             :                                                                         _o2[1] =  swap_p ? captures[2] : captures[4];
   10890                 :             :                                                                         _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
   10891                 :             :                                                                         _o1[0] = _r2;
   10892                 :             :                                                                       }
   10893                 :             :                                                                       if (TREE_TYPE (_o1[0]) != sizetype)
   10894                 :             :                                                                         {
   10895                 :             :                                                                           _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
   10896                 :             :                                                                         }
   10897                 :             :                                                                       else
   10898                 :             :                                                                         _r1 = _o1[0];
   10899                 :             :                                                                       res_op0 = _r1;
   10900                 :             :                                                                     }
   10901                 :             :                                                                     tree res_op1;
   10902                 :             :                                                                     res_op1 =  rhs_tree;
   10903                 :             :                                                                     tree _r;
   10904                 :             :                                                                     _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
   10905                 :             :                                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 904, __FILE__, __LINE__, true);
   10906                 :             :                                                                     return _r;
   10907                 :             :                                                                   }
   10908                 :             : next_after_fail1770:;
   10909                 :             :                                                                 }
   10910                 :             :                                                           }
   10911                 :             :                                                         }
   10912                 :             :                                                   }
   10913                 :             :                                                 }
   10914                 :             :                                             }
   10915                 :             :                                           }
   10916                 :             :                                       }
   10917                 :             :                                     break;
   10918                 :             :                                   }
   10919                 :             :                                 default:;
   10920                 :             :                                 }
   10921                 :             :                             }
   10922                 :             :                           break;
   10923                 :             :                         }
   10924                 :             :                       default:;
   10925                 :             :                       }
   10926                 :             :                     break;
   10927                 :             :                   }
   10928                 :             :                 default:;
   10929                 :             :                 }
   10930                 :             :               break;
   10931                 :             :             }
   10932                 :             :           default:;
   10933                 :             :           }
   10934                 :             :         break;
   10935                 :             :       }
   10936                 :      784193 :     case GE_EXPR:
   10937                 :      784193 :       {
   10938                 :      784193 :         tree _q20 = TREE_OPERAND (_p0, 0);
   10939                 :      784193 :         tree _q21 = TREE_OPERAND (_p0, 1);
   10940                 :      784193 :         switch (TREE_CODE (_q21))
   10941                 :             :           {
   10942                 :          52 :           case POINTER_PLUS_EXPR:
   10943                 :          52 :             {
   10944                 :          52 :               tree _q40 = TREE_OPERAND (_q21, 0);
   10945                 :          52 :               tree _q41 = TREE_OPERAND (_q21, 1);
   10946                 :          52 :               switch (TREE_CODE (_q41))
   10947                 :             :                 {
   10948                 :          52 :                 case INTEGER_CST:
   10949                 :          52 :                   {
   10950                 :          52 :                     switch (TREE_CODE (_p1))
   10951                 :             :                       {
   10952                 :          52 :                       case LE_EXPR:
   10953                 :          52 :                         {
   10954                 :          52 :                           tree _q70 = TREE_OPERAND (_p1, 0);
   10955                 :          52 :                           tree _q71 = TREE_OPERAND (_p1, 1);
   10956                 :          52 :                           switch (TREE_CODE (_q70))
   10957                 :             :                             {
   10958                 :          42 :                             case POINTER_PLUS_EXPR:
   10959                 :          42 :                               {
   10960                 :          42 :                                 tree _q80 = TREE_OPERAND (_q70, 0);
   10961                 :          42 :                                 tree _q81 = TREE_OPERAND (_q70, 1);
   10962                 :          42 :                                 if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
   10963                 :             :                                   {
   10964                 :          27 :                                     if ((_q81 == _q41 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q41, 0) && types_match (_q81, _q41)))
   10965                 :             :                                       {
   10966                 :           3 :                                         if ((_q71 == _q40 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q40, 0) && types_match (_q71, _q40)))
   10967                 :             :                                           {
   10968                 :           3 :                                             {
   10969                 :           3 :                                               tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q21, _q40, _q41, _q20, _p1, _q70 };
   10970                 :           3 :                                               const enum tree_code cmp = LE_EXPR;
   10971                 :           3 :                                               if (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[2]))
   10972                 :           3 :  && TYPE_OVERFLOW_WRAPS (sizetype)
   10973                 :           6 :  && TYPE_PRECISION (TREE_TYPE (captures[2])) == TYPE_PRECISION (sizetype)
   10974                 :             : )
   10975                 :             :                                                 {
   10976                 :           3 :                                                   {
   10977                 :           3 :  offset_int off = wi::to_offset (captures[3]) - (cmp == LE_EXPR ? 1 : 0);
   10978                 :           3 :  offset_int rhs = off * 2;
   10979                 :           3 :                                                       if (wi::min_precision (rhs, UNSIGNED) <= TYPE_PRECISION (sizetype)
   10980                 :             : )
   10981                 :             :                                                         {
   10982                 :           3 :                                                           {
   10983                 :           3 :  bool swap_p = tree_swap_operands_p (captures[2], captures[4]);
   10984                 :           3 :  tree rhs_tree = wide_int_to_tree (sizetype, rhs);
   10985                 :           3 :                                                               if (cmp == LT_EXPR
   10986                 :             : )
   10987                 :             :                                                                 {
   10988                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1771;
   10989                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1771;
   10990                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1771;
   10991                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1771;
   10992                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[6])) goto next_after_fail1771;
   10993                 :             :                                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1771;
   10994                 :             :                                                                   {
   10995                 :             :                                                                     tree res_op0;
   10996                 :             :                                                                     {
   10997                 :             :                                                                       tree _o1[1], _r1;
   10998                 :             :                                                                       {
   10999                 :             :                                                                         tree _o2[2], _r2;
   11000                 :             :                                                                         _o2[0] =  swap_p ? captures[6] : captures[1];
   11001                 :             :                                                                         _o2[1] =  swap_p ? captures[2] : captures[4];
   11002                 :             :                                                                         _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
   11003                 :             :                                                                         _o1[0] = _r2;
   11004                 :             :                                                                       }
   11005                 :             :                                                                       if (TREE_TYPE (_o1[0]) != sizetype)
   11006                 :             :                                                                         {
   11007                 :             :                                                                           _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
   11008                 :             :                                                                         }
   11009                 :             :                                                                       else
   11010                 :             :                                                                         _r1 = _o1[0];
   11011                 :             :                                                                       res_op0 = _r1;
   11012                 :             :                                                                     }
   11013                 :             :                                                                     tree res_op1;
   11014                 :             :                                                                     res_op1 =  rhs_tree;
   11015                 :             :                                                                     tree _r;
   11016                 :             :                                                                     _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
   11017                 :             :                                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 903, __FILE__, __LINE__, true);
   11018                 :           3 :                                                                     return _r;
   11019                 :             :                                                                   }
   11020                 :             : next_after_fail1771:;
   11021                 :             :                                                                 }
   11022                 :             :                                                               else
   11023                 :             :                                                                 {
   11024                 :           3 :                                                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1772;
   11025                 :           3 :                                                                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1772;
   11026                 :           3 :                                                                   if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1772;
   11027                 :           3 :                                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1772;
   11028                 :           3 :                                                                   {
   11029                 :           3 :                                                                     tree res_op0;
   11030                 :           3 :                                                                     {
   11031                 :           3 :                                                                       tree _o1[1], _r1;
   11032                 :           3 :                                                                       {
   11033                 :           3 :                                                                         tree _o2[2], _r2;
   11034                 :           3 :                                                                         {
   11035                 :           3 :                                                                           tree _o3[2], _r3;
   11036                 :           3 :                                                                           _o3[0] =  swap_p ? captures[4] : captures[2];
   11037                 :           3 :                                                                           _o3[1] =  wide_int_to_tree (sizetype, off);
   11038                 :           3 :                                                                           _r3 = fold_build2_loc (loc, POINTER_PLUS_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
   11039                 :           3 :                                                                           _o2[0] = _r3;
   11040                 :             :                                                                         }
   11041                 :           3 :                                                                         _o2[1] =  swap_p ? captures[2] : captures[4];
   11042                 :           3 :                                                                         _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
   11043                 :           3 :                                                                         _o1[0] = _r2;
   11044                 :             :                                                                       }
   11045                 :           3 :                                                                       if (TREE_TYPE (_o1[0]) != sizetype)
   11046                 :             :                                                                         {
   11047                 :           3 :                                                                           _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
   11048                 :             :                                                                         }
   11049                 :             :                                                                       else
   11050                 :             :                                                                         _r1 = _o1[0];
   11051                 :           3 :                                                                       res_op0 = _r1;
   11052                 :             :                                                                     }
   11053                 :           3 :                                                                     tree res_op1;
   11054                 :           3 :                                                                     res_op1 =  rhs_tree;
   11055                 :           3 :                                                                     tree _r;
   11056                 :           3 :                                                                     _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
   11057                 :           3 :                                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 904, __FILE__, __LINE__, true);
   11058                 :           3 :                                                                     return _r;
   11059                 :             :                                                                   }
   11060                 :           0 : next_after_fail1772:;
   11061                 :             :                                                                 }
   11062                 :             :                                                           }
   11063                 :             :                                                         }
   11064                 :             :                                                   }
   11065                 :             :                                                 }
   11066                 :             :                                             }
   11067                 :             :                                           }
   11068                 :             :                                       }
   11069                 :             :                                   }
   11070                 :             :                                 break;
   11071                 :             :                               }
   11072                 :             :                             default:;
   11073                 :             :                             }
   11074                 :             :                           break;
   11075                 :             :                         }
   11076                 :           0 :                       case GE_EXPR:
   11077                 :           0 :                         {
   11078                 :           0 :                           tree _q70 = TREE_OPERAND (_p1, 0);
   11079                 :           0 :                           tree _q71 = TREE_OPERAND (_p1, 1);
   11080                 :           0 :                           if ((_q70 == _q40 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q40, 0) && types_match (_q70, _q40)))
   11081                 :             :                             {
   11082                 :           0 :                               switch (TREE_CODE (_q71))
   11083                 :             :                                 {
   11084                 :           0 :                                 case POINTER_PLUS_EXPR:
   11085                 :           0 :                                   {
   11086                 :           0 :                                     tree _q90 = TREE_OPERAND (_q71, 0);
   11087                 :           0 :                                     tree _q91 = TREE_OPERAND (_q71, 1);
   11088                 :           0 :                                     if ((_q90 == _q20 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q20, 0) && types_match (_q90, _q20)))
   11089                 :             :                                       {
   11090                 :           0 :                                         if ((_q91 == _q41 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q41, 0) && types_match (_q91, _q41)))
   11091                 :             :                                           {
   11092                 :           0 :                                             {
   11093                 :           0 :                                               tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q21, _q40, _q41, _q20, _p1, _q71 };
   11094                 :           0 :                                               const enum tree_code cmp = LE_EXPR;
   11095                 :           0 :                                               if (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[2]))
   11096                 :           0 :  && TYPE_OVERFLOW_WRAPS (sizetype)
   11097                 :           0 :  && TYPE_PRECISION (TREE_TYPE (captures[2])) == TYPE_PRECISION (sizetype)
   11098                 :             : )
   11099                 :             :                                                 {
   11100                 :           0 :                                                   {
   11101                 :           0 :  offset_int off = wi::to_offset (captures[3]) - (cmp == LE_EXPR ? 1 : 0);
   11102                 :           0 :  offset_int rhs = off * 2;
   11103                 :           0 :                                                       if (wi::min_precision (rhs, UNSIGNED) <= TYPE_PRECISION (sizetype)
   11104                 :             : )
   11105                 :             :                                                         {
   11106                 :           0 :                                                           {
   11107                 :           0 :  bool swap_p = tree_swap_operands_p (captures[2], captures[4]);
   11108                 :           0 :  tree rhs_tree = wide_int_to_tree (sizetype, rhs);
   11109                 :           0 :                                                               if (cmp == LT_EXPR
   11110                 :             : )
   11111                 :             :                                                                 {
   11112                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1773;
   11113                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1773;
   11114                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1773;
   11115                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1773;
   11116                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[6])) goto next_after_fail1773;
   11117                 :             :                                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1773;
   11118                 :             :                                                                   {
   11119                 :             :                                                                     tree res_op0;
   11120                 :             :                                                                     {
   11121                 :             :                                                                       tree _o1[1], _r1;
   11122                 :             :                                                                       {
   11123                 :             :                                                                         tree _o2[2], _r2;
   11124                 :             :                                                                         _o2[0] =  swap_p ? captures[6] : captures[1];
   11125                 :             :                                                                         _o2[1] =  swap_p ? captures[2] : captures[4];
   11126                 :             :                                                                         _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
   11127                 :             :                                                                         _o1[0] = _r2;
   11128                 :             :                                                                       }
   11129                 :             :                                                                       if (TREE_TYPE (_o1[0]) != sizetype)
   11130                 :             :                                                                         {
   11131                 :             :                                                                           _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
   11132                 :             :                                                                         }
   11133                 :             :                                                                       else
   11134                 :             :                                                                         _r1 = _o1[0];
   11135                 :             :                                                                       res_op0 = _r1;
   11136                 :             :                                                                     }
   11137                 :             :                                                                     tree res_op1;
   11138                 :             :                                                                     res_op1 =  rhs_tree;
   11139                 :             :                                                                     tree _r;
   11140                 :             :                                                                     _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
   11141                 :             :                                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 903, __FILE__, __LINE__, true);
   11142                 :           0 :                                                                     return _r;
   11143                 :             :                                                                   }
   11144                 :             : next_after_fail1773:;
   11145                 :             :                                                                 }
   11146                 :             :                                                               else
   11147                 :             :                                                                 {
   11148                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1774;
   11149                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1774;
   11150                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1774;
   11151                 :           0 :                                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1774;
   11152                 :           0 :                                                                   {
   11153                 :           0 :                                                                     tree res_op0;
   11154                 :           0 :                                                                     {
   11155                 :           0 :                                                                       tree _o1[1], _r1;
   11156                 :           0 :                                                                       {
   11157                 :           0 :                                                                         tree _o2[2], _r2;
   11158                 :           0 :                                                                         {
   11159                 :           0 :                                                                           tree _o3[2], _r3;
   11160                 :           0 :                                                                           _o3[0] =  swap_p ? captures[4] : captures[2];
   11161                 :           0 :                                                                           _o3[1] =  wide_int_to_tree (sizetype, off);
   11162                 :           0 :                                                                           _r3 = fold_build2_loc (loc, POINTER_PLUS_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
   11163                 :           0 :                                                                           _o2[0] = _r3;
   11164                 :             :                                                                         }
   11165                 :           0 :                                                                         _o2[1] =  swap_p ? captures[2] : captures[4];
   11166                 :           0 :                                                                         _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
   11167                 :           0 :                                                                         _o1[0] = _r2;
   11168                 :             :                                                                       }
   11169                 :           0 :                                                                       if (TREE_TYPE (_o1[0]) != sizetype)
   11170                 :             :                                                                         {
   11171                 :           0 :                                                                           _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
   11172                 :             :                                                                         }
   11173                 :             :                                                                       else
   11174                 :             :                                                                         _r1 = _o1[0];
   11175                 :           0 :                                                                       res_op0 = _r1;
   11176                 :             :                                                                     }
   11177                 :           0 :                                                                     tree res_op1;
   11178                 :           0 :                                                                     res_op1 =  rhs_tree;
   11179                 :           0 :                                                                     tree _r;
   11180                 :           0 :                                                                     _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
   11181                 :           0 :                                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 904, __FILE__, __LINE__, true);
   11182                 :           0 :                                                                     return _r;
   11183                 :             :                                                                   }
   11184                 :           0 : next_after_fail1774:;
   11185                 :             :                                                                 }
   11186                 :             :                                                           }
   11187                 :             :                                                         }
   11188                 :             :                                                   }
   11189                 :             :                                                 }
   11190                 :             :                                             }
   11191                 :             :                                           }
   11192                 :             :                                       }
   11193                 :             :                                     break;
   11194                 :             :                                   }
   11195                 :             :                                 default:;
   11196                 :             :                                 }
   11197                 :             :                             }
   11198                 :             :                           break;
   11199                 :             :                         }
   11200                 :             :                       default:;
   11201                 :             :                       }
   11202                 :             :                     break;
   11203                 :             :                   }
   11204                 :             :                 default:;
   11205                 :             :                 }
   11206                 :             :               break;
   11207                 :             :             }
   11208                 :             :           default:;
   11209                 :             :           }
   11210                 :             :         break;
   11211                 :             :       }
   11212                 :     1166389 :     case GT_EXPR:
   11213                 :     1166389 :       {
   11214                 :     1166389 :         tree _q20 = TREE_OPERAND (_p0, 0);
   11215                 :     1166389 :         tree _q21 = TREE_OPERAND (_p0, 1);
   11216                 :     1166389 :         switch (TREE_CODE (_q21))
   11217                 :             :           {
   11218                 :          52 :           case POINTER_PLUS_EXPR:
   11219                 :          52 :             {
   11220                 :          52 :               tree _q40 = TREE_OPERAND (_q21, 0);
   11221                 :          52 :               tree _q41 = TREE_OPERAND (_q21, 1);
   11222                 :          52 :               switch (TREE_CODE (_q41))
   11223                 :             :                 {
   11224                 :          52 :                 case INTEGER_CST:
   11225                 :          52 :                   {
   11226                 :          52 :                     switch (TREE_CODE (_p1))
   11227                 :             :                       {
   11228                 :           0 :                       case LT_EXPR:
   11229                 :           0 :                         {
   11230                 :           0 :                           tree _q70 = TREE_OPERAND (_p1, 0);
   11231                 :           0 :                           tree _q71 = TREE_OPERAND (_p1, 1);
   11232                 :           0 :                           switch (TREE_CODE (_q70))
   11233                 :             :                             {
   11234                 :           0 :                             case POINTER_PLUS_EXPR:
   11235                 :           0 :                               {
   11236                 :           0 :                                 tree _q80 = TREE_OPERAND (_q70, 0);
   11237                 :           0 :                                 tree _q81 = TREE_OPERAND (_q70, 1);
   11238                 :           0 :                                 if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
   11239                 :             :                                   {
   11240                 :           0 :                                     if ((_q81 == _q41 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q41, 0) && types_match (_q81, _q41)))
   11241                 :             :                                       {
   11242                 :           0 :                                         if ((_q71 == _q40 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q40, 0) && types_match (_q71, _q40)))
   11243                 :             :                                           {
   11244                 :           0 :                                             {
   11245                 :           0 :                                               tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q21, _q40, _q41, _q20, _p1, _q70 };
   11246                 :           0 :                                               const enum tree_code cmp = LT_EXPR;
   11247                 :           0 :                                               if (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[2]))
   11248                 :           0 :  && TYPE_OVERFLOW_WRAPS (sizetype)
   11249                 :           0 :  && TYPE_PRECISION (TREE_TYPE (captures[2])) == TYPE_PRECISION (sizetype)
   11250                 :             : )
   11251                 :             :                                                 {
   11252                 :           0 :                                                   {
   11253                 :           0 :  offset_int off = wi::to_offset (captures[3]) - (cmp == LE_EXPR ? 1 : 0);
   11254                 :           0 :  offset_int rhs = off * 2;
   11255                 :           0 :                                                       if (wi::min_precision (rhs, UNSIGNED) <= TYPE_PRECISION (sizetype)
   11256                 :             : )
   11257                 :             :                                                         {
   11258                 :           0 :                                                           {
   11259                 :           0 :  bool swap_p = tree_swap_operands_p (captures[2], captures[4]);
   11260                 :           0 :  tree rhs_tree = wide_int_to_tree (sizetype, rhs);
   11261                 :           0 :                                                               if (cmp == LT_EXPR
   11262                 :             : )
   11263                 :             :                                                                 {
   11264                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1775;
   11265                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1775;
   11266                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1775;
   11267                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1775;
   11268                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[6])) goto next_after_fail1775;
   11269                 :           0 :                                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1775;
   11270                 :           0 :                                                                   {
   11271                 :           0 :                                                                     tree res_op0;
   11272                 :           0 :                                                                     {
   11273                 :           0 :                                                                       tree _o1[1], _r1;
   11274                 :           0 :                                                                       {
   11275                 :           0 :                                                                         tree _o2[2], _r2;
   11276                 :           0 :                                                                         _o2[0] =  swap_p ? captures[6] : captures[1];
   11277                 :           0 :                                                                         _o2[1] =  swap_p ? captures[2] : captures[4];
   11278                 :           0 :                                                                         _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
   11279                 :           0 :                                                                         _o1[0] = _r2;
   11280                 :             :                                                                       }
   11281                 :           0 :                                                                       if (TREE_TYPE (_o1[0]) != sizetype)
   11282                 :             :                                                                         {
   11283                 :           0 :                                                                           _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
   11284                 :             :                                                                         }
   11285                 :             :                                                                       else
   11286                 :             :                                                                         _r1 = _o1[0];
   11287                 :           0 :                                                                       res_op0 = _r1;
   11288                 :             :                                                                     }
   11289                 :           0 :                                                                     tree res_op1;
   11290                 :           0 :                                                                     res_op1 =  rhs_tree;
   11291                 :           0 :                                                                     tree _r;
   11292                 :           0 :                                                                     _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
   11293                 :           0 :                                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 903, __FILE__, __LINE__, true);
   11294                 :           0 :                                                                     return _r;
   11295                 :             :                                                                   }
   11296                 :           0 : next_after_fail1775:;
   11297                 :             :                                                                 }
   11298                 :             :                                                               else
   11299                 :             :                                                                 {
   11300                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1776;
   11301                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1776;
   11302                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1776;
   11303                 :             :                                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1776;
   11304                 :             :                                                                   {
   11305                 :             :                                                                     tree res_op0;
   11306                 :             :                                                                     {
   11307                 :             :                                                                       tree _o1[1], _r1;
   11308                 :             :                                                                       {
   11309                 :             :                                                                         tree _o2[2], _r2;
   11310                 :             :                                                                         {
   11311                 :             :                                                                           tree _o3[2], _r3;
   11312                 :             :                                                                           _o3[0] =  swap_p ? captures[4] : captures[2];
   11313                 :             :                                                                           _o3[1] =  wide_int_to_tree (sizetype, off);
   11314                 :             :                                                                           _r3 = fold_build2_loc (loc, POINTER_PLUS_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
   11315                 :             :                                                                           _o2[0] = _r3;
   11316                 :             :                                                                         }
   11317                 :             :                                                                         _o2[1] =  swap_p ? captures[2] : captures[4];
   11318                 :             :                                                                         _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
   11319                 :             :                                                                         _o1[0] = _r2;
   11320                 :             :                                                                       }
   11321                 :             :                                                                       if (TREE_TYPE (_o1[0]) != sizetype)
   11322                 :             :                                                                         {
   11323                 :             :                                                                           _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
   11324                 :             :                                                                         }
   11325                 :             :                                                                       else
   11326                 :             :                                                                         _r1 = _o1[0];
   11327                 :             :                                                                       res_op0 = _r1;
   11328                 :             :                                                                     }
   11329                 :             :                                                                     tree res_op1;
   11330                 :             :                                                                     res_op1 =  rhs_tree;
   11331                 :             :                                                                     tree _r;
   11332                 :             :                                                                     _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
   11333                 :             :                                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 904, __FILE__, __LINE__, true);
   11334                 :             :                                                                     return _r;
   11335                 :             :                                                                   }
   11336                 :             : next_after_fail1776:;
   11337                 :             :                                                                 }
   11338                 :             :                                                           }
   11339                 :             :                                                         }
   11340                 :             :                                                   }
   11341                 :             :                                                 }
   11342                 :             :                                             }
   11343                 :             :                                           }
   11344                 :             :                                       }
   11345                 :             :                                   }
   11346                 :             :                                 break;
   11347                 :             :                               }
   11348                 :             :                             default:;
   11349                 :             :                             }
   11350                 :             :                           break;
   11351                 :             :                         }
   11352                 :          20 :                       case GT_EXPR:
   11353                 :          20 :                         {
   11354                 :          20 :                           tree _q70 = TREE_OPERAND (_p1, 0);
   11355                 :          20 :                           tree _q71 = TREE_OPERAND (_p1, 1);
   11356                 :          20 :                           if ((_q70 == _q40 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q40, 0) && types_match (_q70, _q40)))
   11357                 :             :                             {
   11358                 :           0 :                               switch (TREE_CODE (_q71))
   11359                 :             :                                 {
   11360                 :           0 :                                 case POINTER_PLUS_EXPR:
   11361                 :           0 :                                   {
   11362                 :           0 :                                     tree _q90 = TREE_OPERAND (_q71, 0);
   11363                 :           0 :                                     tree _q91 = TREE_OPERAND (_q71, 1);
   11364                 :           0 :                                     if ((_q90 == _q20 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q20, 0) && types_match (_q90, _q20)))
   11365                 :             :                                       {
   11366                 :           0 :                                         if ((_q91 == _q41 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q41, 0) && types_match (_q91, _q41)))
   11367                 :             :                                           {
   11368                 :           0 :                                             {
   11369                 :           0 :                                               tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q21, _q40, _q41, _q20, _p1, _q71 };
   11370                 :           0 :                                               const enum tree_code cmp = LT_EXPR;
   11371                 :           0 :                                               if (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[2]))
   11372                 :           0 :  && TYPE_OVERFLOW_WRAPS (sizetype)
   11373                 :           0 :  && TYPE_PRECISION (TREE_TYPE (captures[2])) == TYPE_PRECISION (sizetype)
   11374                 :             : )
   11375                 :             :                                                 {
   11376                 :           0 :                                                   {
   11377                 :           0 :  offset_int off = wi::to_offset (captures[3]) - (cmp == LE_EXPR ? 1 : 0);
   11378                 :           0 :  offset_int rhs = off * 2;
   11379                 :           0 :                                                       if (wi::min_precision (rhs, UNSIGNED) <= TYPE_PRECISION (sizetype)
   11380                 :             : )
   11381                 :             :                                                         {
   11382                 :           0 :                                                           {
   11383                 :           0 :  bool swap_p = tree_swap_operands_p (captures[2], captures[4]);
   11384                 :           0 :  tree rhs_tree = wide_int_to_tree (sizetype, rhs);
   11385                 :           0 :                                                               if (cmp == LT_EXPR
   11386                 :             : )
   11387                 :             :                                                                 {
   11388                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1777;
   11389                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1777;
   11390                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1777;
   11391                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1777;
   11392                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[6])) goto next_after_fail1777;
   11393                 :           0 :                                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1777;
   11394                 :           0 :                                                                   {
   11395                 :           0 :                                                                     tree res_op0;
   11396                 :           0 :                                                                     {
   11397                 :           0 :                                                                       tree _o1[1], _r1;
   11398                 :           0 :                                                                       {
   11399                 :           0 :                                                                         tree _o2[2], _r2;
   11400                 :           0 :                                                                         _o2[0] =  swap_p ? captures[6] : captures[1];
   11401                 :           0 :                                                                         _o2[1] =  swap_p ? captures[2] : captures[4];
   11402                 :           0 :                                                                         _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
   11403                 :           0 :                                                                         _o1[0] = _r2;
   11404                 :             :                                                                       }
   11405                 :           0 :                                                                       if (TREE_TYPE (_o1[0]) != sizetype)
   11406                 :             :                                                                         {
   11407                 :           0 :                                                                           _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
   11408                 :             :                                                                         }
   11409                 :             :                                                                       else
   11410                 :             :                                                                         _r1 = _o1[0];
   11411                 :           0 :                                                                       res_op0 = _r1;
   11412                 :             :                                                                     }
   11413                 :           0 :                                                                     tree res_op1;
   11414                 :           0 :                                                                     res_op1 =  rhs_tree;
   11415                 :           0 :                                                                     tree _r;
   11416                 :           0 :                                                                     _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
   11417                 :           0 :                                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 903, __FILE__, __LINE__, true);
   11418                 :           0 :                                                                     return _r;
   11419                 :             :                                                                   }
   11420                 :           0 : next_after_fail1777:;
   11421                 :             :                                                                 }
   11422                 :             :                                                               else
   11423                 :             :                                                                 {
   11424                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1778;
   11425                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1778;
   11426                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1778;
   11427                 :             :                                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1778;
   11428                 :             :                                                                   {
   11429                 :             :                                                                     tree res_op0;
   11430                 :             :                                                                     {
   11431                 :             :                                                                       tree _o1[1], _r1;
   11432                 :             :                                                                       {
   11433                 :             :                                                                         tree _o2[2], _r2;
   11434                 :             :                                                                         {
   11435                 :             :                                                                           tree _o3[2], _r3;
   11436                 :             :                                                                           _o3[0] =  swap_p ? captures[4] : captures[2];
   11437                 :             :                                                                           _o3[1] =  wide_int_to_tree (sizetype, off);
   11438                 :             :                                                                           _r3 = fold_build2_loc (loc, POINTER_PLUS_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
   11439                 :             :                                                                           _o2[0] = _r3;
   11440                 :             :                                                                         }
   11441                 :             :                                                                         _o2[1] =  swap_p ? captures[2] : captures[4];
   11442                 :             :                                                                         _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
   11443                 :             :                                                                         _o1[0] = _r2;
   11444                 :             :                                                                       }
   11445                 :             :                                                                       if (TREE_TYPE (_o1[0]) != sizetype)
   11446                 :             :                                                                         {
   11447                 :             :                                                                           _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
   11448                 :             :                                                                         }
   11449                 :             :                                                                       else
   11450                 :             :                                                                         _r1 = _o1[0];
   11451                 :             :                                                                       res_op0 = _r1;
   11452                 :             :                                                                     }
   11453                 :             :                                                                     tree res_op1;
   11454                 :             :                                                                     res_op1 =  rhs_tree;
   11455                 :             :                                                                     tree _r;
   11456                 :             :                                                                     _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
   11457                 :             :                                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 904, __FILE__, __LINE__, true);
   11458                 :             :                                                                     return _r;
   11459                 :             :                                                                   }
   11460                 :             : next_after_fail1778:;
   11461                 :             :                                                                 }
   11462                 :             :                                                           }
   11463                 :             :                                                         }
   11464                 :             :                                                   }
   11465                 :             :                                                 }
   11466                 :             :                                             }
   11467                 :             :                                           }
   11468                 :             :                                       }
   11469                 :             :                                     break;
   11470                 :             :                                   }
   11471                 :             :                                 default:;
   11472                 :             :                                 }
   11473                 :             :                             }
   11474                 :             :                           break;
   11475                 :             :                         }
   11476                 :             :                       default:;
   11477                 :             :                       }
   11478                 :             :                     break;
   11479                 :             :                   }
   11480                 :             :                 default:;
   11481                 :             :                 }
   11482                 :             :               break;
   11483                 :             :             }
   11484                 :             :           default:;
   11485                 :             :           }
   11486                 :             :         break;
   11487                 :             :       }
   11488                 :             :     default:;
   11489                 :             :     }
   11490                 :             :   return NULL_TREE;
   11491                 :             : }
   11492                 :             : #pragma GCC diagnostic pop
        

Generated by: LCOV version 2.1-beta

LCOV profile is generated on x86_64 machine using following configure options: configure --disable-bootstrap --enable-coverage=opt --enable-languages=c,c++,fortran,go,jit,lto,rust,m2 --enable-host-shared. GCC test suite is run with the built compiler.