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: 45.7 % 7430 3395
Test Date: 2025-10-18 14:39:06 Functions: 72.0 % 75 54
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                 :    95391812 : tree_maybe_cmp (tree t, tree *res_ops)
      11                 :             : {
      12                 :    95391812 :   const tree type = TREE_TYPE (t);
      13                 :    95391812 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
      14                 :    95391812 :   if (TREE_SIDE_EFFECTS (t)) return false;
      15                 :    95391812 :   switch (TREE_CODE (t))
      16                 :             :     {
      17                 :      402162 :     case LT_EXPR:
      18                 :      402162 :     case LE_EXPR:
      19                 :      402162 :     case EQ_EXPR:
      20                 :      402162 :     case NE_EXPR:
      21                 :      402162 :     case GE_EXPR:
      22                 :      402162 :     case GT_EXPR:
      23                 :      402162 :     case UNORDERED_EXPR:
      24                 :      402162 :     case ORDERED_EXPR:
      25                 :      402162 :     case UNLT_EXPR:
      26                 :      402162 :     case UNLE_EXPR:
      27                 :      402162 :     case UNGT_EXPR:
      28                 :      402162 :     case UNGE_EXPR:
      29                 :      402162 :     case UNEQ_EXPR:
      30                 :      402162 :     case LTGT_EXPR:
      31                 :      402162 :       {
      32                 :      402162 :         tree _p0 = TREE_OPERAND (t, 0);
      33                 :      402162 :         tree _p1 = TREE_OPERAND (t, 1);
      34                 :      402162 :         {
      35                 :      402162 :           tree captures[3] ATTRIBUTE_UNUSED = { t, _p0, _p1 };
      36                 :      402162 :           {
      37                 :      402162 :             res_ops[0] = captures[0];
      38                 :      402162 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 5, __FILE__, __LINE__, false);
      39                 :      402162 :             return true;
      40                 :             :           }
      41                 :             :         }
      42                 :    15983946 :         break;
      43                 :             :       }
      44                 :    15983946 :     CASE_CONVERT:
      45                 :    15983946 :       {
      46                 :    15983946 :         tree _p0 = TREE_OPERAND (t, 0);
      47                 :    15983946 :         switch (TREE_CODE (_p0))
      48                 :             :           {
      49                 :        1426 :           case LT_EXPR:
      50                 :        1426 :           case LE_EXPR:
      51                 :        1426 :           case EQ_EXPR:
      52                 :        1426 :           case NE_EXPR:
      53                 :        1426 :           case GE_EXPR:
      54                 :        1426 :           case GT_EXPR:
      55                 :        1426 :           case UNORDERED_EXPR:
      56                 :        1426 :           case ORDERED_EXPR:
      57                 :        1426 :           case UNLT_EXPR:
      58                 :        1426 :           case UNLE_EXPR:
      59                 :        1426 :           case UNGT_EXPR:
      60                 :        1426 :           case UNGE_EXPR:
      61                 :        1426 :           case UNEQ_EXPR:
      62                 :        1426 :           case LTGT_EXPR:
      63                 :        1426 :             {
      64                 :        1426 :               tree _q20 = TREE_OPERAND (_p0, 0);
      65                 :        1426 :               tree _q21 = TREE_OPERAND (_p0, 1);
      66                 :        1426 :               {
      67                 :        1426 :                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
      68                 :        1426 :                 if (tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
      69                 :             : )
      70                 :             :                   {
      71                 :         759 :                     {
      72                 :         759 :                       res_ops[0] = captures[0];
      73                 :         759 :                       if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 6, __FILE__, __LINE__, false);
      74                 :         759 :                       return true;
      75                 :             :                     }
      76                 :             :                   }
      77                 :             :               }
      78                 :             :               break;
      79                 :             :             }
      80                 :             :           default:;
      81                 :             :           }
      82                 :             :         break;
      83                 :             :       }
      84                 :       59857 :     case BIT_XOR_EXPR:
      85                 :       59857 :       {
      86                 :       59857 :         tree _p0 = TREE_OPERAND (t, 0);
      87                 :       59857 :         tree _p1 = TREE_OPERAND (t, 1);
      88                 :       59857 :         {
      89                 :       59857 :           tree captures[3] ATTRIBUTE_UNUSED = { t, _p0, _p1 };
      90                 :       59857 :           if (INTEGRAL_TYPE_P (type)
      91                 :       59857 :  && TYPE_PRECISION (type) == 1
      92                 :             : )
      93                 :             :             {
      94                 :       24320 :               {
      95                 :       24320 :                 res_ops[0] = captures[0];
      96                 :       24320 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 7, __FILE__, __LINE__, false);
      97                 :       24320 :                 return true;
      98                 :             :               }
      99                 :             :             }
     100                 :             :         }
     101                 :             :         break;
     102                 :             :       }
     103                 :             :     default:;
     104                 :             :     }
     105                 :             :   return false;
     106                 :             : }
     107                 :             : 
     108                 :             : bool
     109                 :           0 : tree_unsigned_integer_sat_sub (tree t, tree *res_ops)
     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 :   switch (TREE_CODE (t))
     115                 :             :     {
     116                 :           0 :     case COND_EXPR:
     117                 :           0 :       {
     118                 :           0 :         tree _p0 = TREE_OPERAND (t, 0);
     119                 :           0 :         tree _p1 = TREE_OPERAND (t, 1);
     120                 :           0 :         tree _p2 = TREE_OPERAND (t, 2);
     121                 :           0 :         switch (TREE_CODE (_p0))
     122                 :             :           {
     123                 :           0 :           case GT_EXPR:
     124                 :           0 :             {
     125                 :           0 :               tree _q20 = TREE_OPERAND (_p0, 0);
     126                 :           0 :               tree _q21 = TREE_OPERAND (_p0, 1);
     127                 :           0 :               switch (TREE_CODE (_p1))
     128                 :             :                 {
     129                 :           0 :                 case MINUS_EXPR:
     130                 :           0 :                   {
     131                 :           0 :                     tree _q50 = TREE_OPERAND (_p1, 0);
     132                 :           0 :                     tree _q51 = TREE_OPERAND (_p1, 1);
     133                 :           0 :                     if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
     134                 :             :                       {
     135                 :           0 :                         if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
     136                 :             :                           {
     137                 :           0 :                             if (integer_zerop (_p2))
     138                 :             :                               {
     139                 :           0 :                                 {
     140                 :           0 :                                   tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
     141                 :           0 :                                   if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
     142                 :             : )
     143                 :             :                                     {
     144                 :           0 :                                       if (types_match (type, captures[0], captures[1])
     145                 :             : )
     146                 :             :                                         {
     147                 :           0 :                                           {
     148                 :           0 :                                             res_ops[0] = captures[0];
     149                 :           0 :                                             res_ops[1] = captures[1];
     150                 :           0 :                                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 57, __FILE__, __LINE__, false);
     151                 :           0 :                                             return true;
     152                 :             :                                           }
     153                 :             :                                         }
     154                 :             :                                     }
     155                 :             :                                 }
     156                 :             :                               }
     157                 :             :                           }
     158                 :             :                       }
     159                 :             :                     break;
     160                 :             :                   }
     161                 :             :                 default:;
     162                 :             :                 }
     163                 :             :               break;
     164                 :             :             }
     165                 :           0 :           case GE_EXPR:
     166                 :           0 :             {
     167                 :           0 :               tree _q20 = TREE_OPERAND (_p0, 0);
     168                 :           0 :               tree _q21 = TREE_OPERAND (_p0, 1);
     169                 :           0 :               switch (TREE_CODE (_p1))
     170                 :             :                 {
     171                 :           0 :                 CASE_CONVERT:
     172                 :           0 :                   {
     173                 :           0 :                     tree _q50 = TREE_OPERAND (_p1, 0);
     174                 :           0 :                     switch (TREE_CODE (_q50))
     175                 :             :                       {
     176                 :           0 :                       case MINUS_EXPR:
     177                 :           0 :                         {
     178                 :           0 :                           tree _q60 = TREE_OPERAND (_q50, 0);
     179                 :           0 :                           tree _q61 = TREE_OPERAND (_q50, 1);
     180                 :           0 :                           switch (TREE_CODE (_q60))
     181                 :             :                             {
     182                 :           0 :                             CASE_CONVERT:
     183                 :           0 :                               {
     184                 :           0 :                                 tree _q70 = TREE_OPERAND (_q60, 0);
     185                 :           0 :                                 if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
     186                 :             :                                   {
     187                 :           0 :                                     switch (TREE_CODE (_q61))
     188                 :             :                                       {
     189                 :           0 :                                       CASE_CONVERT:
     190                 :           0 :                                         {
     191                 :           0 :                                           tree _q90 = TREE_OPERAND (_q61, 0);
     192                 :           0 :                                           if ((_q90 == _q21 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q21, 0) && types_match (_q90, _q21)))
     193                 :             :                                             {
     194                 :           0 :                                               if (integer_zerop (_p2))
     195                 :             :                                                 {
     196                 :           0 :                                                   {
     197                 :           0 :                                                     tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
     198                 :           0 :                                                     if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
     199                 :             : )
     200                 :             :                                                       {
     201                 :           0 :                                                         if (TYPE_UNSIGNED (TREE_TYPE (captures[0])) && types_match (captures[0], captures[1])
     202                 :             : )
     203                 :             :                                                           {
     204                 :           0 :                                                             {
     205                 :           0 :                                                               res_ops[0] = captures[0];
     206                 :           0 :                                                               res_ops[1] = captures[1];
     207                 :           0 :                                                               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 58, __FILE__, __LINE__, false);
     208                 :           0 :                                                               return true;
     209                 :             :                                                             }
     210                 :             :                                                           }
     211                 :             :                                                       }
     212                 :             :                                                   }
     213                 :             :                                                 }
     214                 :             :                                             }
     215                 :             :                                           break;
     216                 :             :                                         }
     217                 :             :                                       default:;
     218                 :             :                                       }
     219                 :             :                                   }
     220                 :             :                                 break;
     221                 :             :                               }
     222                 :           0 :                             default:;
     223                 :             :                             }
     224                 :           0 :                           if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
     225                 :             :                             {
     226                 :           0 :                               if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
     227                 :             :                                 {
     228                 :           0 :                                   if (integer_zerop (_p2))
     229                 :             :                                     {
     230                 :           0 :                                       {
     231                 :           0 :                                         tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
     232                 :           0 :                                         if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
     233                 :             : )
     234                 :             :                                           {
     235                 :           0 :                                             if (TYPE_UNSIGNED (TREE_TYPE (captures[0])) && types_match (captures[0], captures[1])
     236                 :             : )
     237                 :             :                                               {
     238                 :           0 :                                                 {
     239                 :           0 :                                                   res_ops[0] = captures[0];
     240                 :           0 :                                                   res_ops[1] = captures[1];
     241                 :           0 :                                                   if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 58, __FILE__, __LINE__, false);
     242                 :           0 :                                                   return true;
     243                 :             :                                                 }
     244                 :             :                                               }
     245                 :             :                                           }
     246                 :             :                                       }
     247                 :             :                                     }
     248                 :             :                                 }
     249                 :             :                             }
     250                 :             :                           break;
     251                 :             :                         }
     252                 :             :                       default:;
     253                 :             :                       }
     254                 :             :                     break;
     255                 :             :                   }
     256                 :           0 :                 case MINUS_EXPR:
     257                 :           0 :                   {
     258                 :           0 :                     tree _q50 = TREE_OPERAND (_p1, 0);
     259                 :           0 :                     tree _q51 = TREE_OPERAND (_p1, 1);
     260                 :           0 :                     switch (TREE_CODE (_q50))
     261                 :             :                       {
     262                 :           0 :                       CASE_CONVERT:
     263                 :           0 :                         {
     264                 :           0 :                           tree _q60 = TREE_OPERAND (_q50, 0);
     265                 :           0 :                           if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
     266                 :             :                             {
     267                 :           0 :                               switch (TREE_CODE (_q51))
     268                 :             :                                 {
     269                 :           0 :                                 CASE_CONVERT:
     270                 :           0 :                                   {
     271                 :           0 :                                     tree _q80 = TREE_OPERAND (_q51, 0);
     272                 :           0 :                                     if ((_q80 == _q21 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q21, 0) && types_match (_q80, _q21)))
     273                 :             :                                       {
     274                 :           0 :                                         if (integer_zerop (_p2))
     275                 :             :                                           {
     276                 :           0 :                                             {
     277                 :           0 :                                               tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
     278                 :           0 :                                               if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
     279                 :             : )
     280                 :             :                                                 {
     281                 :           0 :                                                   if (TYPE_UNSIGNED (TREE_TYPE (captures[0])) && types_match (captures[0], captures[1])
     282                 :             : )
     283                 :             :                                                     {
     284                 :           0 :                                                       {
     285                 :           0 :                                                         res_ops[0] = captures[0];
     286                 :           0 :                                                         res_ops[1] = captures[1];
     287                 :           0 :                                                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 58, __FILE__, __LINE__, false);
     288                 :           0 :                                                         return true;
     289                 :             :                                                       }
     290                 :             :                                                     }
     291                 :             :                                                 }
     292                 :             :                                             }
     293                 :             :                                           }
     294                 :             :                                       }
     295                 :             :                                     break;
     296                 :             :                                   }
     297                 :             :                                 default:;
     298                 :             :                                 }
     299                 :             :                             }
     300                 :             :                           break;
     301                 :             :                         }
     302                 :           0 :                       default:;
     303                 :             :                       }
     304                 :           0 :                     if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
     305                 :             :                       {
     306                 :           0 :                         if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
     307                 :             :                           {
     308                 :           0 :                             if (integer_zerop (_p2))
     309                 :             :                               {
     310                 :           0 :                                 {
     311                 :           0 :                                   tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
     312                 :           0 :                                   if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
     313                 :             : )
     314                 :             :                                     {
     315                 :           0 :                                       if (TYPE_UNSIGNED (TREE_TYPE (captures[0])) && types_match (captures[0], captures[1])
     316                 :             : )
     317                 :             :                                         {
     318                 :           0 :                                           {
     319                 :           0 :                                             res_ops[0] = captures[0];
     320                 :           0 :                                             res_ops[1] = captures[1];
     321                 :           0 :                                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 58, __FILE__, __LINE__, false);
     322                 :           0 :                                             return true;
     323                 :             :                                           }
     324                 :             :                                         }
     325                 :             :                                     }
     326                 :             :                                 }
     327                 :             :                               }
     328                 :             :                           }
     329                 :             :                       }
     330                 :             :                     break;
     331                 :             :                   }
     332                 :             :                 default:;
     333                 :             :                 }
     334                 :             :               break;
     335                 :             :             }
     336                 :           0 :           case EQ_EXPR:
     337                 :           0 :             {
     338                 :           0 :               tree _q20 = TREE_OPERAND (_p0, 0);
     339                 :           0 :               tree _q21 = TREE_OPERAND (_p0, 1);
     340                 :           0 :               switch (TREE_CODE (_q20))
     341                 :             :                 {
     342                 :           0 :                 case IMAGPART_EXPR:
     343                 :           0 :                   {
     344                 :           0 :                     tree _q30 = TREE_OPERAND (_q20, 0);
     345                 :           0 :                     switch (TREE_CODE (_q30))
     346                 :             :                       {
     347                 :           0 :                       case CALL_EXPR:
     348                 :           0 :                         switch (get_call_combined_fn (_q30))
     349                 :             :                           {
     350                 :           0 :                           case CFN_SUB_OVERFLOW:
     351                 :           0 :                             if (call_expr_nargs (_q30) == 2)
     352                 :             :     {
     353                 :           0 :                                 tree _q40 = CALL_EXPR_ARG (_q30, 0);
     354                 :           0 :                                 tree _q41 = CALL_EXPR_ARG (_q30, 1);
     355                 :           0 :                                 if (integer_zerop (_q21))
     356                 :             :                                   {
     357                 :           0 :                                     switch (TREE_CODE (_p1))
     358                 :             :                                       {
     359                 :           0 :                                       case REALPART_EXPR:
     360                 :           0 :                                         {
     361                 :           0 :                                           tree _q80 = TREE_OPERAND (_p1, 0);
     362                 :           0 :                                           if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
     363                 :             :                                             {
     364                 :           0 :                                               if (integer_zerop (_p2))
     365                 :             :                                                 {
     366                 :           0 :                                                   {
     367                 :           0 :                                                     tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _q30 };
     368                 :           0 :                                                     if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
     369                 :             : )
     370                 :             :                                                       {
     371                 :           0 :                                                         if (types_match (type, captures[0], captures[1])
     372                 :             : )
     373                 :             :                                                           {
     374                 :           0 :                                                             {
     375                 :           0 :                                                               res_ops[0] = captures[0];
     376                 :           0 :                                                               res_ops[1] = captures[1];
     377                 :           0 :                                                               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 59, __FILE__, __LINE__, false);
     378                 :           0 :                                                               return true;
     379                 :             :                                                             }
     380                 :             :                                                           }
     381                 :             :                                                       }
     382                 :             :                                                   }
     383                 :             :                                                 }
     384                 :             :                                             }
     385                 :             :                                           break;
     386                 :             :                                         }
     387                 :             :                                       default:;
     388                 :             :                                       }
     389                 :             :                                   }
     390                 :             :                               }
     391                 :             :                             break;
     392                 :             :                           default:;
     393                 :             :                           }
     394                 :             :                         break;
     395                 :             :                       default:;
     396                 :             :                       }
     397                 :             :                     break;
     398                 :             :                   }
     399                 :             :                 default:;
     400                 :             :                 }
     401                 :             :               break;
     402                 :             :             }
     403                 :           0 :           case NE_EXPR:
     404                 :           0 :             {
     405                 :           0 :               tree _q20 = TREE_OPERAND (_p0, 0);
     406                 :           0 :               tree _q21 = TREE_OPERAND (_p0, 1);
     407                 :           0 :               switch (TREE_CODE (_q20))
     408                 :             :                 {
     409                 :           0 :                 case IMAGPART_EXPR:
     410                 :           0 :                   {
     411                 :           0 :                     tree _q30 = TREE_OPERAND (_q20, 0);
     412                 :           0 :                     switch (TREE_CODE (_q30))
     413                 :             :                       {
     414                 :           0 :                       case CALL_EXPR:
     415                 :           0 :                         switch (get_call_combined_fn (_q30))
     416                 :             :                           {
     417                 :           0 :                           case CFN_SUB_OVERFLOW:
     418                 :           0 :                             if (call_expr_nargs (_q30) == 2)
     419                 :             :     {
     420                 :           0 :                                 tree _q40 = CALL_EXPR_ARG (_q30, 0);
     421                 :           0 :                                 tree _q41 = CALL_EXPR_ARG (_q30, 1);
     422                 :           0 :                                 if (integer_zerop (_q21))
     423                 :             :                                   {
     424                 :           0 :                                     if (integer_zerop (_p1))
     425                 :             :                                       {
     426                 :           0 :                                         switch (TREE_CODE (_p2))
     427                 :             :                                           {
     428                 :           0 :                                           case REALPART_EXPR:
     429                 :           0 :                                             {
     430                 :           0 :                                               tree _q90 = TREE_OPERAND (_p2, 0);
     431                 :           0 :                                               if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
     432                 :             :                                                 {
     433                 :           0 :                                                   {
     434                 :           0 :                                                     tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _q30 };
     435                 :           0 :                                                     if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
     436                 :             : )
     437                 :             :                                                       {
     438                 :           0 :                                                         if (types_match (type, captures[0], captures[1])
     439                 :             : )
     440                 :             :                                                           {
     441                 :           0 :                                                             {
     442                 :           0 :                                                               res_ops[0] = captures[0];
     443                 :           0 :                                                               res_ops[1] = captures[1];
     444                 :           0 :                                                               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 60, __FILE__, __LINE__, false);
     445                 :           0 :                                                               return true;
     446                 :             :                                                             }
     447                 :             :                                                           }
     448                 :             :                                                       }
     449                 :             :                                                   }
     450                 :             :                                                 }
     451                 :             :                                               break;
     452                 :             :                                             }
     453                 :             :                                           default:;
     454                 :             :                                           }
     455                 :             :                                       }
     456                 :             :                                   }
     457                 :             :                               }
     458                 :             :                             break;
     459                 :             :                           default:;
     460                 :             :                           }
     461                 :             :                         break;
     462                 :             :                       default:;
     463                 :             :                       }
     464                 :             :                     break;
     465                 :             :                   }
     466                 :           0 :                 default:;
     467                 :             :                 }
     468                 :           0 :               switch (TREE_CODE (_q21))
     469                 :             :                 {
     470                 :           0 :                 case INTEGER_CST:
     471                 :           0 :                   {
     472                 :           0 :                     switch (TREE_CODE (_p1))
     473                 :             :                       {
     474                 :           0 :                       case MINUS_EXPR:
     475                 :           0 :                         {
     476                 :           0 :                           tree _q50 = TREE_OPERAND (_p1, 0);
     477                 :           0 :                           tree _q51 = TREE_OPERAND (_p1, 1);
     478                 :           0 :                           switch (TREE_CODE (_q50))
     479                 :             :                             {
     480                 :           0 :                             case INTEGER_CST:
     481                 :           0 :                               {
     482                 :           0 :                                 if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
     483                 :             :                                   {
     484                 :           0 :                                     if (integer_zerop (_p2))
     485                 :             :                                       {
     486                 :           0 :                                         {
     487                 :           0 :                                           tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q20, _q21 };
     488                 :           0 :                                           if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
     489                 :             : )
     490                 :             :                                             {
     491                 :           0 :                                               if (types_match (type, captures[1])
     492                 :             : )
     493                 :             :                                                 {
     494                 :           0 :                                                   {
     495                 :           0 :  unsigned precision = TYPE_PRECISION (type);
     496                 :           0 :  wide_int max = wi::mask (precision, false, precision);
     497                 :           0 :  wide_int c0 = wi::to_wide (captures[0]);
     498                 :           0 :  wide_int c2 = wi::to_wide (captures[2]);
     499                 :           0 :  wide_int c0_add_1 = wi::add (c0, wi::uhwi (1, precision));
     500                 :           0 :                                                       if (wi::eq_p (c2, max) && wi::eq_p (c0_add_1, max)
     501                 :             : )
     502                 :             :                                                         {
     503                 :           0 :                                                           {
     504                 :           0 :                                                             res_ops[0] = captures[0];
     505                 :           0 :                                                             res_ops[1] = captures[1];
     506                 :           0 :                                                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 61, __FILE__, __LINE__, false);
     507                 :           0 :                                                             return true;
     508                 :             :                                                           }
     509                 :             :                                                         }
     510                 :           0 :                                                   }
     511                 :             :                                                 }
     512                 :             :                                             }
     513                 :             :                                         }
     514                 :             :                                       }
     515                 :             :                                   }
     516                 :             :                                 break;
     517                 :             :                               }
     518                 :             :                             default:;
     519                 :             :                             }
     520                 :             :                           break;
     521                 :             :                         }
     522                 :             :                       default:;
     523                 :             :                       }
     524                 :             :                     break;
     525                 :             :                   }
     526                 :             :                 default:;
     527                 :             :                 }
     528                 :             :               break;
     529                 :             :             }
     530                 :           0 :           case LE_EXPR:
     531                 :           0 :             {
     532                 :           0 :               tree _q20 = TREE_OPERAND (_p0, 0);
     533                 :           0 :               tree _q21 = TREE_OPERAND (_p0, 1);
     534                 :           0 :               switch (TREE_CODE (_q21))
     535                 :             :                 {
     536                 :           0 :                 case INTEGER_CST:
     537                 :           0 :                   {
     538                 :           0 :                     switch (TREE_CODE (_p1))
     539                 :             :                       {
     540                 :           0 :                       case MINUS_EXPR:
     541                 :           0 :                         {
     542                 :           0 :                           tree _q50 = TREE_OPERAND (_p1, 0);
     543                 :           0 :                           tree _q51 = TREE_OPERAND (_p1, 1);
     544                 :           0 :                           switch (TREE_CODE (_q50))
     545                 :             :                             {
     546                 :           0 :                             case INTEGER_CST:
     547                 :           0 :                               {
     548                 :           0 :                                 if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
     549                 :             :                                   {
     550                 :           0 :                                     if (integer_zerop (_p2))
     551                 :             :                                       {
     552                 :           0 :                                         {
     553                 :           0 :                                           tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q20, _q21 };
     554                 :           0 :                                           if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
     555                 :             : )
     556                 :             :                                             {
     557                 :           0 :                                               if (types_match (type, captures[1]) && int_fits_type_p (captures[0], type)
     558                 :             : )
     559                 :             :                                                 {
     560                 :           0 :                                                   {
     561                 :           0 :  unsigned precision = TYPE_PRECISION (type);
     562                 :           0 :  wide_int max = wi::mask (precision, false, precision);
     563                 :           0 :  wide_int c0 = wi::to_wide (captures[0]);
     564                 :           0 :  wide_int c2 = wi::to_wide (captures[2]);
     565                 :           0 :  wide_int c2_add_1 = wi::add (c2, wi::uhwi (1, precision));
     566                 :           0 :  bool equal_p = wi::eq_p (c0, c2);
     567                 :           0 :  bool less_than_1_p = !wi::eq_p (c2, max) && wi::eq_p (c2_add_1, c0);
     568                 :           0 :                                                       if (equal_p || less_than_1_p
     569                 :             : )
     570                 :             :                                                         {
     571                 :           0 :                                                           {
     572                 :           0 :                                                             res_ops[0] = captures[0];
     573                 :           0 :                                                             res_ops[1] = captures[1];
     574                 :           0 :                                                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 62, __FILE__, __LINE__, false);
     575                 :           0 :                                                             return true;
     576                 :             :                                                           }
     577                 :             :                                                         }
     578                 :           0 :                                                   }
     579                 :             :                                                 }
     580                 :             :                                             }
     581                 :             :                                         }
     582                 :             :                                       }
     583                 :             :                                   }
     584                 :             :                                 break;
     585                 :             :                               }
     586                 :             :                             default:;
     587                 :             :                             }
     588                 :             :                           break;
     589                 :             :                         }
     590                 :             :                       default:;
     591                 :             :                       }
     592                 :             :                     break;
     593                 :             :                   }
     594                 :           0 :                 default:;
     595                 :             :                 }
     596                 :           0 :             if (integer_onep (_q21))
     597                 :             :               {
     598                 :           0 :                 switch (TREE_CODE (_p1))
     599                 :             :                   {
     600                 :           0 :                   case BIT_XOR_EXPR:
     601                 :           0 :                     {
     602                 :           0 :                       tree _q50 = TREE_OPERAND (_p1, 0);
     603                 :           0 :                       tree _q51 = TREE_OPERAND (_p1, 1);
     604                 :           0 :                       if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
     605                 :             :                         {
     606                 :           0 :                           if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
     607                 :             :                             {
     608                 :           0 :                               if (integer_onep (_q51))
     609                 :             :                                 {
     610                 :           0 :                                   if (integer_zerop (_p2))
     611                 :             :                                     {
     612                 :           0 :                                       {
     613                 :           0 :                                         tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
     614                 :           0 :                                         if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
     615                 :             : )
     616                 :             :                                           {
     617                 :           0 :                                             if (types_match (type, captures[1])
     618                 :             : )
     619                 :             :                                               {
     620                 :           0 :                                                 {
     621                 :           0 :                                                   res_ops[0] = captures[0];
     622                 :           0 :                                                   res_ops[1] = captures[1];
     623                 :           0 :                                                   if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 63, __FILE__, __LINE__, false);
     624                 :           0 :                                                   return true;
     625                 :             :                                                 }
     626                 :             :                                               }
     627                 :             :                                           }
     628                 :             :                                       }
     629                 :             :                                     }
     630                 :             :                                 }
     631                 :             :                             }
     632                 :             :                         }
     633                 :             :                       break;
     634                 :             :                     }
     635                 :             :                   default:;
     636                 :             :                   }
     637                 :             :               }
     638                 :             :               break;
     639                 :             :             }
     640                 :             :           default:;
     641                 :             :           }
     642                 :             :         break;
     643                 :             :       }
     644                 :           0 :     case MULT_EXPR:
     645                 :           0 :       {
     646                 :           0 :         tree _p0 = TREE_OPERAND (t, 0);
     647                 :           0 :         tree _p1 = TREE_OPERAND (t, 1);
     648                 :           0 :         switch (TREE_CODE (_p0))
     649                 :             :           {
     650                 :           0 :           case MINUS_EXPR:
     651                 :           0 :             {
     652                 :           0 :               tree _q20 = TREE_OPERAND (_p0, 0);
     653                 :           0 :               tree _q21 = TREE_OPERAND (_p0, 1);
     654                 :           0 :               switch (TREE_CODE (_p1))
     655                 :             :                 {
     656                 :           0 :                 CASE_CONVERT:
     657                 :           0 :                   {
     658                 :           0 :                     tree _q50 = TREE_OPERAND (_p1, 0);
     659                 :           0 :                     switch (TREE_CODE (_q50))
     660                 :             :                       {
     661                 :           0 :                       case GT_EXPR:
     662                 :           0 :                         {
     663                 :           0 :                           tree _q60 = TREE_OPERAND (_q50, 0);
     664                 :           0 :                           tree _q61 = TREE_OPERAND (_q50, 1);
     665                 :           0 :                           if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
     666                 :             :                             {
     667                 :           0 :                               if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
     668                 :             :                                 {
     669                 :           0 :                                   {
     670                 :           0 :                                     tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
     671                 :           0 :                                     if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
     672                 :             : )
     673                 :             :                                       {
     674                 :           0 :                                         if (types_match (type, captures[0], captures[1])
     675                 :             : )
     676                 :             :                                           {
     677                 :           0 :                                             {
     678                 :           0 :                                               res_ops[0] = captures[0];
     679                 :           0 :                                               res_ops[1] = captures[1];
     680                 :           0 :                                               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 64, __FILE__, __LINE__, false);
     681                 :           0 :                                               return true;
     682                 :             :                                             }
     683                 :             :                                           }
     684                 :             :                                       }
     685                 :             :                                   }
     686                 :             :                                 }
     687                 :             :                             }
     688                 :             :                           break;
     689                 :             :                         }
     690                 :           0 :                       case GE_EXPR:
     691                 :           0 :                         {
     692                 :           0 :                           tree _q60 = TREE_OPERAND (_q50, 0);
     693                 :           0 :                           tree _q61 = TREE_OPERAND (_q50, 1);
     694                 :           0 :                           if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
     695                 :             :                             {
     696                 :           0 :                               if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
     697                 :             :                                 {
     698                 :           0 :                                   {
     699                 :           0 :                                     tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
     700                 :           0 :                                     if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
     701                 :             : )
     702                 :             :                                       {
     703                 :           0 :                                         if (types_match (type, captures[0], captures[1])
     704                 :             : )
     705                 :             :                                           {
     706                 :           0 :                                             {
     707                 :           0 :                                               res_ops[0] = captures[0];
     708                 :           0 :                                               res_ops[1] = captures[1];
     709                 :           0 :                                               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 65, __FILE__, __LINE__, false);
     710                 :           0 :                                               return true;
     711                 :             :                                             }
     712                 :             :                                           }
     713                 :             :                                       }
     714                 :             :                                   }
     715                 :             :                                 }
     716                 :             :                             }
     717                 :             :                           break;
     718                 :             :                         }
     719                 :             :                       default:;
     720                 :             :                       }
     721                 :             :                     break;
     722                 :             :                   }
     723                 :             :                 default:;
     724                 :             :                 }
     725                 :             :               break;
     726                 :             :             }
     727                 :           0 :           CASE_CONVERT:
     728                 :           0 :             {
     729                 :           0 :               tree _q20 = TREE_OPERAND (_p0, 0);
     730                 :           0 :               switch (TREE_CODE (_q20))
     731                 :             :                 {
     732                 :           0 :                 case GT_EXPR:
     733                 :           0 :                   {
     734                 :           0 :                     tree _q30 = TREE_OPERAND (_q20, 0);
     735                 :           0 :                     tree _q31 = TREE_OPERAND (_q20, 1);
     736                 :           0 :                     switch (TREE_CODE (_p1))
     737                 :             :                       {
     738                 :           0 :                       case MINUS_EXPR:
     739                 :           0 :                         {
     740                 :           0 :                           tree _q60 = TREE_OPERAND (_p1, 0);
     741                 :           0 :                           tree _q61 = TREE_OPERAND (_p1, 1);
     742                 :           0 :                           if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
     743                 :             :                             {
     744                 :           0 :                               if ((_q61 == _q31 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q31, 0) && types_match (_q61, _q31)))
     745                 :             :                                 {
     746                 :           0 :                                   {
     747                 :           0 :                                     tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
     748                 :           0 :                                     if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
     749                 :             : )
     750                 :             :                                       {
     751                 :           0 :                                         if (types_match (type, captures[0], captures[1])
     752                 :             : )
     753                 :             :                                           {
     754                 :           0 :                                             {
     755                 :           0 :                                               res_ops[0] = captures[0];
     756                 :           0 :                                               res_ops[1] = captures[1];
     757                 :           0 :                                               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 64, __FILE__, __LINE__, false);
     758                 :           0 :                                               return true;
     759                 :             :                                             }
     760                 :             :                                           }
     761                 :             :                                       }
     762                 :             :                                   }
     763                 :             :                                 }
     764                 :             :                             }
     765                 :             :                           break;
     766                 :             :                         }
     767                 :             :                       default:;
     768                 :             :                       }
     769                 :             :                     break;
     770                 :             :                   }
     771                 :           0 :                 case GE_EXPR:
     772                 :           0 :                   {
     773                 :           0 :                     tree _q30 = TREE_OPERAND (_q20, 0);
     774                 :           0 :                     tree _q31 = TREE_OPERAND (_q20, 1);
     775                 :           0 :                     switch (TREE_CODE (_p1))
     776                 :             :                       {
     777                 :           0 :                       case MINUS_EXPR:
     778                 :           0 :                         {
     779                 :           0 :                           tree _q60 = TREE_OPERAND (_p1, 0);
     780                 :           0 :                           tree _q61 = TREE_OPERAND (_p1, 1);
     781                 :           0 :                           if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
     782                 :             :                             {
     783                 :           0 :                               if ((_q61 == _q31 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q31, 0) && types_match (_q61, _q31)))
     784                 :             :                                 {
     785                 :           0 :                                   {
     786                 :           0 :                                     tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
     787                 :           0 :                                     if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
     788                 :             : )
     789                 :             :                                       {
     790                 :           0 :                                         if (types_match (type, captures[0], captures[1])
     791                 :             : )
     792                 :             :                                           {
     793                 :           0 :                                             {
     794                 :           0 :                                               res_ops[0] = captures[0];
     795                 :           0 :                                               res_ops[1] = captures[1];
     796                 :           0 :                                               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 65, __FILE__, __LINE__, false);
     797                 :           0 :                                               return true;
     798                 :             :                                             }
     799                 :             :                                           }
     800                 :             :                                       }
     801                 :             :                                   }
     802                 :             :                                 }
     803                 :             :                             }
     804                 :             :                           break;
     805                 :             :                         }
     806                 :             :                       default:;
     807                 :             :                       }
     808                 :             :                     break;
     809                 :             :                   }
     810                 :             :                 default:;
     811                 :             :                 }
     812                 :             :               break;
     813                 :             :             }
     814                 :           0 :           case REALPART_EXPR:
     815                 :           0 :             {
     816                 :           0 :               tree _q20 = TREE_OPERAND (_p0, 0);
     817                 :           0 :               switch (TREE_CODE (_q20))
     818                 :             :                 {
     819                 :           0 :                 case CALL_EXPR:
     820                 :           0 :                   switch (get_call_combined_fn (_q20))
     821                 :             :                     {
     822                 :           0 :                     case CFN_SUB_OVERFLOW:
     823                 :           0 :                       if (call_expr_nargs (_q20) == 2)
     824                 :             :     {
     825                 :           0 :                           tree _q30 = CALL_EXPR_ARG (_q20, 0);
     826                 :           0 :                           tree _q31 = CALL_EXPR_ARG (_q20, 1);
     827                 :           0 :                           switch (TREE_CODE (_p1))
     828                 :             :                             {
     829                 :           0 :                             case BIT_XOR_EXPR:
     830                 :           0 :                               {
     831                 :           0 :                                 tree _q60 = TREE_OPERAND (_p1, 0);
     832                 :           0 :                                 tree _q61 = TREE_OPERAND (_p1, 1);
     833                 :           0 :                                 switch (TREE_CODE (_q60))
     834                 :             :                                   {
     835                 :           0 :                                   case IMAGPART_EXPR:
     836                 :           0 :                                     {
     837                 :           0 :                                       tree _q70 = TREE_OPERAND (_q60, 0);
     838                 :           0 :                                       if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
     839                 :             :                                         {
     840                 :           0 :                                           if (integer_onep (_q61))
     841                 :             :                                             {
     842                 :           0 :                                               {
     843                 :           0 :                                                 tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q20 };
     844                 :           0 :                                                 if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
     845                 :             : )
     846                 :             :                                                   {
     847                 :           0 :                                                     if (types_match (type, captures[0], captures[1])
     848                 :             : )
     849                 :             :                                                       {
     850                 :           0 :                                                         {
     851                 :           0 :                                                           res_ops[0] = captures[0];
     852                 :           0 :                                                           res_ops[1] = captures[1];
     853                 :           0 :                                                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 66, __FILE__, __LINE__, false);
     854                 :           0 :                                                           return true;
     855                 :             :                                                         }
     856                 :             :                                                       }
     857                 :             :                                                   }
     858                 :             :                                               }
     859                 :             :                                             }
     860                 :             :                                         }
     861                 :             :                                       break;
     862                 :             :                                     }
     863                 :             :                                   default:;
     864                 :             :                                   }
     865                 :             :                                 break;
     866                 :             :                               }
     867                 :             :                             default:;
     868                 :             :                             }
     869                 :             :                         }
     870                 :             :                       break;
     871                 :             :                     default:;
     872                 :             :                     }
     873                 :             :                   break;
     874                 :             :                 default:;
     875                 :             :                 }
     876                 :             :               break;
     877                 :             :             }
     878                 :           0 :           case BIT_XOR_EXPR:
     879                 :           0 :             {
     880                 :           0 :               tree _q20 = TREE_OPERAND (_p0, 0);
     881                 :           0 :               tree _q21 = TREE_OPERAND (_p0, 1);
     882                 :           0 :               switch (TREE_CODE (_q20))
     883                 :             :                 {
     884                 :           0 :                 case IMAGPART_EXPR:
     885                 :           0 :                   {
     886                 :           0 :                     tree _q30 = TREE_OPERAND (_q20, 0);
     887                 :           0 :                     if (integer_onep (_q21))
     888                 :             :                       {
     889                 :           0 :                         switch (TREE_CODE (_p1))
     890                 :             :                           {
     891                 :           0 :                           case REALPART_EXPR:
     892                 :           0 :                             {
     893                 :           0 :                               tree _q60 = TREE_OPERAND (_p1, 0);
     894                 :           0 :                               if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
     895                 :             :                                 {
     896                 :           0 :                                   switch (TREE_CODE (_q60))
     897                 :             :                                     {
     898                 :           0 :                                     case CALL_EXPR:
     899                 :           0 :                                       switch (get_call_combined_fn (_q60))
     900                 :             :                                         {
     901                 :           0 :                                         case CFN_SUB_OVERFLOW:
     902                 :           0 :                                           if (call_expr_nargs (_q60) == 2)
     903                 :             :     {
     904                 :           0 :                                               tree _q80 = CALL_EXPR_ARG (_q60, 0);
     905                 :           0 :                                               tree _q81 = CALL_EXPR_ARG (_q60, 1);
     906                 :           0 :                                               {
     907                 :           0 :                                                 tree captures[3] ATTRIBUTE_UNUSED = { _q80, _q81, _q30 };
     908                 :           0 :                                                 if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
     909                 :             : )
     910                 :             :                                                   {
     911                 :           0 :                                                     if (types_match (type, captures[0], captures[1])
     912                 :             : )
     913                 :             :                                                       {
     914                 :           0 :                                                         {
     915                 :           0 :                                                           res_ops[0] = captures[0];
     916                 :           0 :                                                           res_ops[1] = captures[1];
     917                 :           0 :                                                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 66, __FILE__, __LINE__, false);
     918                 :           0 :                                                           return true;
     919                 :             :                                                         }
     920                 :             :                                                       }
     921                 :             :                                                   }
     922                 :             :                                               }
     923                 :             :                                             }
     924                 :             :                                           break;
     925                 :             :                                         default:;
     926                 :             :                                         }
     927                 :             :                                       break;
     928                 :             :                                     default:;
     929                 :             :                                     }
     930                 :             :                                 }
     931                 :             :                               break;
     932                 :             :                             }
     933                 :             :                           default:;
     934                 :             :                           }
     935                 :             :                       }
     936                 :             :                     break;
     937                 :             :                   }
     938                 :             :                 default:;
     939                 :             :                 }
     940                 :             :               break;
     941                 :             :             }
     942                 :             :           default:;
     943                 :             :           }
     944                 :             :         break;
     945                 :             :       }
     946                 :           0 :     case BIT_AND_EXPR:
     947                 :           0 :       {
     948                 :           0 :         tree _p0 = TREE_OPERAND (t, 0);
     949                 :           0 :         tree _p1 = TREE_OPERAND (t, 1);
     950                 :           0 :         switch (TREE_CODE (_p0))
     951                 :             :           {
     952                 :           0 :           case REALPART_EXPR:
     953                 :           0 :             {
     954                 :           0 :               tree _q20 = TREE_OPERAND (_p0, 0);
     955                 :           0 :               switch (TREE_CODE (_q20))
     956                 :             :                 {
     957                 :           0 :                 case CALL_EXPR:
     958                 :           0 :                   switch (get_call_combined_fn (_q20))
     959                 :             :                     {
     960                 :           0 :                     case CFN_SUB_OVERFLOW:
     961                 :           0 :                       if (call_expr_nargs (_q20) == 2)
     962                 :             :     {
     963                 :           0 :                           tree _q30 = CALL_EXPR_ARG (_q20, 0);
     964                 :           0 :                           tree _q31 = CALL_EXPR_ARG (_q20, 1);
     965                 :           0 :                           switch (TREE_CODE (_p1))
     966                 :             :                             {
     967                 :           0 :                             case PLUS_EXPR:
     968                 :           0 :                               {
     969                 :           0 :                                 tree _q60 = TREE_OPERAND (_p1, 0);
     970                 :           0 :                                 tree _q61 = TREE_OPERAND (_p1, 1);
     971                 :           0 :                                 switch (TREE_CODE (_q60))
     972                 :             :                                   {
     973                 :           0 :                                   case IMAGPART_EXPR:
     974                 :           0 :                                     {
     975                 :           0 :                                       tree _q70 = TREE_OPERAND (_q60, 0);
     976                 :           0 :                                       if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
     977                 :             :                                         {
     978                 :           0 :                                           if (integer_minus_onep (_q61))
     979                 :             :                                             {
     980                 :           0 :                                               {
     981                 :           0 :                                                 tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q20 };
     982                 :           0 :                                                 if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
     983                 :             : )
     984                 :             :                                                   {
     985                 :           0 :                                                     if (types_match (type, captures[0], captures[1])
     986                 :             : )
     987                 :             :                                                       {
     988                 :           0 :                                                         {
     989                 :           0 :                                                           res_ops[0] = captures[0];
     990                 :           0 :                                                           res_ops[1] = captures[1];
     991                 :           0 :                                                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 67, __FILE__, __LINE__, false);
     992                 :           0 :                                                           return true;
     993                 :             :                                                         }
     994                 :             :                                                       }
     995                 :             :                                                   }
     996                 :             :                                               }
     997                 :             :                                             }
     998                 :             :                                         }
     999                 :             :                                       break;
    1000                 :             :                                     }
    1001                 :             :                                   default:;
    1002                 :             :                                   }
    1003                 :             :                                 break;
    1004                 :             :                               }
    1005                 :             :                             default:;
    1006                 :             :                             }
    1007                 :             :                         }
    1008                 :             :                       break;
    1009                 :             :                     default:;
    1010                 :             :                     }
    1011                 :             :                   break;
    1012                 :             :                 default:;
    1013                 :             :                 }
    1014                 :             :               break;
    1015                 :             :             }
    1016                 :           0 :           case PLUS_EXPR:
    1017                 :           0 :             {
    1018                 :           0 :               tree _q20 = TREE_OPERAND (_p0, 0);
    1019                 :           0 :               tree _q21 = TREE_OPERAND (_p0, 1);
    1020                 :           0 :               switch (TREE_CODE (_q20))
    1021                 :             :                 {
    1022                 :           0 :                 case IMAGPART_EXPR:
    1023                 :           0 :                   {
    1024                 :           0 :                     tree _q30 = TREE_OPERAND (_q20, 0);
    1025                 :           0 :                     if (integer_minus_onep (_q21))
    1026                 :             :                       {
    1027                 :           0 :                         switch (TREE_CODE (_p1))
    1028                 :             :                           {
    1029                 :           0 :                           case REALPART_EXPR:
    1030                 :           0 :                             {
    1031                 :           0 :                               tree _q60 = TREE_OPERAND (_p1, 0);
    1032                 :           0 :                               if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
    1033                 :             :                                 {
    1034                 :           0 :                                   switch (TREE_CODE (_q60))
    1035                 :             :                                     {
    1036                 :           0 :                                     case CALL_EXPR:
    1037                 :           0 :                                       switch (get_call_combined_fn (_q60))
    1038                 :             :                                         {
    1039                 :           0 :                                         case CFN_SUB_OVERFLOW:
    1040                 :           0 :                                           if (call_expr_nargs (_q60) == 2)
    1041                 :             :     {
    1042                 :           0 :                                               tree _q80 = CALL_EXPR_ARG (_q60, 0);
    1043                 :           0 :                                               tree _q81 = CALL_EXPR_ARG (_q60, 1);
    1044                 :           0 :                                               {
    1045                 :           0 :                                                 tree captures[3] ATTRIBUTE_UNUSED = { _q80, _q81, _q30 };
    1046                 :           0 :                                                 if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
    1047                 :             : )
    1048                 :             :                                                   {
    1049                 :           0 :                                                     if (types_match (type, captures[0], captures[1])
    1050                 :             : )
    1051                 :             :                                                       {
    1052                 :           0 :                                                         {
    1053                 :           0 :                                                           res_ops[0] = captures[0];
    1054                 :           0 :                                                           res_ops[1] = captures[1];
    1055                 :           0 :                                                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 67, __FILE__, __LINE__, false);
    1056                 :           0 :                                                           return true;
    1057                 :             :                                                         }
    1058                 :             :                                                       }
    1059                 :             :                                                   }
    1060                 :             :                                               }
    1061                 :             :                                             }
    1062                 :             :                                           break;
    1063                 :             :                                         default:;
    1064                 :             :                                         }
    1065                 :             :                                       break;
    1066                 :             :                                     default:;
    1067                 :             :                                     }
    1068                 :             :                                 }
    1069                 :             :                               break;
    1070                 :             :                             }
    1071                 :             :                           default:;
    1072                 :             :                           }
    1073                 :             :                       }
    1074                 :             :                     break;
    1075                 :             :                   }
    1076                 :             :                 default:;
    1077                 :             :                 }
    1078                 :             :               break;
    1079                 :             :             }
    1080                 :             :           default:;
    1081                 :             :           }
    1082                 :             :         break;
    1083                 :             :       }
    1084                 :           0 :     case PLUS_EXPR:
    1085                 :           0 :       {
    1086                 :           0 :         tree _p0 = TREE_OPERAND (t, 0);
    1087                 :           0 :         tree _p1 = TREE_OPERAND (t, 1);
    1088                 :           0 :         switch (TREE_CODE (_p0))
    1089                 :             :           {
    1090                 :           0 :           case MAX_EXPR:
    1091                 :           0 :             {
    1092                 :           0 :               tree _q20 = TREE_OPERAND (_p0, 0);
    1093                 :           0 :               tree _q21 = TREE_OPERAND (_p0, 1);
    1094                 :           0 :               switch (TREE_CODE (_q21))
    1095                 :             :                 {
    1096                 :           0 :                 case INTEGER_CST:
    1097                 :           0 :                   {
    1098                 :           0 :                     switch (TREE_CODE (_p1))
    1099                 :             :                       {
    1100                 :           0 :                       case INTEGER_CST:
    1101                 :           0 :                         {
    1102                 :           0 :                           {
    1103                 :           0 :                             tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
    1104                 :           0 :                             if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
    1105                 :             : )
    1106                 :             :                               {
    1107                 :           0 :                                 if (types_match (type, captures[1]) && int_fits_type_p (captures[1], type)
    1108                 :             : )
    1109                 :             :                                   {
    1110                 :           0 :                                     {
    1111                 :           0 :  unsigned precision = TYPE_PRECISION (type);
    1112                 :           0 :  wide_int c1 = wi::to_wide (captures[1]);
    1113                 :           0 :  wide_int c2 = wi::to_wide (captures[2]);
    1114                 :           0 :  wide_int sum = wi::add (c1, c2);
    1115                 :           0 :                                         if (wi::eq_p (sum, wi::uhwi (0, precision))
    1116                 :             : )
    1117                 :             :                                           {
    1118                 :           0 :                                             {
    1119                 :           0 :                                               res_ops[0] = captures[0];
    1120                 :           0 :                                               res_ops[1] = captures[1];
    1121                 :           0 :                                               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 68, __FILE__, __LINE__, false);
    1122                 :           0 :                                               return true;
    1123                 :             :                                             }
    1124                 :             :                                           }
    1125                 :           0 :                                     }
    1126                 :             :                                   }
    1127                 :             :                               }
    1128                 :             :                           }
    1129                 :           0 :                           break;
    1130                 :             :                         }
    1131                 :             :                       default:;
    1132                 :             :                       }
    1133                 :             :                     break;
    1134                 :             :                   }
    1135                 :             :                 default:;
    1136                 :             :                 }
    1137                 :             :               break;
    1138                 :             :             }
    1139                 :             :           default:;
    1140                 :             :           }
    1141                 :             :         break;
    1142                 :             :       }
    1143                 :             :     default:;
    1144                 :             :     }
    1145                 :             :   return false;
    1146                 :             : }
    1147                 :             : 
    1148                 :             : tree
    1149                 :          56 : generic_simplify_32 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1150                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    1151                 :             :  const enum tree_code ARG_UNUSED (cmp),
    1152                 :             :  const enum tree_code ARG_UNUSED (icmp),
    1153                 :             :  const enum tree_code ARG_UNUSED (ncmp))
    1154                 :             : {
    1155                 :          56 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1156                 :          56 :   if (TYPE_PRECISION (type) > 1
    1157                 :          56 :  && INTEGRAL_TYPE_P (TREE_TYPE (captures[0])) && TYPE_PRECISION (TREE_TYPE (captures[0])) == 1
    1158                 :             : )
    1159                 :             :     {
    1160                 :           0 :       {
    1161                 :           0 :  enum tree_code ic = invert_tree_comparison
    1162                 :           0 :  (cmp, HONOR_NANS (captures[1]));
    1163                 :           0 :  tree cmptype = TREE_TYPE (captures[0]);
    1164                 :           0 :           if (ic == icmp
    1165                 :             : )
    1166                 :             :             {
    1167                 :           0 :               if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail327;
    1168                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail327;
    1169                 :           0 :               {
    1170                 :           0 :                 tree res_op0;
    1171                 :           0 :                 {
    1172                 :           0 :                   tree _o1[1], _r1;
    1173                 :           0 :                   {
    1174                 :           0 :                     tree _o2[2], _r2;
    1175                 :           0 :                     _o2[0] = captures[1];
    1176                 :           0 :                     _o2[1] = captures[2];
    1177                 :           0 :                     _r2 = fold_build2_loc (loc, icmp, cmptype, _o2[0], _o2[1]);
    1178                 :           0 :                     _o1[0] = _r2;
    1179                 :             :                   }
    1180                 :           0 :                   if (TREE_TYPE (_o1[0]) != type)
    1181                 :             :                     {
    1182                 :           0 :                       _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
    1183                 :             :                     }
    1184                 :             :                   else
    1185                 :             :                     _r1 = _o1[0];
    1186                 :           0 :                   res_op0 = _r1;
    1187                 :             :                 }
    1188                 :           0 :                 tree _r;
    1189                 :           0 :                 _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
    1190                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 151, __FILE__, __LINE__, true);
    1191                 :           0 :                 return _r;
    1192                 :             :               }
    1193                 :             : next_after_fail327:;
    1194                 :             :             }
    1195                 :             :           else
    1196                 :             :             {
    1197                 :           0 :               if (ic == ncmp
    1198                 :             : )
    1199                 :             :                 {
    1200                 :           0 :                   if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail328;
    1201                 :           0 :                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail328;
    1202                 :           0 :                   {
    1203                 :           0 :                     tree res_op0;
    1204                 :           0 :                     {
    1205                 :           0 :                       tree _o1[1], _r1;
    1206                 :           0 :                       {
    1207                 :           0 :                         tree _o2[2], _r2;
    1208                 :           0 :                         _o2[0] = captures[1];
    1209                 :           0 :                         _o2[1] = captures[2];
    1210                 :           0 :                         _r2 = fold_build2_loc (loc, ncmp, cmptype, _o2[0], _o2[1]);
    1211                 :           0 :                         _o1[0] = _r2;
    1212                 :             :                       }
    1213                 :           0 :                       if (TREE_TYPE (_o1[0]) != type)
    1214                 :             :                         {
    1215                 :           0 :                           _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
    1216                 :             :                         }
    1217                 :             :                       else
    1218                 :             :                         _r1 = _o1[0];
    1219                 :           0 :                       res_op0 = _r1;
    1220                 :             :                     }
    1221                 :           0 :                     tree _r;
    1222                 :           0 :                     _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
    1223                 :           0 :                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 152, __FILE__, __LINE__, true);
    1224                 :           0 :                     return _r;
    1225                 :             :                   }
    1226                 :             : next_after_fail328:;
    1227                 :             :                 }
    1228                 :             :             }
    1229                 :             :       }
    1230                 :             :     }
    1231                 :             :   return NULL_TREE;
    1232                 :             : }
    1233                 :             : 
    1234                 :             : tree
    1235                 :          21 : generic_simplify_42 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1236                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
    1237                 :             : {
    1238                 :          21 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1239                 :          21 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail338;
    1240                 :          21 :   {
    1241                 :          21 :     tree res_op0;
    1242                 :          21 :     {
    1243                 :          21 :       tree _o1[2], _r1;
    1244                 :          21 :       _o1[0] = captures[1];
    1245                 :          21 :       _o1[1] = unshare_expr (captures[2]);
    1246                 :          21 :       _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    1247                 :          21 :       res_op0 = _r1;
    1248                 :             :     }
    1249                 :          21 :     tree res_op1;
    1250                 :          21 :     res_op1 = captures[2];
    1251                 :          21 :     tree _r;
    1252                 :          21 :     _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
    1253                 :          21 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 162, __FILE__, __LINE__, true);
    1254                 :             :     return _r;
    1255                 :             :   }
    1256                 :           0 : next_after_fail338:;
    1257                 :           0 :   return NULL_TREE;
    1258                 :             : }
    1259                 :             : 
    1260                 :             : tree
    1261                 :         276 : generic_simplify_48 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1262                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
    1263                 :             : {
    1264                 :         276 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1265                 :         276 :   if (tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
    1266                 :         276 :  && tree_nop_conversion_p (type, TREE_TYPE (captures[3]))
    1267                 :             : )
    1268                 :             :     {
    1269                 :         276 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail344;
    1270                 :         276 :       {
    1271                 :         276 :         tree res_op0;
    1272                 :         276 :         {
    1273                 :         276 :           tree _o1[2], _r1;
    1274                 :         276 :           {
    1275                 :         276 :             tree _o2[1], _r2;
    1276                 :         276 :             _o2[0] = captures[3];
    1277                 :         276 :             _r2 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
    1278                 :         276 :             _o1[0] = _r2;
    1279                 :             :           }
    1280                 :         276 :           _o1[1] = captures[0];
    1281                 :         276 :           _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    1282                 :         276 :           res_op0 = _r1;
    1283                 :             :         }
    1284                 :         276 :         tree _r;
    1285                 :         276 :         _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
    1286                 :         276 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 167, __FILE__, __LINE__, true);
    1287                 :         276 :         return _r;
    1288                 :             :       }
    1289                 :           0 : next_after_fail344:;
    1290                 :             :     }
    1291                 :             :   return NULL_TREE;
    1292                 :             : }
    1293                 :             : 
    1294                 :             : tree
    1295                 :         664 : generic_simplify_55 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1296                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
    1297                 :             : {
    1298                 :         664 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1299                 :         664 :   if (!TYPE_SATURATING (type)
    1300                 :             : )
    1301                 :             :     {
    1302                 :         664 :       if ((!FLOAT_TYPE_P (type) || flag_associative_math)
    1303                 :        1328 :  && !FIXED_POINT_TYPE_P (type)
    1304                 :             : )
    1305                 :             :         {
    1306                 :         664 :           if (!ANY_INTEGRAL_TYPE_P (type) || TYPE_OVERFLOW_WRAPS (type)
    1307                 :             : )
    1308                 :             :             {
    1309                 :          24 :               if (!CONSTANT_CLASS_P (captures[2])
    1310                 :             : )
    1311                 :             :                 {
    1312                 :          24 :                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail353;
    1313                 :          24 :                   {
    1314                 :          24 :                     tree res_op0;
    1315                 :          24 :                     {
    1316                 :          24 :                       tree _o1[1], _r1;
    1317                 :          24 :                       _o1[0] = captures[2];
    1318                 :          24 :                       if (TREE_TYPE (_o1[0]) != type)
    1319                 :             :                         {
    1320                 :          24 :                           _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o1[0]);
    1321                 :             :                         }
    1322                 :             :                       else
    1323                 :             :                         _r1 = _o1[0];
    1324                 :          24 :                       res_op0 = _r1;
    1325                 :             :                     }
    1326                 :          24 :                     tree res_op1;
    1327                 :          24 :                     {
    1328                 :          24 :                       tree _o1[2], _r1;
    1329                 :          24 :                       _o1[0] = captures[0];
    1330                 :          24 :                       {
    1331                 :          24 :                         tree _o2[1], _r2;
    1332                 :          24 :                         _o2[0] = captures[1];
    1333                 :          24 :                         if (TREE_TYPE (_o2[0]) != type)
    1334                 :             :                           {
    1335                 :          24 :                             _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o2[0]);
    1336                 :             :                           }
    1337                 :             :                         else
    1338                 :             :                           _r2 = _o2[0];
    1339                 :          24 :                         _o1[1] = _r2;
    1340                 :             :                       }
    1341                 :          24 :                       _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    1342                 :          24 :                       if (EXPR_P (_r1))
    1343                 :           0 :                         goto next_after_fail353;
    1344                 :          24 :                       res_op1 = _r1;
    1345                 :             :                     }
    1346                 :          24 :                     tree _r;
    1347                 :          24 :                     _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
    1348                 :          24 :                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 176, __FILE__, __LINE__, true);
    1349                 :          24 :                     return _r;
    1350                 :             :                   }
    1351                 :             : next_after_fail353:;
    1352                 :             :                 }
    1353                 :             :             }
    1354                 :             :           else
    1355                 :             :             {
    1356                 :        1280 :               if (!ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
    1357                 :        1280 :  || TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[2]))
    1358                 :             : )
    1359                 :             :                 {
    1360                 :           1 :                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail354;
    1361                 :           1 :                   {
    1362                 :           1 :                     tree res_op0;
    1363                 :           1 :                     {
    1364                 :           1 :                       tree _o1[2], _r1;
    1365                 :           1 :                       _o1[0] = captures[2];
    1366                 :           1 :                       {
    1367                 :           1 :                         tree _o2[2], _r2;
    1368                 :           1 :                         {
    1369                 :           1 :                           tree _o3[1], _r3;
    1370                 :           1 :                           _o3[0] = captures[0];
    1371                 :           1 :                           if (TREE_TYPE (_o3[0]) != TREE_TYPE (_o1[0]))
    1372                 :             :                             {
    1373                 :           1 :                               _r3 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, TREE_TYPE (_o1[0]), _o3[0]);
    1374                 :             :                             }
    1375                 :             :                           else
    1376                 :             :                             _r3 = _o3[0];
    1377                 :           1 :                           _o2[0] = _r3;
    1378                 :             :                         }
    1379                 :           1 :                         _o2[1] = captures[1];
    1380                 :           1 :                         _r2 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
    1381                 :           1 :                         if (EXPR_P (_r2))
    1382                 :           0 :                           goto next_after_fail354;
    1383                 :           1 :                         _o1[1] = _r2;
    1384                 :             :                       }
    1385                 :           1 :                       _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    1386                 :           1 :                       res_op0 = _r1;
    1387                 :             :                     }
    1388                 :           1 :                     tree _r;
    1389                 :           1 :                     _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
    1390                 :           1 :                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 177, __FILE__, __LINE__, true);
    1391                 :           1 :                     return _r;
    1392                 :             :                   }
    1393                 :             : next_after_fail354:;
    1394                 :             :                 }
    1395                 :             :               else
    1396                 :             :                 {
    1397                 :         639 :                   if (types_match (type, captures[2]) && !TYPE_OVERFLOW_SANITIZED (type)
    1398                 :             : )
    1399                 :             :                     {
    1400                 :         630 :                       {
    1401                 :         630 :  tree cst = const_binop (MINUS_EXPR, type, captures[0], captures[1]);
    1402                 :         630 :                           if (cst && !TREE_OVERFLOW (cst)
    1403                 :             : )
    1404                 :             :                             {
    1405                 :         630 :                               if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail355;
    1406                 :         630 :                               if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail355;
    1407                 :         630 :                               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail355;
    1408                 :         630 :                               {
    1409                 :         630 :                                 tree res_op0;
    1410                 :         630 :                                 res_op0 =  cst;
    1411                 :         630 :                                 tree res_op1;
    1412                 :         630 :                                 res_op1 = captures[2];
    1413                 :         630 :                                 tree _r;
    1414                 :         630 :                                 _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
    1415                 :         630 :                                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 178, __FILE__, __LINE__, true);
    1416                 :         630 :                                 return _r;
    1417                 :             :                               }
    1418                 :             : next_after_fail355:;
    1419                 :             :                             }
    1420                 :             :                       }
    1421                 :             :                     }
    1422                 :             :                 }
    1423                 :             :             }
    1424                 :             :         }
    1425                 :             :     }
    1426                 :             :   return NULL_TREE;
    1427                 :             : }
    1428                 :             : 
    1429                 :             : tree
    1430                 :          29 : generic_simplify_75 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1431                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    1432                 :             :  const enum tree_code ARG_UNUSED (bit_op))
    1433                 :             : {
    1434                 :          29 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1435                 :          29 :   if (bit_op == BIT_AND_EXPR
    1436                 :             : )
    1437                 :             :     {
    1438                 :           9 :       if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail377;
    1439                 :           9 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail377;
    1440                 :           9 :       {
    1441                 :           9 :         tree _r;
    1442                 :           9 :         _r =  build_zero_cst (type);
    1443                 :           9 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 199, __FILE__, __LINE__, true);
    1444                 :           9 :         return _r;
    1445                 :             :       }
    1446                 :             : next_after_fail377:;
    1447                 :             :     }
    1448                 :             :   else
    1449                 :             :     {
    1450                 :          20 :       if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail378;
    1451                 :          20 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail378;
    1452                 :          20 :       {
    1453                 :          20 :         tree _r;
    1454                 :          20 :         _r =  build_minus_one_cst (type);
    1455                 :          20 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 200, __FILE__, __LINE__, true);
    1456                 :          20 :         return _r;
    1457                 :             :       }
    1458                 :             : next_after_fail378:;
    1459                 :             :     }
    1460                 :             :   return NULL_TREE;
    1461                 :             : }
    1462                 :             : 
    1463                 :             : tree
    1464                 :           8 : generic_simplify_83 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1465                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
    1466                 :             : {
    1467                 :           8 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1468                 :          16 :   if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
    1469                 :          16 :  && TYPE_PRECISION (TREE_TYPE (captures[0])) == 1
    1470                 :             : )
    1471                 :             :     {
    1472                 :           0 :       if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail389;
    1473                 :           0 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail389;
    1474                 :           0 :       {
    1475                 :           0 :         tree _r;
    1476                 :           0 :         _r = captures[2];
    1477                 :           0 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 206, __FILE__, __LINE__, true);
    1478                 :           0 :         return _r;
    1479                 :             :       }
    1480                 :             : next_after_fail389:;
    1481                 :             :     }
    1482                 :             :   return NULL_TREE;
    1483                 :             : }
    1484                 :             : 
    1485                 :             : tree
    1486                 :           1 : generic_simplify_91 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1487                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
    1488                 :             : {
    1489                 :           1 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1490                 :           1 :   if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail397;
    1491                 :           1 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail397;
    1492                 :           1 :   {
    1493                 :           1 :     tree _r;
    1494                 :           1 :     _r = captures[0];
    1495                 :           1 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 211, __FILE__, __LINE__, true);
    1496                 :             :     return _r;
    1497                 :             :   }
    1498                 :             : next_after_fail397:;
    1499                 :             :   return NULL_TREE;
    1500                 :             : }
    1501                 :             : 
    1502                 :             : tree
    1503                 :       17825 : generic_simplify_98 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1504                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
    1505                 :             : {
    1506                 :       17825 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1507                 :       17825 :   {
    1508                 :       17825 :  bool wascmp;
    1509                 :       17825 :       if ((bitwise_inverted_equal_p (captures[0], captures[2], wascmp)
    1510                 :       17825 :  || bitwise_inverted_equal_p (captures[1], captures[2], wascmp))
    1511                 :       17825 :  && (!wascmp || element_precision (type) == 1)
    1512                 :             : )
    1513                 :             :         {
    1514                 :           0 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail404;
    1515                 :           0 :           {
    1516                 :           0 :             tree _r;
    1517                 :           0 :             _r =  build_all_ones_cst (TREE_TYPE (captures[0]));
    1518                 :           0 :             if (TREE_SIDE_EFFECTS (captures[0]))
    1519                 :           0 :               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    1520                 :           0 :             if (TREE_SIDE_EFFECTS (captures[1]))
    1521                 :           0 :               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1522                 :           0 :             if (TREE_SIDE_EFFECTS (captures[2]))
    1523                 :           0 :               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    1524                 :           0 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 216, __FILE__, __LINE__, true);
    1525                 :           0 :             return _r;
    1526                 :             :           }
    1527                 :           0 : next_after_fail404:;
    1528                 :             :         }
    1529                 :             :   }
    1530                 :       17825 :   return NULL_TREE;
    1531                 :             : }
    1532                 :             : 
    1533                 :             : tree
    1534                 :          21 : generic_simplify_105 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1535                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    1536                 :             :  const enum tree_code ARG_UNUSED (bitop),
    1537                 :             :  const enum tree_code ARG_UNUSED (rbitop))
    1538                 :             : {
    1539                 :          21 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1540                 :          21 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail415;
    1541                 :          21 :   {
    1542                 :          21 :     tree _r;
    1543                 :          21 :     _r = captures[0];
    1544                 :          21 :     if (TREE_SIDE_EFFECTS (captures[1]))
    1545                 :           0 :       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1546                 :          21 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 220, __FILE__, __LINE__, true);
    1547                 :             :     return _r;
    1548                 :             :   }
    1549                 :           0 : next_after_fail415:;
    1550                 :           0 :   return NULL_TREE;
    1551                 :             : }
    1552                 :             : 
    1553                 :             : tree
    1554                 :           2 : generic_simplify_107 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1555                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    1556                 :             :  const enum tree_code ARG_UNUSED (bitop),
    1557                 :             :  const enum tree_code ARG_UNUSED (rbitop))
    1558                 :             : {
    1559                 :           2 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1560                 :           2 :   if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail417;
    1561                 :           2 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail417;
    1562                 :           2 :   {
    1563                 :           2 :     tree _r;
    1564                 :           2 :     _r = captures[2];
    1565                 :           2 :     if (TREE_SIDE_EFFECTS (captures[1]))
    1566                 :           0 :       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1567                 :           2 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 222, __FILE__, __LINE__, true);
    1568                 :             :     return _r;
    1569                 :             :   }
    1570                 :             : next_after_fail417:;
    1571                 :             :   return NULL_TREE;
    1572                 :             : }
    1573                 :             : 
    1574                 :             : tree
    1575                 :           0 : generic_simplify_114 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1576                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    1577                 :             :  const enum tree_code ARG_UNUSED (op))
    1578                 :             : {
    1579                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1580                 :           0 :   if (bitwise_equal_p (captures[4], captures[7])
    1581                 :             : )
    1582                 :             :     {
    1583                 :           0 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail425;
    1584                 :           0 :       {
    1585                 :           0 :         tree res_op0;
    1586                 :           0 :         {
    1587                 :           0 :           tree _o1[2], _r1;
    1588                 :           0 :           {
    1589                 :           0 :             tree _o2[2], _r2;
    1590                 :           0 :             _o2[0] = captures[5];
    1591                 :           0 :             {
    1592                 :           0 :               tree _o3[1], _r3;
    1593                 :           0 :               _o3[0] = captures[6];
    1594                 :           0 :               if (TREE_TYPE (_o3[0]) != TREE_TYPE (_o2[0]))
    1595                 :             :                 {
    1596                 :           0 :                   _r3 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (_o2[0]), _o3[0]);
    1597                 :             :                 }
    1598                 :             :               else
    1599                 :             :                 _r3 = _o3[0];
    1600                 :           0 :               _o2[1] = _r3;
    1601                 :             :             }
    1602                 :           0 :             _r2 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
    1603                 :           0 :             _o1[0] = _r2;
    1604                 :             :           }
    1605                 :           0 :           {
    1606                 :           0 :             tree _o2[1], _r2;
    1607                 :           0 :             _o2[0] = captures[4];
    1608                 :           0 :             if (TREE_TYPE (_o2[0]) != TREE_TYPE (_o1[0]))
    1609                 :             :               {
    1610                 :           0 :                 _r2 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (_o1[0]), _o2[0]);
    1611                 :             :               }
    1612                 :             :             else
    1613                 :             :               _r2 = _o2[0];
    1614                 :           0 :             _o1[1] = _r2;
    1615                 :             :           }
    1616                 :           0 :           _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    1617                 :           0 :           res_op0 = _r1;
    1618                 :             :         }
    1619                 :           0 :         tree _r;
    1620                 :           0 :         _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
    1621                 :           0 :         if (TREE_SIDE_EFFECTS (captures[7]))
    1622                 :           0 :           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[7]), _r);
    1623                 :           0 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 224, __FILE__, __LINE__, true);
    1624                 :           0 :         return _r;
    1625                 :             :       }
    1626                 :           0 : next_after_fail425:;
    1627                 :             :     }
    1628                 :             :   return NULL_TREE;
    1629                 :             : }
    1630                 :             : 
    1631                 :             : tree
    1632                 :           0 : generic_simplify_122 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1633                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    1634                 :             :  const enum tree_code ARG_UNUSED (cmp),
    1635                 :             :  const enum tree_code ARG_UNUSED (icmp))
    1636                 :             : {
    1637                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1638                 :           0 :   if (integer_zerop (captures[5])
    1639                 :           0 :  && invert_tree_comparison (cmp, HONOR_NANS (captures[2])) == icmp
    1640                 :             : )
    1641                 :             :     {
    1642                 :           0 :       if (integer_onep (captures[4])
    1643                 :             : )
    1644                 :             :         {
    1645                 :           0 :           if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail435;
    1646                 :           0 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail435;
    1647                 :           0 :           {
    1648                 :           0 :             tree res_op0;
    1649                 :           0 :             {
    1650                 :           0 :               tree _o1[3], _r1;
    1651                 :           0 :               _o1[0] = captures[1];
    1652                 :           0 :               _o1[1] = captures[6];
    1653                 :           0 :               _o1[2] = captures[9];
    1654                 :           0 :               _r1 = fold_build3_loc (loc, VEC_COND_EXPR, TREE_TYPE (_o1[1]), _o1[0], _o1[1], _o1[2]);
    1655                 :           0 :               res_op0 = _r1;
    1656                 :             :             }
    1657                 :           0 :             tree res_op1;
    1658                 :           0 :             res_op1 = captures[4];
    1659                 :           0 :             tree _r;
    1660                 :           0 :             _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
    1661                 :           0 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 235, __FILE__, __LINE__, true);
    1662                 :           0 :             return _r;
    1663                 :             :           }
    1664                 :             : next_after_fail435:;
    1665                 :             :         }
    1666                 :             :       else
    1667                 :             :         {
    1668                 :           0 :           if (integer_minus_onep (captures[4])
    1669                 :             : )
    1670                 :             :             {
    1671                 :           0 :               if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail436;
    1672                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail436;
    1673                 :           0 :               {
    1674                 :           0 :                 tree res_op0;
    1675                 :           0 :                 res_op0 = captures[1];
    1676                 :           0 :                 tree res_op1;
    1677                 :           0 :                 res_op1 = captures[6];
    1678                 :           0 :                 tree res_op2;
    1679                 :           0 :                 res_op2 = captures[9];
    1680                 :           0 :                 tree _r;
    1681                 :           0 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    1682                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 236, __FILE__, __LINE__, true);
    1683                 :           0 :                 return _r;
    1684                 :             :               }
    1685                 :             : next_after_fail436:;
    1686                 :             :             }
    1687                 :             :         }
    1688                 :             :     }
    1689                 :             :   else
    1690                 :             :     {
    1691                 :           0 :       if (integer_zerop (captures[4])
    1692                 :           0 :  && invert_tree_comparison (cmp, HONOR_NANS (captures[2])) == icmp
    1693                 :             : )
    1694                 :             :         {
    1695                 :           0 :           if (integer_onep (captures[5])
    1696                 :             : )
    1697                 :             :             {
    1698                 :           0 :               if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail437;
    1699                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail437;
    1700                 :           0 :               {
    1701                 :           0 :                 tree res_op0;
    1702                 :           0 :                 {
    1703                 :           0 :                   tree _o1[3], _r1;
    1704                 :           0 :                   _o1[0] = captures[1];
    1705                 :           0 :                   _o1[1] = captures[9];
    1706                 :           0 :                   _o1[2] = captures[6];
    1707                 :           0 :                   _r1 = fold_build3_loc (loc, VEC_COND_EXPR, TREE_TYPE (_o1[1]), _o1[0], _o1[1], _o1[2]);
    1708                 :           0 :                   res_op0 = _r1;
    1709                 :             :                 }
    1710                 :           0 :                 tree res_op1;
    1711                 :           0 :                 res_op1 = captures[5];
    1712                 :           0 :                 tree _r;
    1713                 :           0 :                 _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
    1714                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 237, __FILE__, __LINE__, true);
    1715                 :           0 :                 return _r;
    1716                 :             :               }
    1717                 :             : next_after_fail437:;
    1718                 :             :             }
    1719                 :             :           else
    1720                 :             :             {
    1721                 :           0 :               if (integer_minus_onep (captures[5])
    1722                 :             : )
    1723                 :             :                 {
    1724                 :           0 :                   if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail438;
    1725                 :           0 :                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail438;
    1726                 :           0 :                   {
    1727                 :           0 :                     tree res_op0;
    1728                 :           0 :                     res_op0 = captures[1];
    1729                 :           0 :                     tree res_op1;
    1730                 :           0 :                     res_op1 = captures[9];
    1731                 :           0 :                     tree res_op2;
    1732                 :           0 :                     res_op2 = captures[6];
    1733                 :           0 :                     tree _r;
    1734                 :           0 :                     _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    1735                 :           0 :                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 238, __FILE__, __LINE__, true);
    1736                 :           0 :                     return _r;
    1737                 :             :                   }
    1738                 :             : next_after_fail438:;
    1739                 :             :                 }
    1740                 :             :             }
    1741                 :             :         }
    1742                 :             :     }
    1743                 :             :   return NULL_TREE;
    1744                 :             : }
    1745                 :             : 
    1746                 :             : tree
    1747                 :           8 : generic_simplify_140 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1748                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    1749                 :             :  const enum tree_code ARG_UNUSED (eqne))
    1750                 :             : {
    1751                 :           8 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1752                 :           8 :   if (eqne == EQ_EXPR
    1753                 :             : )
    1754                 :             :     {
    1755                 :           4 :       if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail488;
    1756                 :           4 :       if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail488;
    1757                 :           4 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail488;
    1758                 :           4 :       {
    1759                 :           4 :         tree _r;
    1760                 :           4 :         _r = captures[0];
    1761                 :           4 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 262, __FILE__, __LINE__, true);
    1762                 :           4 :         return _r;
    1763                 :             :       }
    1764                 :             : next_after_fail488:;
    1765                 :             :     }
    1766                 :             :   else
    1767                 :             :     {
    1768                 :           4 :       if (eqne == NE_EXPR
    1769                 :             : )
    1770                 :             :         {
    1771                 :           4 :           if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail489;
    1772                 :           4 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail489;
    1773                 :           4 :           {
    1774                 :           4 :             tree _r;
    1775                 :           4 :             _r =  constant_boolean_node (true, type);
    1776                 :           4 :             if (TREE_SIDE_EFFECTS (captures[2]))
    1777                 :           0 :               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    1778                 :           4 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 263, __FILE__, __LINE__, true);
    1779                 :           4 :             return _r;
    1780                 :             :           }
    1781                 :             : next_after_fail489:;
    1782                 :             :         }
    1783                 :             :     }
    1784                 :             :   return NULL_TREE;
    1785                 :             : }
    1786                 :             : 
    1787                 :             : tree
    1788                 :           0 : generic_simplify_144 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1789                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    1790                 :             :  const enum tree_code ARG_UNUSED (op))
    1791                 :             : {
    1792                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1793                 :           0 :   if (INTEGRAL_TYPE_P (type)
    1794                 :           0 :  && tree_int_cst_sgn (captures[5]) > 0
    1795                 :           0 :  && (tree_nonzero_bits (captures[0]) & tree_nonzero_bits (captures[4])) == 0
    1796                 :             : )
    1797                 :             :     {
    1798                 :           0 :       {
    1799                 :           0 :  tree t = type;
    1800                 :           0 :  if (!TYPE_OVERFLOW_WRAPS (t))
    1801                 :           0 :  t = unsigned_type_for (t);
    1802                 :           0 :  wide_int wone = wi::one (TYPE_PRECISION (type));
    1803                 :           0 :  wide_int c = wi::add (wi::to_wide (captures[3]),
    1804                 :           0 :  wi::lshift (wone, wi::to_wide (captures[5])));
    1805                 :           0 :           if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail493;
    1806                 :           0 :           if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail493;
    1807                 :           0 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail493;
    1808                 :           0 :           {
    1809                 :           0 :             tree res_op0;
    1810                 :           0 :             {
    1811                 :           0 :               tree _o1[2], _r1;
    1812                 :           0 :               {
    1813                 :           0 :                 tree _o2[1], _r2;
    1814                 :           0 :                 _o2[0] = captures[2];
    1815                 :           0 :                 if (TREE_TYPE (_o2[0]) != t)
    1816                 :             :                   {
    1817                 :           0 :                     _r2 = fold_build1_loc (loc, NOP_EXPR, t, _o2[0]);
    1818                 :             :                   }
    1819                 :             :                 else
    1820                 :             :                   _r2 = _o2[0];
    1821                 :           0 :                 _o1[0] = _r2;
    1822                 :             :               }
    1823                 :           0 :               _o1[1] =  wide_int_to_tree (t, c);
    1824                 :           0 :               _r1 = fold_build2_loc (loc, MULT_EXPR, t, _o1[0], _o1[1]);
    1825                 :           0 :               res_op0 = _r1;
    1826                 :             :             }
    1827                 :           0 :             tree _r;
    1828                 :           0 :             _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
    1829                 :           0 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 228, __FILE__, __LINE__, true);
    1830                 :           0 :             return _r;
    1831                 :             :           }
    1832                 :           0 : next_after_fail493:;
    1833                 :           0 :       }
    1834                 :             :     }
    1835                 :             :   return NULL_TREE;
    1836                 :             : }
    1837                 :             : 
    1838                 :             : tree
    1839                 :           0 : generic_simplify_148 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1840                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
    1841                 :             : {
    1842                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1843                 :           0 :   if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail497;
    1844                 :           0 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail497;
    1845                 :           0 :   {
    1846                 :           0 :     tree _r;
    1847                 :           0 :     _r = captures[1];
    1848                 :           0 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 267, __FILE__, __LINE__, true);
    1849                 :             :     return _r;
    1850                 :             :   }
    1851                 :             : next_after_fail497:;
    1852                 :             :   return NULL_TREE;
    1853                 :             : }
    1854                 :             : 
    1855                 :             : tree
    1856                 :          46 : generic_simplify_150 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1857                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    1858                 :             :  const enum tree_code ARG_UNUSED (logic),
    1859                 :             :  const enum tree_code ARG_UNUSED (op),
    1860                 :             :  const enum tree_code ARG_UNUSED (ext))
    1861                 :             : {
    1862                 :          46 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1863                 :          92 :   if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
    1864                 :          92 :  && TREE_CODE (captures[1]) != INTEGER_CST
    1865                 :             : )
    1866                 :             :     {
    1867                 :           0 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail499;
    1868                 :           0 :       {
    1869                 :           0 :         tree res_op0;
    1870                 :           0 :         res_op0 = captures[1];
    1871                 :           0 :         tree res_op1;
    1872                 :           0 :         {
    1873                 :           0 :           tree _o1[2], _r1;
    1874                 :           0 :           _o1[0] = captures[2];
    1875                 :           0 :           _o1[1] = captures[4];
    1876                 :           0 :           _r1 = fold_build2_loc (loc, ext, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    1877                 :           0 :           res_op1 = _r1;
    1878                 :             :         }
    1879                 :           0 :         tree _r;
    1880                 :           0 :         _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
    1881                 :           0 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 268, __FILE__, __LINE__, true);
    1882                 :           0 :         return _r;
    1883                 :             :       }
    1884                 :           0 : next_after_fail499:;
    1885                 :             :     }
    1886                 :             :   return NULL_TREE;
    1887                 :             : }
    1888                 :             : 
    1889                 :             : tree
    1890                 :           1 : generic_simplify_155 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1891                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
    1892                 :             : {
    1893                 :           1 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1894                 :           1 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail504;
    1895                 :           1 :   {
    1896                 :           1 :     tree res_op0;
    1897                 :           1 :     res_op0 = captures[0];
    1898                 :           1 :     tree _r;
    1899                 :           1 :     _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
    1900                 :           1 :     if (TREE_SIDE_EFFECTS (captures[1]))
    1901                 :           0 :       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1902                 :           1 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 273, __FILE__, __LINE__, true);
    1903                 :             :     return _r;
    1904                 :             :   }
    1905                 :           0 : next_after_fail504:;
    1906                 :           0 :   return NULL_TREE;
    1907                 :             : }
    1908                 :             : 
    1909                 :             : tree
    1910                 :           0 : generic_simplify_160 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1911                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
    1912                 :             : {
    1913                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1914                 :           0 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail509;
    1915                 :           0 :   {
    1916                 :           0 :     tree res_op0;
    1917                 :           0 :     res_op0 = captures[0];
    1918                 :           0 :     tree res_op1;
    1919                 :           0 :     res_op1 = captures[1];
    1920                 :           0 :     tree _r;
    1921                 :           0 :     _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
    1922                 :           0 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 278, __FILE__, __LINE__, true);
    1923                 :             :     return _r;
    1924                 :             :   }
    1925                 :           0 : next_after_fail509:;
    1926                 :           0 :   return NULL_TREE;
    1927                 :             : }
    1928                 :             : 
    1929                 :             : tree
    1930                 :         731 : generic_simplify_165 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1931                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
    1932                 :             : {
    1933                 :         731 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1934                 :         731 :   if (tree_nop_conversion_p (type, TREE_TYPE (captures[2]))
    1935                 :             : )
    1936                 :             :     {
    1937                 :         731 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail514;
    1938                 :         731 :       {
    1939                 :         731 :         tree res_op0;
    1940                 :         731 :         {
    1941                 :         731 :           tree _o1[2], _r1;
    1942                 :         731 :           {
    1943                 :         731 :             tree _o2[1], _r2;
    1944                 :         731 :             _o2[0] = captures[2];
    1945                 :         731 :             if (TREE_TYPE (_o2[0]) != type)
    1946                 :             :               {
    1947                 :           0 :                 _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o2[0]);
    1948                 :             :               }
    1949                 :             :             else
    1950                 :             :               _r2 = _o2[0];
    1951                 :         731 :             _o1[0] = _r2;
    1952                 :             :           }
    1953                 :         731 :           _o1[1] = captures[3];
    1954                 :         731 :           _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    1955                 :         731 :           res_op0 = _r1;
    1956                 :             :         }
    1957                 :         731 :         tree _r;
    1958                 :         731 :         _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
    1959                 :         731 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 283, __FILE__, __LINE__, true);
    1960                 :         731 :         return _r;
    1961                 :             :       }
    1962                 :           0 : next_after_fail514:;
    1963                 :             :     }
    1964                 :             :   return NULL_TREE;
    1965                 :             : }
    1966                 :             : 
    1967                 :             : tree
    1968                 :          11 : generic_simplify_173 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1969                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    1970                 :             :  const combined_fn ARG_UNUSED (PARITY))
    1971                 :             : {
    1972                 :          11 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1973                 :          11 :   if (types_match (TREE_TYPE (captures[1]), TREE_TYPE (captures[3]))
    1974                 :             : )
    1975                 :             :     {
    1976                 :          10 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail523;
    1977                 :          10 :       {
    1978                 :          10 :         tree res_op0;
    1979                 :          10 :         {
    1980                 :          10 :           tree _o1[2], _r1;
    1981                 :          10 :           _o1[0] = captures[1];
    1982                 :          10 :           _o1[1] = captures[3];
    1983                 :          10 :           _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    1984                 :          10 :           res_op0 = _r1;
    1985                 :             :         }
    1986                 :          10 :         tree _r;
    1987                 :          10 :         _r = maybe_build_call_expr_loc (loc, PARITY, type, 1, res_op0);
    1988                 :          10 :         if (!_r)
    1989                 :           0 :           goto next_after_fail523;
    1990                 :          10 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 291, __FILE__, __LINE__, true);
    1991                 :          10 :         return _r;
    1992                 :             :       }
    1993                 :             : next_after_fail523:;
    1994                 :             :     }
    1995                 :             :   else
    1996                 :             :     {
    1997                 :           2 :       if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
    1998                 :           2 :  && INTEGRAL_TYPE_P (TREE_TYPE (captures[3]))
    1999                 :             : )
    2000                 :             :         {
    2001                 :           1 :           {
    2002                 :           1 :  tree utype = TREE_TYPE (captures[1]);
    2003                 :           1 :  if (TYPE_PRECISION (utype) < TYPE_PRECISION (TREE_TYPE (captures[3])))
    2004                 :           1 :  utype = TREE_TYPE (captures[3]);
    2005                 :           1 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail524;
    2006                 :           1 :               {
    2007                 :           1 :                 tree res_op0;
    2008                 :           1 :                 {
    2009                 :           1 :                   tree _o1[2], _r1;
    2010                 :           1 :                   {
    2011                 :           1 :                     tree _o2[1], _r2;
    2012                 :           1 :                     _o2[0] = captures[1];
    2013                 :           1 :                     if (TREE_TYPE (_o2[0]) != utype)
    2014                 :             :                       {
    2015                 :           1 :                         _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
    2016                 :             :                       }
    2017                 :             :                     else
    2018                 :             :                       _r2 = _o2[0];
    2019                 :           1 :                     _o1[0] = _r2;
    2020                 :             :                   }
    2021                 :           1 :                   {
    2022                 :           1 :                     tree _o2[1], _r2;
    2023                 :           1 :                     _o2[0] = captures[3];
    2024                 :           1 :                     if (TREE_TYPE (_o2[0]) != utype)
    2025                 :             :                       {
    2026                 :           0 :                         _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
    2027                 :             :                       }
    2028                 :             :                     else
    2029                 :             :                       _r2 = _o2[0];
    2030                 :           1 :                     _o1[1] = _r2;
    2031                 :             :                   }
    2032                 :           1 :                   _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    2033                 :           1 :                   res_op0 = _r1;
    2034                 :             :                 }
    2035                 :           1 :                 tree _r;
    2036                 :           1 :                 _r = maybe_build_call_expr_loc (loc, PARITY, type, 1, res_op0);
    2037                 :           1 :                 if (!_r)
    2038                 :           1 :                   goto next_after_fail524;
    2039                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 292, __FILE__, __LINE__, true);
    2040                 :           0 :                 return _r;
    2041                 :             :               }
    2042                 :             : next_after_fail524:;
    2043                 :             :           }
    2044                 :             :         }
    2045                 :             :     }
    2046                 :             :   return NULL_TREE;
    2047                 :             : }
    2048                 :             : 
    2049                 :             : tree
    2050                 :      137628 : generic_simplify_190 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2051                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
    2052                 :             : {
    2053                 :      137628 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2054                 :      137628 :   {
    2055                 :      137628 :  poly_widest_int factor;
    2056                 :      137628 :       if (multiple_p (wi::to_poly_widest (captures[2]), wi::to_widest (captures[1]), &factor)
    2057                 :             : )
    2058                 :             :         {
    2059                 :       45633 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail543;
    2060                 :       45633 :           {
    2061                 :       45633 :             tree res_op0;
    2062                 :       45633 :             {
    2063                 :       45633 :               tree _o1[1], _r1;
    2064                 :       45633 :               _o1[0] = captures[0];
    2065                 :       45633 :               if (TREE_TYPE (_o1[0]) != type)
    2066                 :             :                 {
    2067                 :        2900 :                   _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
    2068                 :             :                 }
    2069                 :             :               else
    2070                 :             :                 _r1 = _o1[0];
    2071                 :       45633 :               res_op0 = _r1;
    2072                 :             :             }
    2073                 :       45633 :             tree res_op1;
    2074                 :       45633 :             res_op1 =  wide_int_to_tree (type, factor);
    2075                 :       45633 :             tree _r;
    2076                 :       45633 :             _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
    2077                 :       45633 :             if (TREE_SIDE_EFFECTS (captures[1]))
    2078                 :           0 :               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    2079                 :       45633 :             if (TREE_SIDE_EFFECTS (captures[2]))
    2080                 :           0 :               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    2081                 :       45633 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 305, __FILE__, __LINE__, true);
    2082                 :       45633 :             return _r;
    2083                 :             :           }
    2084                 :           0 : next_after_fail543:;
    2085                 :             :         }
    2086                 :      137628 :   }
    2087                 :       91995 :   return NULL_TREE;
    2088                 :             : }
    2089                 :             : 
    2090                 :             : tree
    2091                 :          38 : generic_simplify_198 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2092                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    2093                 :             :  const combined_fn ARG_UNUSED (POW))
    2094                 :             : {
    2095                 :          38 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2096                 :          38 :   if (flag_unsafe_math_optimizations && canonicalize_math_p ()
    2097                 :             : )
    2098                 :             :     {
    2099                 :          38 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail552;
    2100                 :          38 :       {
    2101                 :          38 :         tree res_op0;
    2102                 :          38 :         res_op0 = captures[1];
    2103                 :          38 :         tree res_op1;
    2104                 :          38 :         {
    2105                 :          38 :           tree _o1[2], _r1;
    2106                 :          38 :           _o1[0] = captures[2];
    2107                 :          38 :           _o1[1] = captures[4];
    2108                 :          38 :           _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    2109                 :          38 :           res_op1 = _r1;
    2110                 :             :         }
    2111                 :          38 :         tree _r;
    2112                 :          38 :         _r = maybe_build_call_expr_loc (loc, POW, type, 2, res_op0, res_op1);
    2113                 :          38 :         if (!_r)
    2114                 :           0 :           goto next_after_fail552;
    2115                 :          38 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 314, __FILE__, __LINE__, true);
    2116                 :          38 :         return _r;
    2117                 :             :       }
    2118                 :             : next_after_fail552:;
    2119                 :             :     }
    2120                 :             :   return NULL_TREE;
    2121                 :             : }
    2122                 :             : 
    2123                 :             : tree
    2124                 :        1736 : generic_simplify_205 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2125                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    2126                 :             :  const enum tree_code ARG_UNUSED (cmp))
    2127                 :             : {
    2128                 :        1736 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2129                 :        3472 :   if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
    2130                 :        1736 :  && TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[0]))
    2131                 :        3472 :  && (TREE_INT_CST_LOW (captures[1]) & 1) != 0
    2132                 :             : )
    2133                 :             :     {
    2134                 :          10 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail559;
    2135                 :          10 :       {
    2136                 :          10 :         tree res_op0;
    2137                 :          10 :         res_op0 = captures[0];
    2138                 :          10 :         tree res_op1;
    2139                 :          10 :         res_op1 = captures[2];
    2140                 :          10 :         tree _r;
    2141                 :          10 :         _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
    2142                 :          10 :         if (TREE_SIDE_EFFECTS (captures[1]))
    2143                 :           0 :           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    2144                 :          10 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 321, __FILE__, __LINE__, true);
    2145                 :          10 :         return _r;
    2146                 :             :       }
    2147                 :           0 : next_after_fail559:;
    2148                 :             :     }
    2149                 :             :   return NULL_TREE;
    2150                 :             : }
    2151                 :             : 
    2152                 :             : tree
    2153                 :       12087 : generic_simplify_211 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2154                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    2155                 :             :  const enum tree_code ARG_UNUSED (op))
    2156                 :             : {
    2157                 :       12087 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2158                 :       12087 :   if (tree_nop_conversion_p (TREE_TYPE (captures[1]), TREE_TYPE (captures[2]))
    2159                 :       12087 :  && tree_nop_conversion_p (TREE_TYPE (captures[0]), TREE_TYPE (captures[2]))
    2160                 :       12087 :  && (CONSTANT_CLASS_P (captures[3]) || (single_use (captures[1]) && single_use (captures[0])))
    2161                 :             : )
    2162                 :             :     {
    2163                 :       12087 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail581;
    2164                 :       12087 :       {
    2165                 :       12087 :         tree res_op0;
    2166                 :       12087 :         res_op0 = captures[3];
    2167                 :       12087 :         tree res_op1;
    2168                 :       12087 :         res_op1 =  build_zero_cst (TREE_TYPE (captures[3]));
    2169                 :       12087 :         tree _r;
    2170                 :       12087 :         _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
    2171                 :       12087 :         if (TREE_SIDE_EFFECTS (captures[2]))
    2172                 :           0 :           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    2173                 :       12087 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 342, __FILE__, __LINE__, true);
    2174                 :       12087 :         return _r;
    2175                 :             :       }
    2176                 :           0 : next_after_fail581:;
    2177                 :             :     }
    2178                 :             :   return NULL_TREE;
    2179                 :             : }
    2180                 :             : 
    2181                 :             : tree
    2182                 :       60958 : generic_simplify_216 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2183                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    2184                 :             :  const enum tree_code ARG_UNUSED (neeq))
    2185                 :             : {
    2186                 :       60958 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2187                 :       60958 :   {
    2188                 :       60958 :  poly_int64 diff; tree inner_type = TREE_TYPE (captures[1]);
    2189                 :       60958 :       if (ptr_difference_const (captures[2], captures[0], &diff)
    2190                 :             : )
    2191                 :             :         {
    2192                 :       13070 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail586;
    2193                 :       13070 :           {
    2194                 :       13070 :             tree res_op0;
    2195                 :       13070 :             res_op0 =  build_int_cst_type (inner_type, diff);
    2196                 :       13070 :             tree res_op1;
    2197                 :       13070 :             res_op1 = captures[1];
    2198                 :       13070 :             tree _r;
    2199                 :       13070 :             _r = fold_build2_loc (loc, neeq, type, res_op0, res_op1);
    2200                 :       13070 :             if (TREE_SIDE_EFFECTS (captures[0]))
    2201                 :           0 :               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    2202                 :       13070 :             if (TREE_SIDE_EFFECTS (captures[2]))
    2203                 :           0 :               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    2204                 :       13070 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 346, __FILE__, __LINE__, true);
    2205                 :       13070 :             return _r;
    2206                 :             :           }
    2207                 :           0 : next_after_fail586:;
    2208                 :             :         }
    2209                 :             :   }
    2210                 :       47888 :   return NULL_TREE;
    2211                 :             : }
    2212                 :             : 
    2213                 :             : tree
    2214                 :           0 : generic_simplify_223 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2215                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    2216                 :             :  const enum tree_code ARG_UNUSED (cmp))
    2217                 :             : {
    2218                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2219                 :           0 :   if (wi::lt_p (wi::to_wide (captures[1]), wi::to_wide (captures[2]),
    2220                 :           0 :  TYPE_SIGN (TREE_TYPE (captures[0])))
    2221                 :             : )
    2222                 :             :     {
    2223                 :           0 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail593;
    2224                 :           0 :       {
    2225                 :           0 :         tree _r;
    2226                 :           0 :         _r =  constant_boolean_node (cmp == NE_EXPR, type);
    2227                 :           0 :         if (TREE_SIDE_EFFECTS (captures[0]))
    2228                 :           0 :           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    2229                 :           0 :         if (TREE_SIDE_EFFECTS (captures[1]))
    2230                 :           0 :           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    2231                 :           0 :         if (TREE_SIDE_EFFECTS (captures[2]))
    2232                 :           0 :           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    2233                 :           0 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 353, __FILE__, __LINE__, true);
    2234                 :           0 :         return _r;
    2235                 :             :       }
    2236                 :           0 : next_after_fail593:;
    2237                 :             :     }
    2238                 :             :   else
    2239                 :             :     {
    2240                 :           0 :       if (wi::gt_p (wi::to_wide (captures[1]), wi::to_wide (captures[2]),
    2241                 :           0 :  TYPE_SIGN (TREE_TYPE (captures[0])))
    2242                 :             : )
    2243                 :             :         {
    2244                 :           0 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail594;
    2245                 :           0 :           {
    2246                 :           0 :             tree res_op0;
    2247                 :           0 :             res_op0 = captures[0];
    2248                 :           0 :             tree res_op1;
    2249                 :           0 :             res_op1 = captures[2];
    2250                 :           0 :             tree _r;
    2251                 :           0 :             _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
    2252                 :           0 :             if (TREE_SIDE_EFFECTS (captures[1]))
    2253                 :           0 :               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    2254                 :           0 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 354, __FILE__, __LINE__, true);
    2255                 :           0 :             return _r;
    2256                 :             :           }
    2257                 :           0 : next_after_fail594:;
    2258                 :             :         }
    2259                 :             :     }
    2260                 :             :   return NULL_TREE;
    2261                 :             : }
    2262                 :             : 
    2263                 :             : tree
    2264                 :         181 : generic_simplify_231 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2265                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    2266                 :             :  const enum tree_code ARG_UNUSED (cmp))
    2267                 :             : {
    2268                 :         181 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2269                 :         181 :   {
    2270                 :         181 :  int cand = wi::ctz (wi::to_wide (captures[2])) - wi::ctz (wi::to_wide (captures[0]));
    2271                 :         362 :       if (cand < 0
    2272                 :         181 :  || (!integer_zerop (captures[2])
    2273                 :         248 :  && wi::lshift (wi::to_wide (captures[0]), cand) != wi::to_wide (captures[2]))
    2274                 :             : )
    2275                 :             :         {
    2276                 :          35 :           if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail612;
    2277                 :          35 :           if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail612;
    2278                 :          35 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail612;
    2279                 :          35 :           {
    2280                 :          35 :             tree _r;
    2281                 :          35 :             _r =  constant_boolean_node (cmp == NE_EXPR, type);
    2282                 :          35 :             if (TREE_SIDE_EFFECTS (captures[1]))
    2283                 :           0 :               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    2284                 :          35 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 372, __FILE__, __LINE__, true);
    2285                 :          88 :             return _r;
    2286                 :             :           }
    2287                 :          93 : next_after_fail612:;
    2288                 :             :         }
    2289                 :             :       else
    2290                 :             :         {
    2291                 :         146 :           if (!integer_zerop (captures[2])
    2292                 :         146 :  && wi::lshift (wi::to_wide (captures[0]), cand) == wi::to_wide (captures[2])
    2293                 :             : )
    2294                 :             :             {
    2295                 :          53 :               if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail613;
    2296                 :          53 :               if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail613;
    2297                 :          53 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail613;
    2298                 :          53 :               {
    2299                 :          53 :                 tree res_op0;
    2300                 :          53 :                 res_op0 = captures[1];
    2301                 :          53 :                 tree res_op1;
    2302                 :          53 :                 res_op1 =  build_int_cst (TREE_TYPE (captures[1]), cand);
    2303                 :          53 :                 tree _r;
    2304                 :          53 :                 _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
    2305                 :          53 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 373, __FILE__, __LINE__, true);
    2306                 :          53 :                 return _r;
    2307                 :             :               }
    2308                 :          93 : next_after_fail613:;
    2309                 :             :             }
    2310                 :             :         }
    2311                 :             :   }
    2312                 :          93 :   return NULL_TREE;
    2313                 :             : }
    2314                 :             : 
    2315                 :             : tree
    2316                 :       65282 : generic_simplify_240 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2317                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    2318                 :             :  const enum tree_code ARG_UNUSED (cmp))
    2319                 :             : {
    2320                 :       65282 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2321                 :       65282 :   if (single_use (captures[0])
    2322                 :             : )
    2323                 :             :     {
    2324                 :       65282 :       if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail623;
    2325                 :       65282 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail623;
    2326                 :       65282 :       {
    2327                 :       65282 :         tree res_op0;
    2328                 :       65282 :         res_op0 = captures[1];
    2329                 :       65282 :         tree res_op1;
    2330                 :       65282 :         res_op1 = captures[2];
    2331                 :       65282 :         tree _r;
    2332                 :       65282 :         _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
    2333                 :       65282 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 383, __FILE__, __LINE__, true);
    2334                 :       65282 :         return _r;
    2335                 :             :       }
    2336                 :             : next_after_fail623:;
    2337                 :             :     }
    2338                 :             :   return NULL_TREE;
    2339                 :             : }
    2340                 :             : 
    2341                 :             : tree
    2342                 :    44220547 : generic_simplify_245 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2343                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    2344                 :             :  const enum tree_code ARG_UNUSED (cmp))
    2345                 :             : {
    2346                 :    44220547 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2347                 :    44220547 :   {
    2348                 :    44220547 :  bool wascmp;
    2349                 :    44220547 :       if (types_match (TREE_TYPE (captures[0]), TREE_TYPE (captures[1]))
    2350                 :    44220547 :  && bitwise_inverted_equal_p (captures[0], captures[1], wascmp)
    2351                 :             : )
    2352                 :             :         {
    2353                 :           5 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail633;
    2354                 :           5 :           {
    2355                 :           5 :             tree _r;
    2356                 :           5 :             _r =  constant_boolean_node (cmp == NE_EXPR, type);
    2357                 :           5 :             if (TREE_SIDE_EFFECTS (captures[0]))
    2358                 :           0 :               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    2359                 :           5 :             if (TREE_SIDE_EFFECTS (captures[1]))
    2360                 :           0 :               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    2361                 :           5 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 392, __FILE__, __LINE__, true);
    2362                 :           5 :             return _r;
    2363                 :             :           }
    2364                 :           0 : next_after_fail633:;
    2365                 :             :         }
    2366                 :             :   }
    2367                 :    44220542 :   return NULL_TREE;
    2368                 :             : }
    2369                 :             : 
    2370                 :             : tree
    2371                 :          30 : generic_simplify_248 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2372                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    2373                 :             :  const enum tree_code ARG_UNUSED (cmp))
    2374                 :             : {
    2375                 :          30 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2376                 :          30 :   if (single_use (captures[1]) && single_use (captures[3])
    2377                 :             : )
    2378                 :             :     {
    2379                 :          30 :       {
    2380                 :          30 :  tree otype = TREE_TYPE (captures[0]);
    2381                 :          30 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail636;
    2382                 :          30 :           {
    2383                 :          30 :             tree res_op0;
    2384                 :          30 :             {
    2385                 :          30 :               tree _o1[1], _r1;
    2386                 :          30 :               _o1[0] = captures[4];
    2387                 :          30 :               if (TREE_TYPE (_o1[0]) != otype)
    2388                 :             :                 {
    2389                 :           0 :                   _r1 = fold_build1_loc (loc, NOP_EXPR, otype, _o1[0]);
    2390                 :             :                 }
    2391                 :             :               else
    2392                 :             :                 _r1 = _o1[0];
    2393                 :          30 :               res_op0 = _r1;
    2394                 :             :             }
    2395                 :          30 :             tree res_op1;
    2396                 :          30 :             {
    2397                 :          30 :               tree _o1[1], _r1;
    2398                 :          30 :               _o1[0] = captures[2];
    2399                 :          30 :               if (TREE_TYPE (_o1[0]) != otype)
    2400                 :             :                 {
    2401                 :           0 :                   _r1 = fold_build1_loc (loc, NOP_EXPR, otype, _o1[0]);
    2402                 :             :                 }
    2403                 :             :               else
    2404                 :             :                 _r1 = _o1[0];
    2405                 :          30 :               res_op1 = _r1;
    2406                 :             :             }
    2407                 :          30 :             tree _r;
    2408                 :          30 :             _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
    2409                 :          30 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 393, __FILE__, __LINE__, true);
    2410                 :          30 :             return _r;
    2411                 :             :           }
    2412                 :           0 : next_after_fail636:;
    2413                 :             :       }
    2414                 :             :     }
    2415                 :           0 :   return NULL_TREE;
    2416                 :             : }
    2417                 :             : 
    2418                 :             : tree
    2419                 :           6 : generic_simplify_253 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2420                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    2421                 :             :  const combined_fn ARG_UNUSED (sq),
    2422                 :             :  const enum tree_code ARG_UNUSED (cmp))
    2423                 :             : {
    2424                 :           6 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2425                 :           6 :   if (flag_unsafe_math_optimizations && ! flag_errno_math
    2426                 :             : )
    2427                 :             :     {
    2428                 :           0 :       if (! HONOR_NANS (captures[0])
    2429                 :             : )
    2430                 :             :         {
    2431                 :           0 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail673;
    2432                 :           0 :           {
    2433                 :           0 :             tree res_op0;
    2434                 :           0 :             res_op0 = captures[0];
    2435                 :           0 :             tree res_op1;
    2436                 :           0 :             res_op1 = captures[1];
    2437                 :           0 :             tree _r;
    2438                 :           0 :             _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
    2439                 :           0 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 431, __FILE__, __LINE__, true);
    2440                 :           0 :             return _r;
    2441                 :             :           }
    2442                 :           0 : next_after_fail673:;
    2443                 :             :         }
    2444                 :             :     }
    2445                 :             :   return NULL_TREE;
    2446                 :             : }
    2447                 :             : 
    2448                 :             : tree
    2449                 :          59 : generic_simplify_257 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2450                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    2451                 :             :  const enum tree_code ARG_UNUSED (cmp),
    2452                 :             :  const enum tree_code ARG_UNUSED (scmp))
    2453                 :             : {
    2454                 :          59 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2455                 :          96 :   if (FLOAT_TYPE_P (TREE_TYPE (captures[0]))
    2456                 :          96 :  || (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
    2457                 :          37 :  && (cmp == EQ_EXPR
    2458                 :          37 :  || cmp == NE_EXPR
    2459                 :          36 :  || TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))))
    2460                 :             : )
    2461                 :             :     {
    2462                 :          23 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail686;
    2463                 :          23 :       {
    2464                 :          23 :         tree res_op0;
    2465                 :          23 :         res_op0 = captures[0];
    2466                 :          23 :         tree res_op1;
    2467                 :          23 :         res_op1 = captures[1];
    2468                 :          23 :         tree _r;
    2469                 :          23 :         _r = fold_build2_loc (loc, scmp, type, res_op0, res_op1);
    2470                 :          23 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 444, __FILE__, __LINE__, true);
    2471                 :          23 :         return _r;
    2472                 :             :       }
    2473                 :           0 : next_after_fail686:;
    2474                 :             :     }
    2475                 :             :   return NULL_TREE;
    2476                 :             : }
    2477                 :             : 
    2478                 :             : tree
    2479                 :    14411063 : generic_simplify_260 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2480                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    2481                 :             :  const enum tree_code ARG_UNUSED (cmp))
    2482                 :             : {
    2483                 :    14411063 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2484                 :    28391741 :   if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
    2485                 :    10607214 :  && !(targetm.have_canonicalize_funcptr_for_compare ()
    2486                 :           0 :  && ((POINTER_TYPE_P (TREE_TYPE (captures[1]))
    2487                 :           0 :  && FUNC_OR_METHOD_TYPE_P (TREE_TYPE (TREE_TYPE (captures[1]))))
    2488                 :           0 :  || (POINTER_TYPE_P (TREE_TYPE (captures[3]))
    2489                 :           0 :  && FUNC_OR_METHOD_TYPE_P (TREE_TYPE (TREE_TYPE (captures[3]))))))
    2490                 :    14411063 :  && single_use (captures[0])
    2491                 :             : )
    2492                 :             :     {
    2493                 :    10607214 :       if (TYPE_PRECISION (TREE_TYPE (captures[1])) == TYPE_PRECISION (TREE_TYPE (captures[0]))
    2494                 :     4831490 :  && (TREE_CODE (captures[3]) == INTEGER_CST
    2495                 :     1843298 :  || captures[2] != captures[3])
    2496                 :     2988192 :  && (TYPE_UNSIGNED (TREE_TYPE (captures[1])) == TYPE_UNSIGNED (TREE_TYPE (captures[0]))
    2497                 :             :  || cmp == NE_EXPR
    2498                 :     1272512 :  || cmp == EQ_EXPR)
    2499                 :     2153855 :  && !POINTER_TYPE_P (TREE_TYPE (captures[1]))
    2500                 :    12731356 :  && (TREE_CODE (TREE_TYPE (captures[1])) != BOOLEAN_TYPE
    2501                 :        1593 :  || TREE_CODE (TREE_TYPE (captures[3])) == BOOLEAN_TYPE)
    2502                 :             : )
    2503                 :             :         {
    2504                 :     2124114 :           if (TREE_CODE (captures[2]) == INTEGER_CST
    2505                 :             : )
    2506                 :             :             {
    2507                 :     2124114 :               if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail695;
    2508                 :     2124114 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail695;
    2509                 :     2124114 :               {
    2510                 :     2124114 :                 tree res_op0;
    2511                 :     2124114 :                 res_op0 = captures[1];
    2512                 :     2124114 :                 tree res_op1;
    2513                 :     2124114 :                 res_op1 =  force_fit_type (TREE_TYPE (captures[1]),
    2514                 :     2124114 :  wide_int::from (wi::to_wide (captures[2]),
    2515                 :     2124114 :  MAX (TYPE_PRECISION (TREE_TYPE (captures[2])),
    2516                 :             :  TYPE_PRECISION (TREE_TYPE (captures[1]))),
    2517                 :     2124114 :  TYPE_SIGN (TREE_TYPE (captures[2]))),
    2518                 :     2124114 :  0, TREE_OVERFLOW (captures[2]));
    2519                 :     2124114 :                 tree _r;
    2520                 :     2124114 :                 _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
    2521                 :     2124114 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 446, __FILE__, __LINE__, true);
    2522                 :     2124114 :                 return _r;
    2523                 :             :               }
    2524                 :             : next_after_fail695:;
    2525                 :             :             }
    2526                 :             :           else
    2527                 :             :             {
    2528                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail696;
    2529                 :           0 :               {
    2530                 :           0 :                 tree res_op0;
    2531                 :           0 :                 res_op0 = captures[1];
    2532                 :           0 :                 tree res_op1;
    2533                 :           0 :                 {
    2534                 :           0 :                   tree _o1[1], _r1;
    2535                 :           0 :                   _o1[0] = captures[2];
    2536                 :           0 :                   if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
    2537                 :             :                     {
    2538                 :           0 :                       _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
    2539                 :             :                     }
    2540                 :             :                   else
    2541                 :             :                     _r1 = _o1[0];
    2542                 :           0 :                   res_op1 = _r1;
    2543                 :             :                 }
    2544                 :           0 :                 tree _r;
    2545                 :           0 :                 _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
    2546                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 447, __FILE__, __LINE__, true);
    2547                 :           0 :                 return _r;
    2548                 :             :               }
    2549                 :           0 : next_after_fail696:;
    2550                 :             :             }
    2551                 :             :         }
    2552                 :             :       else
    2553                 :             :         {
    2554                 :     8483100 :           if (TYPE_PRECISION (TREE_TYPE (captures[0])) > TYPE_PRECISION (TREE_TYPE (captures[1]))
    2555                 :             : )
    2556                 :             :             {
    2557                 :     4865208 :               if ((cmp == EQ_EXPR || cmp == NE_EXPR
    2558                 :     2419644 :  || TYPE_UNSIGNED (TREE_TYPE (captures[0])) == TYPE_UNSIGNED (TREE_TYPE (captures[1]))
    2559                 :      272540 :  || (!TYPE_UNSIGNED (TREE_TYPE (captures[0]))
    2560                 :      187168 :  && TYPE_UNSIGNED (TREE_TYPE (captures[1]))))
    2561                 :     7199480 :  && (types_match (TREE_TYPE (captures[3]), TREE_TYPE (captures[1]))
    2562                 :     4779818 :  || ((TYPE_PRECISION (TREE_TYPE (captures[1]))
    2563                 :     4779818 :  >= TYPE_PRECISION (TREE_TYPE (captures[3])))
    2564                 :           0 :  && (TYPE_UNSIGNED (TREE_TYPE (captures[1]))
    2565                 :           0 :  == TYPE_UNSIGNED (TREE_TYPE (captures[3]))))
    2566                 :     4779818 :  || (TREE_CODE (captures[2]) == INTEGER_CST
    2567                 :     3729649 :  && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
    2568                 :     3729649 :  && int_fits_type_p (captures[2], TREE_TYPE (captures[1]))))
    2569                 :             : )
    2570                 :             :                 {
    2571                 :     3695316 :                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail697;
    2572                 :     3695316 :                   {
    2573                 :     3695316 :                     tree res_op0;
    2574                 :     3695316 :                     res_op0 = captures[1];
    2575                 :     3695316 :                     tree res_op1;
    2576                 :     3695316 :                     {
    2577                 :     3695316 :                       tree _o1[1], _r1;
    2578                 :     3695316 :                       _o1[0] = captures[3];
    2579                 :     3695316 :                       if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
    2580                 :             :                         {
    2581                 :     3695298 :                           _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
    2582                 :             :                         }
    2583                 :             :                       else
    2584                 :             :                         _r1 = _o1[0];
    2585                 :     3695316 :                       res_op1 = _r1;
    2586                 :             :                     }
    2587                 :     3695316 :                     tree _r;
    2588                 :     3695316 :                     _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
    2589                 :     3695316 :                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 448, __FILE__, __LINE__, true);
    2590                 :     3695316 :                     return _r;
    2591                 :             :                   }
    2592                 :           0 : next_after_fail697:;
    2593                 :             :                 }
    2594                 :             :               else
    2595                 :             :                 {
    2596                 :     1169892 :                   if (TREE_CODE (captures[2]) == INTEGER_CST
    2597                 :       84199 :  && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
    2598                 :     1254091 :  && !int_fits_type_p (captures[2], TREE_TYPE (captures[1]))
    2599                 :             : )
    2600                 :             :                     {
    2601                 :       38060 :                       {
    2602                 :       38060 :  tree min = lower_bound_in_type (TREE_TYPE (captures[3]), TREE_TYPE (captures[1]));
    2603                 :       38060 :  tree max = upper_bound_in_type (TREE_TYPE (captures[3]), TREE_TYPE (captures[1]));
    2604                 :       38060 :  bool above = integer_nonzerop (const_binop (LT_EXPR, type, max, captures[2]));
    2605                 :       38060 :  bool below = integer_nonzerop (const_binop (LT_EXPR, type, captures[2], min));
    2606                 :       38060 :                           if (above || below
    2607                 :             : )
    2608                 :             :                             {
    2609                 :       31296 :                               if (cmp == EQ_EXPR || cmp == NE_EXPR
    2610                 :             : )
    2611                 :             :                                 {
    2612                 :       25005 :                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail698;
    2613                 :       25005 :                                   {
    2614                 :       25005 :                                     tree _r;
    2615                 :       25005 :                                     _r =  constant_boolean_node (cmp == EQ_EXPR ? false : true, type);
    2616                 :       25005 :                                     if (TREE_SIDE_EFFECTS (captures[1]))
    2617                 :          10 :                                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    2618                 :       25005 :                                     if (TREE_SIDE_EFFECTS (captures[2]))
    2619                 :           0 :                                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    2620                 :       25005 :                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 449, __FILE__, __LINE__, true);
    2621                 :       25005 :                                     return _r;
    2622                 :             :                                   }
    2623                 :           0 : next_after_fail698:;
    2624                 :             :                                 }
    2625                 :             :                               else
    2626                 :             :                                 {
    2627                 :        6291 :                                   if (cmp == LT_EXPR || cmp == LE_EXPR
    2628                 :             : )
    2629                 :             :                                     {
    2630                 :        5551 :                                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail699;
    2631                 :        5551 :                                       {
    2632                 :        5551 :                                         tree _r;
    2633                 :        5551 :                                         _r =  constant_boolean_node (above ? true : false, type);
    2634                 :        5551 :                                         if (TREE_SIDE_EFFECTS (captures[1]))
    2635                 :          10 :                                           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    2636                 :        5551 :                                         if (TREE_SIDE_EFFECTS (captures[2]))
    2637                 :           0 :                                           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    2638                 :        5551 :                                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 450, __FILE__, __LINE__, true);
    2639                 :        5551 :                                         return _r;
    2640                 :             :                                       }
    2641                 :           0 : next_after_fail699:;
    2642                 :             :                                     }
    2643                 :             :                                   else
    2644                 :             :                                     {
    2645                 :         740 :                                       if (cmp == GT_EXPR || cmp == GE_EXPR
    2646                 :             : )
    2647                 :             :                                         {
    2648                 :         740 :                                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail700;
    2649                 :         740 :                                           {
    2650                 :         740 :                                             tree _r;
    2651                 :        1013 :                                             _r =  constant_boolean_node (above ? false : true, type);
    2652                 :         740 :                                             if (TREE_SIDE_EFFECTS (captures[1]))
    2653                 :           4 :                                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    2654                 :         740 :                                             if (TREE_SIDE_EFFECTS (captures[2]))
    2655                 :           0 :                                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    2656                 :         740 :                                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 451, __FILE__, __LINE__, true);
    2657                 :         740 :                                             return _r;
    2658                 :             :                                           }
    2659                 :           0 : next_after_fail700:;
    2660                 :             :                                         }
    2661                 :             :                                     }
    2662                 :             :                                 }
    2663                 :             :                             }
    2664                 :             :                       }
    2665                 :             :                     }
    2666                 :             :                 }
    2667                 :             :             }
    2668                 :             :         }
    2669                 :             :     }
    2670                 :             :   else
    2671                 :             :     {
    2672                 :     7034688 :       if (FLOAT_TYPE_P (TREE_TYPE (captures[1]))
    2673                 :     1172958 :  && (DECIMAL_FLOAT_TYPE_P (TREE_TYPE (captures[0]))
    2674                 :      586479 :  == DECIMAL_FLOAT_TYPE_P (TREE_TYPE (captures[1])))
    2675                 :     4976569 :  && (DECIMAL_FLOAT_TYPE_P (TREE_TYPE (captures[0]))
    2676                 :      586360 :  == DECIMAL_FLOAT_TYPE_P (TREE_TYPE (captures[3])))
    2677                 :             : )
    2678                 :             :         {
    2679                 :      586360 :           {
    2680                 :      586360 :  tree type1 = TREE_TYPE (captures[3]);
    2681                 :      586360 :  if (TREE_CODE (captures[3]) == REAL_CST && !DECIMAL_FLOAT_TYPE_P (type1))
    2682                 :             :  {
    2683                 :      376050 :  REAL_VALUE_TYPE orig = TREE_REAL_CST (captures[3]);
    2684                 :      376050 :  if (TYPE_PRECISION (type1) > TYPE_PRECISION (float_type_node)
    2685                 :      376050 :  && exact_real_truncate (TYPE_MODE (float_type_node), &orig))
    2686                 :      183789 :  type1 = float_type_node;
    2687                 :      376050 :  if (TYPE_PRECISION (type1) > TYPE_PRECISION (double_type_node)
    2688                 :      376050 :  && exact_real_truncate (TYPE_MODE (double_type_node), &orig))
    2689                 :         292 :  type1 = double_type_node;
    2690                 :             :  }
    2691                 :      586360 :  tree newtype
    2692                 :      586360 :  = (element_precision (TREE_TYPE (captures[1])) > element_precision (type1)
    2693                 :      586360 :  ? TREE_TYPE (captures[1]) : type1);
    2694                 :      586360 :               if (element_precision (TREE_TYPE (captures[0])) > element_precision (newtype)
    2695                 :      586360 :  && (!VECTOR_TYPE_P (type) || is_truth_type_for (newtype, type))
    2696                 :             : )
    2697                 :             :                 {
    2698                 :       42467 :                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail701;
    2699                 :       42467 :                   {
    2700                 :       42467 :                     tree res_op0;
    2701                 :       42467 :                     {
    2702                 :       42467 :                       tree _o1[1], _r1;
    2703                 :       42467 :                       _o1[0] = captures[1];
    2704                 :       42467 :                       if (TREE_TYPE (_o1[0]) != newtype)
    2705                 :             :                         {
    2706                 :        9928 :                           _r1 = fold_build1_loc (loc, NOP_EXPR, newtype, _o1[0]);
    2707                 :             :                         }
    2708                 :             :                       else
    2709                 :             :                         _r1 = _o1[0];
    2710                 :       42467 :                       res_op0 = _r1;
    2711                 :             :                     }
    2712                 :       42467 :                     tree res_op1;
    2713                 :       42467 :                     {
    2714                 :       42467 :                       tree _o1[1], _r1;
    2715                 :       42467 :                       _o1[0] = captures[3];
    2716                 :       42467 :                       if (TREE_TYPE (_o1[0]) != newtype)
    2717                 :             :                         {
    2718                 :       42467 :                           _r1 = fold_build1_loc (loc, NOP_EXPR, newtype, _o1[0]);
    2719                 :             :                         }
    2720                 :             :                       else
    2721                 :             :                         _r1 = _o1[0];
    2722                 :       42467 :                       res_op1 = _r1;
    2723                 :             :                     }
    2724                 :       42467 :                     tree _r;
    2725                 :       42467 :                     _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
    2726                 :       42467 :                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 452, __FILE__, __LINE__, true);
    2727                 :       42467 :                     return _r;
    2728                 :             :                   }
    2729                 :           0 : next_after_fail701:;
    2730                 :             :                 }
    2731                 :             :           }
    2732                 :             :         }
    2733                 :             :     }
    2734                 :             :   return NULL_TREE;
    2735                 :             : }
    2736                 :             : 
    2737                 :             : tree
    2738                 :     1061529 : generic_simplify_283 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2739                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    2740                 :             :  const enum tree_code ARG_UNUSED (op),
    2741                 :             :  const enum tree_code ARG_UNUSED (rop),
    2742                 :             :  const enum tree_code ARG_UNUSED (cmp))
    2743                 :             : {
    2744                 :     1061529 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2745                 :     2123058 :   if (!TREE_OVERFLOW (captures[2]) && !TREE_OVERFLOW (captures[3])
    2746                 :     1061529 :  && !TYPE_OVERFLOW_SANITIZED (TREE_TYPE (captures[1]))
    2747                 :     1061217 :  && !TYPE_OVERFLOW_TRAPS (TREE_TYPE (captures[1]))
    2748                 :     2122604 :  && !TYPE_SATURATING (TREE_TYPE (captures[1]))
    2749                 :             : )
    2750                 :             :     {
    2751                 :     1061075 :       {
    2752                 :     1061075 :  tree res = int_const_binop (rop, captures[3], captures[2]);
    2753                 :     1061075 :           if (TREE_OVERFLOW (res)
    2754                 :     1061075 :  && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[1]))
    2755                 :             : )
    2756                 :             :             {
    2757                 :        8126 :               if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail745;
    2758                 :        8126 :               if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail745;
    2759                 :        8126 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail745;
    2760                 :        8126 :               {
    2761                 :        8126 :                 tree _r;
    2762                 :        8126 :                 _r =  constant_boolean_node (cmp == NE_EXPR, type);
    2763                 :        8126 :                 if (TREE_SIDE_EFFECTS (captures[1]))
    2764                 :           0 :                   _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    2765                 :        8126 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 486, __FILE__, __LINE__, true);
    2766                 :        8126 :                 return _r;
    2767                 :             :               }
    2768                 :             : next_after_fail745:;
    2769                 :             :             }
    2770                 :             :           else
    2771                 :             :             {
    2772                 :     1052949 :               if (single_use (captures[0])
    2773                 :             : )
    2774                 :             :                 {
    2775                 :     1052949 :                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail746;
    2776                 :     1052949 :                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail746;
    2777                 :     1052949 :                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail746;
    2778                 :     1052949 :                   {
    2779                 :     1052949 :                     tree res_op0;
    2780                 :     1052949 :                     res_op0 = captures[1];
    2781                 :     1052949 :                     tree res_op1;
    2782                 :     1052949 :                     res_op1 =  TREE_OVERFLOW (res)
    2783                 :     1052949 :  ? drop_tree_overflow (res) : res;
    2784                 :     1052949 :                     tree _r;
    2785                 :     1052949 :                     _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
    2786                 :     1052949 :                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 487, __FILE__, __LINE__, true);
    2787                 :     1052949 :                     return _r;
    2788                 :             :                   }
    2789                 :             : next_after_fail746:;
    2790                 :             :                 }
    2791                 :             :             }
    2792                 :             :       }
    2793                 :             :     }
    2794                 :             :   return NULL_TREE;
    2795                 :             : }
    2796                 :             : 
    2797                 :             : tree
    2798                 :         374 : generic_simplify_287 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2799                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    2800                 :             :  const enum tree_code ARG_UNUSED (op),
    2801                 :             :  const combined_fn ARG_UNUSED (ctz))
    2802                 :             : {
    2803                 :         374 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2804                 :         374 :   {
    2805                 :         374 :  tree type0 = TREE_TYPE (captures[1]);
    2806                 :         374 :  int prec = TYPE_PRECISION (type0);
    2807                 :         374 :  bool ok = true;
    2808                 :         374 :  if (sanitize_flags_p (SANITIZE_BUILTIN)
    2809                 :         374 :  && (!cfun
    2810                 :          64 :  || (cfun->curr_properties & PROP_ssa) == 0))
    2811                 :             :  ok = false;
    2812                 :         620 :       if (ok && prec <= MAX_FIXED_MODE_SIZE
    2813                 :             : )
    2814                 :             :         {
    2815                 :         310 :           if (tree_int_cst_sgn (captures[2]) < 0 || wi::to_widest (captures[2]) >= prec
    2816                 :             : )
    2817                 :             :             {
    2818                 :          36 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail760;
    2819                 :          36 :               {
    2820                 :          36 :                 tree _r;
    2821                 :          36 :                 _r =  constant_boolean_node (op == EQ_EXPR ? false : true, type);
    2822                 :          36 :                 if (TREE_SIDE_EFFECTS (captures[1]))
    2823                 :           0 :                   _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    2824                 :          36 :                 if (TREE_SIDE_EFFECTS (captures[2]))
    2825                 :           0 :                   _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    2826                 :          36 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 501, __FILE__, __LINE__, true);
    2827                 :         310 :                 return _r;
    2828                 :             :               }
    2829                 :           0 : next_after_fail760:;
    2830                 :             :             }
    2831                 :             :           else
    2832                 :             :             {
    2833                 :         274 :               if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail761;
    2834                 :         274 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail761;
    2835                 :         274 :               {
    2836                 :         274 :                 tree res_op0;
    2837                 :         274 :                 {
    2838                 :         274 :                   tree _o1[2], _r1;
    2839                 :         274 :                   _o1[0] = captures[1];
    2840                 :         274 :                   _o1[1] =  wide_int_to_tree (type0,
    2841                 :         274 :  wi::mask (tree_to_uhwi (captures[2]) + 1,
    2842                 :             :  false, prec));
    2843                 :         274 :                   _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    2844                 :         274 :                   res_op0 = _r1;
    2845                 :             :                 }
    2846                 :         274 :                 tree res_op1;
    2847                 :         274 :                 res_op1 =  wide_int_to_tree (type0,
    2848                 :         274 :  wi::shifted_mask (tree_to_uhwi (captures[2]), 1,
    2849                 :             :  false, prec));
    2850                 :         274 :                 tree _r;
    2851                 :         274 :                 _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
    2852                 :         274 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 502, __FILE__, __LINE__, true);
    2853                 :         274 :                 return _r;
    2854                 :             :               }
    2855                 :          64 : next_after_fail761:;
    2856                 :             :             }
    2857                 :             :         }
    2858                 :             :   }
    2859                 :          64 :   return NULL_TREE;
    2860                 :             : }
    2861                 :             : 
    2862                 :             : tree
    2863                 :       51027 : generic_simplify_294 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2864                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    2865                 :             :  const enum tree_code ARG_UNUSED (cmp))
    2866                 :             : {
    2867                 :       51027 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2868                 :       51027 :   if (cmp != NE_EXPR
    2869                 :       45400 :  || ! FLOAT_TYPE_P (TREE_TYPE (captures[0]))
    2870                 :       61008 :  || ! tree_expr_maybe_nan_p (captures[0])
    2871                 :             : )
    2872                 :             :     {
    2873                 :       46860 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail772;
    2874                 :       46860 :       {
    2875                 :       46860 :         tree _r;
    2876                 :       46860 :         _r =  constant_boolean_node (false, type);
    2877                 :       46860 :         if (TREE_SIDE_EFFECTS (captures[0]))
    2878                 :           0 :           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    2879                 :       46860 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 513, __FILE__, __LINE__, true);
    2880                 :       46860 :         return _r;
    2881                 :             :       }
    2882                 :           0 : next_after_fail772:;
    2883                 :             :     }
    2884                 :             :   return NULL_TREE;
    2885                 :             : }
    2886                 :             : 
    2887                 :             : tree
    2888                 :           0 : generic_simplify_298 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2889                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    2890                 :             :  const combined_fn ARG_UNUSED (COPYSIGN_ALL))
    2891                 :             : {
    2892                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2893                 :           0 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail776;
    2894                 :           0 :   {
    2895                 :           0 :     tree _r;
    2896                 :           0 :     _r = captures[0];
    2897                 :           0 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 517, __FILE__, __LINE__, true);
    2898                 :             :     return _r;
    2899                 :             :   }
    2900                 :           0 : next_after_fail776:;
    2901                 :           0 :   return NULL_TREE;
    2902                 :             : }
    2903                 :             : 
    2904                 :             : tree
    2905                 :        2749 : generic_simplify_304 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2906                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    2907                 :             :  const enum tree_code ARG_UNUSED (div))
    2908                 :             : {
    2909                 :        2749 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2910                 :        2749 :   if (!TYPE_UNSIGNED (type)
    2911                 :             : )
    2912                 :             :     {
    2913                 :        1683 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail784;
    2914                 :        1683 :       {
    2915                 :        1683 :         tree res_op0;
    2916                 :        1683 :         res_op0 = captures[0];
    2917                 :        1683 :         tree _r;
    2918                 :        1683 :         _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
    2919                 :        1683 :         if (TREE_SIDE_EFFECTS (captures[1]))
    2920                 :           0 :           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    2921                 :        1683 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 523, __FILE__, __LINE__, true);
    2922                 :        1683 :         return _r;
    2923                 :             :       }
    2924                 :           0 : next_after_fail784:;
    2925                 :             :     }
    2926                 :             :   return NULL_TREE;
    2927                 :             : }
    2928                 :             : 
    2929                 :             : tree
    2930                 :        2426 : generic_simplify_309 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2931                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    2932                 :             :  const enum tree_code ARG_UNUSED (div))
    2933                 :             : {
    2934                 :        2426 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2935                 :        2426 :   {
    2936                 :        2426 :  wi::overflow_type overflow;
    2937                 :        2426 :  wide_int mul = wi::mul (wi::to_wide (captures[2]), wi::to_wide (captures[3]),
    2938                 :        4852 :  TYPE_SIGN (type), &overflow);
    2939                 :        2426 :       if (div == EXACT_DIV_EXPR
    2940                 :        2426 :  || optimize_successive_divisions_p (captures[3], captures[0])
    2941                 :             : )
    2942                 :             :         {
    2943                 :           0 :           if (!overflow
    2944                 :             : )
    2945                 :             :             {
    2946                 :           0 :               if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail789;
    2947                 :           0 :               if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail789;
    2948                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail789;
    2949                 :           0 :               {
    2950                 :           0 :                 tree res_op0;
    2951                 :           0 :                 res_op0 = captures[1];
    2952                 :           0 :                 tree res_op1;
    2953                 :           0 :                 res_op1 =  wide_int_to_tree (type, mul);
    2954                 :           0 :                 tree _r;
    2955                 :           0 :                 _r = fold_build2_loc (loc, div, type, res_op0, res_op1);
    2956                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 528, __FILE__, __LINE__, true);
    2957                 :           0 :                 return _r;
    2958                 :             :               }
    2959                 :        2426 : next_after_fail789:;
    2960                 :             :             }
    2961                 :             :           else
    2962                 :             :             {
    2963                 :           0 :               if (TYPE_UNSIGNED (type)
    2964                 :           0 :  || mul != wi::min_value (TYPE_PRECISION (type), SIGNED)
    2965                 :             : )
    2966                 :             :                 {
    2967                 :           0 :                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail790;
    2968                 :           0 :                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail790;
    2969                 :           0 :                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail790;
    2970                 :           0 :                   {
    2971                 :           0 :                     tree _r;
    2972                 :           0 :                     _r =  build_zero_cst (type);
    2973                 :           0 :                     if (TREE_SIDE_EFFECTS (captures[1]))
    2974                 :           0 :                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    2975                 :           0 :                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 529, __FILE__, __LINE__, true);
    2976                 :           0 :                     return _r;
    2977                 :             :                   }
    2978                 :        2426 : next_after_fail790:;
    2979                 :             :                 }
    2980                 :             :             }
    2981                 :             :         }
    2982                 :           0 :   }
    2983                 :        2426 :   return NULL_TREE;
    2984                 :             : }
    2985                 :             : 
    2986                 :             : tree
    2987                 :        8748 : generic_simplify_320 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2988                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    2989                 :             :  const enum tree_code ARG_UNUSED (mod))
    2990                 :             : {
    2991                 :        8748 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2992                 :           0 :   if (ANY_INTEGRAL_TYPE_P (type)
    2993                 :        8748 :  && TYPE_OVERFLOW_UNDEFINED (type)
    2994                 :       17496 :  && wi::multiple_of_p (wi::to_wide (captures[1]), wi::to_wide (captures[2]),
    2995                 :         193 :  TYPE_SIGN (type))
    2996                 :             : )
    2997                 :             :     {
    2998                 :           0 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail801;
    2999                 :           0 :       {
    3000                 :           0 :         tree _r;
    3001                 :           0 :         _r =  build_zero_cst (type);
    3002                 :           0 :         if (TREE_SIDE_EFFECTS (captures[0]))
    3003                 :           0 :           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    3004                 :           0 :         if (TREE_SIDE_EFFECTS (captures[1]))
    3005                 :           0 :           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    3006                 :           0 :         if (TREE_SIDE_EFFECTS (captures[2]))
    3007                 :           0 :           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    3008                 :           0 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 540, __FILE__, __LINE__, true);
    3009                 :           0 :         return _r;
    3010                 :             :       }
    3011                 :           0 : next_after_fail801:;
    3012                 :             :     }
    3013                 :             :   return NULL_TREE;
    3014                 :             : }
    3015                 :             : 
    3016                 :             : tree
    3017                 :           6 : generic_simplify_330 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    3018                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    3019                 :             :  const combined_fn ARG_UNUSED (TAN),
    3020                 :             :  const combined_fn ARG_UNUSED (SIN),
    3021                 :             :  const combined_fn ARG_UNUSED (COS))
    3022                 :             : {
    3023                 :           6 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    3024                 :           6 :   if (flag_unsafe_math_optimizations && canonicalize_math_p ()
    3025                 :             : )
    3026                 :             :     {
    3027                 :           6 :       if (! HONOR_NANS (captures[1])
    3028                 :           6 :  && ! HONOR_INFINITIES (captures[1])
    3029                 :             : )
    3030                 :             :         {
    3031                 :           6 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail813;
    3032                 :           6 :           {
    3033                 :           6 :             tree res_op0;
    3034                 :           6 :             res_op0 =  build_one_cst (type);
    3035                 :           6 :             tree res_op1;
    3036                 :           6 :             {
    3037                 :           6 :               tree _o1[1], _r1;
    3038                 :           6 :               _o1[0] = captures[1];
    3039                 :           6 :               _r1 = maybe_build_call_expr_loc (loc, COS, TREE_TYPE (_o1[0]), 1, _o1[0]);
    3040                 :           6 :               if (!_r1)
    3041                 :           0 :                 goto next_after_fail813;
    3042                 :           6 :               res_op1 = _r1;
    3043                 :             :             }
    3044                 :           6 :             tree _r;
    3045                 :           6 :             _r = fold_build2_loc (loc, RDIV_EXPR, type, res_op0, res_op1);
    3046                 :           6 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 552, __FILE__, __LINE__, true);
    3047                 :           6 :             return _r;
    3048                 :             :           }
    3049                 :             : next_after_fail813:;
    3050                 :             :         }
    3051                 :             :     }
    3052                 :             :   return NULL_TREE;
    3053                 :             : }
    3054                 :             : 
    3055                 :             : tree
    3056                 :       82256 : generic_simplify_337 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    3057                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    3058                 :             :  const enum tree_code ARG_UNUSED (op))
    3059                 :             : {
    3060                 :       82256 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    3061                 :      164512 :   if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
    3062                 :       82256 :  && TYPE_UNSIGNED (TREE_TYPE (captures[1]))
    3063                 :      164512 :  && wi::only_sign_bit_p (wi::to_wide (captures[1]))
    3064                 :             : )
    3065                 :             :     {
    3066                 :           5 :       {
    3067                 :           5 :  tree stype = signed_type_for (TREE_TYPE (captures[1]));
    3068                 :           5 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail822;
    3069                 :           5 :           {
    3070                 :           5 :             tree res_op0;
    3071                 :           5 :             {
    3072                 :           5 :               tree _o1[1], _r1;
    3073                 :           5 :               _o1[0] = captures[0];
    3074                 :           5 :               if (TREE_TYPE (_o1[0]) != stype)
    3075                 :             :                 {
    3076                 :           5 :                   _r1 = fold_build1_loc (loc, NOP_EXPR, stype, _o1[0]);
    3077                 :             :                 }
    3078                 :             :               else
    3079                 :             :                 _r1 = _o1[0];
    3080                 :           5 :               res_op0 = _r1;
    3081                 :             :             }
    3082                 :           5 :             tree res_op1;
    3083                 :           5 :             {
    3084                 :           5 :               tree _o1[1], _r1;
    3085                 :           5 :               _o1[0] = captures[2];
    3086                 :           5 :               if (TREE_TYPE (_o1[0]) != stype)
    3087                 :             :                 {
    3088                 :           5 :                   _r1 = fold_build1_loc (loc, NOP_EXPR, stype, _o1[0]);
    3089                 :             :                 }
    3090                 :             :               else
    3091                 :             :                 _r1 = _o1[0];
    3092                 :           5 :               res_op1 = _r1;
    3093                 :             :             }
    3094                 :           5 :             tree _r;
    3095                 :           5 :             _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
    3096                 :           5 :             if (TREE_SIDE_EFFECTS (captures[1]))
    3097                 :           0 :               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    3098                 :           5 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 561, __FILE__, __LINE__, true);
    3099                 :           5 :             return _r;
    3100                 :             :           }
    3101                 :           0 : next_after_fail822:;
    3102                 :             :       }
    3103                 :             :     }
    3104                 :             :   return NULL_TREE;
    3105                 :             : }
    3106                 :             : 
    3107                 :             : tree
    3108                 :     1030518 : generic_simplify_348 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    3109                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    3110                 :             :  const enum tree_code ARG_UNUSED (cmp))
    3111                 :             : {
    3112                 :     1030518 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    3113                 :     2061036 :   if ((INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
    3114                 :         380 :  || POINTER_TYPE_P (TREE_TYPE (captures[2]))
    3115                 :           5 :  || VECTOR_INTEGER_TYPE_P (TREE_TYPE (captures[2])))
    3116                 :     2061036 :  && tree_nop_conversion_p (TREE_TYPE (captures[0]), TREE_TYPE (captures[1]))
    3117                 :             : )
    3118                 :             :     {
    3119                 :      856417 :       {
    3120                 :      856417 :  tree cst = uniform_integer_cst_p (captures[2]);
    3121                 :      856417 :  tree arg1_type = TREE_TYPE (cst);
    3122                 :      856417 :  unsigned int prec = TYPE_PRECISION (arg1_type);
    3123                 :      856417 :  wide_int max = wi::max_value (arg1_type);
    3124                 :      856417 :  wide_int signed_max = wi::max_value (prec, SIGNED);
    3125                 :      856417 :  wide_int min = wi::min_value (arg1_type);
    3126                 :      856417 :           if (wi::to_wide (cst) == max
    3127                 :             : )
    3128                 :             :             {
    3129                 :        3612 :               if (cmp == GT_EXPR
    3130                 :             : )
    3131                 :             :                 {
    3132                 :        3367 :                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail836;
    3133                 :        3367 :                   {
    3134                 :        3367 :                     tree _r;
    3135                 :        3367 :                     _r =  constant_boolean_node (false, type);
    3136                 :        3367 :                     if (TREE_SIDE_EFFECTS (captures[1]))
    3137                 :           0 :                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    3138                 :        3367 :                     if (TREE_SIDE_EFFECTS (captures[2]))
    3139                 :           0 :                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    3140                 :        3367 :                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 575, __FILE__, __LINE__, true);
    3141                 :        3367 :                     return _r;
    3142                 :             :                   }
    3143                 :           0 : next_after_fail836:;
    3144                 :             :                 }
    3145                 :             :               else
    3146                 :             :                 {
    3147                 :         245 :                   if (cmp == GE_EXPR
    3148                 :             : )
    3149                 :             :                     {
    3150                 :           0 :                       if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail837;
    3151                 :           0 :                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail837;
    3152                 :           0 :                       {
    3153                 :           0 :                         tree res_op0;
    3154                 :           0 :                         res_op0 = captures[0];
    3155                 :           0 :                         tree res_op1;
    3156                 :           0 :                         res_op1 = captures[2];
    3157                 :           0 :                         tree _r;
    3158                 :           0 :                         _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
    3159                 :           0 :                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 576, __FILE__, __LINE__, true);
    3160                 :           0 :                         return _r;
    3161                 :             :                       }
    3162                 :      793550 : next_after_fail837:;
    3163                 :             :                     }
    3164                 :             :                   else
    3165                 :             :                     {
    3166                 :         245 :                       if (cmp == LE_EXPR
    3167                 :             : )
    3168                 :             :                         {
    3169                 :         245 :                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail838;
    3170                 :         245 :                           {
    3171                 :         245 :                             tree _r;
    3172                 :         245 :                             _r =  constant_boolean_node (true, type);
    3173                 :         245 :                             if (TREE_SIDE_EFFECTS (captures[1]))
    3174                 :           0 :                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    3175                 :         245 :                             if (TREE_SIDE_EFFECTS (captures[2]))
    3176                 :           0 :                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    3177                 :         245 :                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 577, __FILE__, __LINE__, true);
    3178                 :         245 :                             return _r;
    3179                 :             :                           }
    3180                 :           0 : next_after_fail838:;
    3181                 :             :                         }
    3182                 :             :                       else
    3183                 :             :                         {
    3184                 :           0 :                           if (cmp == LT_EXPR
    3185                 :             : )
    3186                 :             :                             {
    3187                 :           0 :                               if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail839;
    3188                 :           0 :                               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail839;
    3189                 :           0 :                               {
    3190                 :           0 :                                 tree res_op0;
    3191                 :           0 :                                 res_op0 = captures[0];
    3192                 :           0 :                                 tree res_op1;
    3193                 :           0 :                                 res_op1 = captures[2];
    3194                 :           0 :                                 tree _r;
    3195                 :           0 :                                 _r = fold_build2_loc (loc, NE_EXPR, type, res_op0, res_op1);
    3196                 :           0 :                                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 578, __FILE__, __LINE__, true);
    3197                 :           0 :                                 return _r;
    3198                 :             :                               }
    3199                 :      793550 : next_after_fail839:;
    3200                 :             :                             }
    3201                 :             :                         }
    3202                 :             :                     }
    3203                 :             :                 }
    3204                 :             :             }
    3205                 :             :           else
    3206                 :             :             {
    3207                 :      852805 :               if (wi::to_wide (cst) == min
    3208                 :             : )
    3209                 :             :                 {
    3210                 :       53144 :                   if (cmp == LT_EXPR
    3211                 :             : )
    3212                 :             :                     {
    3213                 :        2324 :                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail840;
    3214                 :        2324 :                       {
    3215                 :        2324 :                         tree _r;
    3216                 :        2324 :                         _r =  constant_boolean_node (false, type);
    3217                 :        2324 :                         if (TREE_SIDE_EFFECTS (captures[1]))
    3218                 :           0 :                           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    3219                 :        2324 :                         if (TREE_SIDE_EFFECTS (captures[2]))
    3220                 :           0 :                           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    3221                 :        2324 :                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 579, __FILE__, __LINE__, true);
    3222                 :        2324 :                         return _r;
    3223                 :             :                       }
    3224                 :           0 : next_after_fail840:;
    3225                 :             :                     }
    3226                 :             :                   else
    3227                 :             :                     {
    3228                 :       50820 :                       if (cmp == LE_EXPR
    3229                 :             : )
    3230                 :             :                         {
    3231                 :       12965 :                           if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail841;
    3232                 :       11889 :                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail841;
    3233                 :       11889 :                           {
    3234                 :       11889 :                             tree res_op0;
    3235                 :       11889 :                             res_op0 = captures[0];
    3236                 :       11889 :                             tree res_op1;
    3237                 :       11889 :                             res_op1 = captures[2];
    3238                 :       11889 :                             tree _r;
    3239                 :       11889 :                             _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
    3240                 :       11889 :                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 580, __FILE__, __LINE__, true);
    3241                 :       11889 :                             return _r;
    3242                 :             :                           }
    3243                 :      793550 : next_after_fail841:;
    3244                 :             :                         }
    3245                 :             :                       else
    3246                 :             :                         {
    3247                 :       37855 :                           if (cmp == GE_EXPR
    3248                 :             : )
    3249                 :             :                             {
    3250                 :        9222 :                               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail842;
    3251                 :        9222 :                               {
    3252                 :        9222 :                                 tree _r;
    3253                 :        9222 :                                 _r =  constant_boolean_node (true, type);
    3254                 :        9222 :                                 if (TREE_SIDE_EFFECTS (captures[1]))
    3255                 :          15 :                                   _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    3256                 :        9222 :                                 if (TREE_SIDE_EFFECTS (captures[2]))
    3257                 :           0 :                                   _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    3258                 :        9222 :                                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 581, __FILE__, __LINE__, true);
    3259                 :        9222 :                                 return _r;
    3260                 :             :                               }
    3261                 :           0 : next_after_fail842:;
    3262                 :             :                             }
    3263                 :             :                           else
    3264                 :             :                             {
    3265                 :       28633 :                               if (cmp == GT_EXPR
    3266                 :             : )
    3267                 :             :                                 {
    3268                 :       28633 :                                   if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail843;
    3269                 :       23253 :                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail843;
    3270                 :       23253 :                                   {
    3271                 :       23253 :                                     tree res_op0;
    3272                 :       23253 :                                     res_op0 = captures[0];
    3273                 :       23253 :                                     tree res_op1;
    3274                 :       23253 :                                     res_op1 = captures[2];
    3275                 :       23253 :                                     tree _r;
    3276                 :       23253 :                                     _r = fold_build2_loc (loc, NE_EXPR, type, res_op0, res_op1);
    3277                 :       23253 :                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 582, __FILE__, __LINE__, true);
    3278                 :       23253 :                                     return _r;
    3279                 :             :                                   }
    3280                 :      793550 : next_after_fail843:;
    3281                 :             :                                 }
    3282                 :             :                             }
    3283                 :             :                         }
    3284                 :             :                     }
    3285                 :             :                 }
    3286                 :             :               else
    3287                 :             :                 {
    3288                 :      799661 :                   if (wi::to_wide (cst) == max - 1
    3289                 :             : )
    3290                 :             :                     {
    3291                 :        7624 :                       if (cmp == GT_EXPR
    3292                 :             : )
    3293                 :             :                         {
    3294                 :        1386 :                           if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail844;
    3295                 :        1386 :                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail844;
    3296                 :        1386 :                           {
    3297                 :        1386 :                             tree res_op0;
    3298                 :        1386 :                             res_op0 = captures[0];
    3299                 :        1386 :                             tree res_op1;
    3300                 :        1386 :                             res_op1 =  build_uniform_cst (TREE_TYPE (captures[2]),
    3301                 :        1386 :  wide_int_to_tree (TREE_TYPE (cst),
    3302                 :        1386 :  wi::to_wide (cst)
    3303                 :        2772 :  + 1));
    3304                 :        1386 :                             tree _r;
    3305                 :        1386 :                             _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
    3306                 :        1386 :                             if (TREE_SIDE_EFFECTS (captures[2]))
    3307                 :           0 :                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    3308                 :        1386 :                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 583, __FILE__, __LINE__, true);
    3309                 :        1386 :                             return _r;
    3310                 :             :                           }
    3311                 :      793550 : next_after_fail844:;
    3312                 :             :                         }
    3313                 :             :                       else
    3314                 :             :                         {
    3315                 :        6238 :                           if (cmp == LE_EXPR
    3316                 :             : )
    3317                 :             :                             {
    3318                 :        6238 :                               if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail845;
    3319                 :        6238 :                               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail845;
    3320                 :        6238 :                               {
    3321                 :        6238 :                                 tree res_op0;
    3322                 :        6238 :                                 res_op0 = captures[0];
    3323                 :        6238 :                                 tree res_op1;
    3324                 :        6238 :                                 res_op1 =  build_uniform_cst (TREE_TYPE (captures[2]),
    3325                 :        6238 :  wide_int_to_tree (TREE_TYPE (cst),
    3326                 :        6238 :  wi::to_wide (cst)
    3327                 :       12476 :  + 1));
    3328                 :        6238 :                                 tree _r;
    3329                 :        6238 :                                 _r = fold_build2_loc (loc, NE_EXPR, type, res_op0, res_op1);
    3330                 :        6238 :                                 if (TREE_SIDE_EFFECTS (captures[2]))
    3331                 :           0 :                                   _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    3332                 :        6238 :                                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 584, __FILE__, __LINE__, true);
    3333                 :        6238 :                                 return _r;
    3334                 :             :                               }
    3335                 :      793550 : next_after_fail845:;
    3336                 :             :                             }
    3337                 :             :                         }
    3338                 :             :                     }
    3339                 :             :                   else
    3340                 :             :                     {
    3341                 :      792037 :                       if (wi::to_wide (cst) == min + 1
    3342                 :             : )
    3343                 :             :                         {
    3344                 :       45654 :                           if (cmp == GE_EXPR
    3345                 :             : )
    3346                 :             :                             {
    3347                 :        2338 :                               if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail846;
    3348                 :        2338 :                               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail846;
    3349                 :        2338 :                               {
    3350                 :        2338 :                                 tree res_op0;
    3351                 :        2338 :                                 res_op0 = captures[0];
    3352                 :        2338 :                                 tree res_op1;
    3353                 :        2338 :                                 res_op1 =  build_uniform_cst (TREE_TYPE (captures[2]),
    3354                 :        2338 :  wide_int_to_tree (TREE_TYPE (cst),
    3355                 :        2338 :  wi::to_wide (cst)
    3356                 :        4676 :  - 1));
    3357                 :        2338 :                                 tree _r;
    3358                 :        2338 :                                 _r = fold_build2_loc (loc, NE_EXPR, type, res_op0, res_op1);
    3359                 :        2338 :                                 if (TREE_SIDE_EFFECTS (captures[2]))
    3360                 :           0 :                                   _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    3361                 :        2338 :                                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 585, __FILE__, __LINE__, true);
    3362                 :        2338 :                                 return _r;
    3363                 :             :                               }
    3364                 :      793550 : next_after_fail846:;
    3365                 :             :                             }
    3366                 :             :                           else
    3367                 :             :                             {
    3368                 :       43316 :                               if (cmp == LT_EXPR
    3369                 :             : )
    3370                 :             :                                 {
    3371                 :         275 :                                   if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail847;
    3372                 :         275 :                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail847;
    3373                 :         275 :                                   {
    3374                 :         275 :                                     tree res_op0;
    3375                 :         275 :                                     res_op0 = captures[0];
    3376                 :         275 :                                     tree res_op1;
    3377                 :         275 :                                     res_op1 =  build_uniform_cst (TREE_TYPE (captures[2]),
    3378                 :         275 :  wide_int_to_tree (TREE_TYPE (cst),
    3379                 :         275 :  wi::to_wide (cst)
    3380                 :         550 :  - 1));
    3381                 :         275 :                                     tree _r;
    3382                 :         275 :                                     _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
    3383                 :         275 :                                     if (TREE_SIDE_EFFECTS (captures[2]))
    3384                 :           0 :                                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    3385                 :         275 :                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 586, __FILE__, __LINE__, true);
    3386                 :         275 :                                     return _r;
    3387                 :             :                                   }
    3388                 :      793550 : next_after_fail847:;
    3389                 :             :                                 }
    3390                 :             :                             }
    3391                 :             :                         }
    3392                 :             :                       else
    3393                 :             :                         {
    3394                 :      746383 :                           if (wi::to_wide (cst) == signed_max
    3395                 :        2330 :  && TYPE_UNSIGNED (arg1_type)
    3396                 :        2330 :  && TYPE_MODE (arg1_type) != BLKmode
    3397                 :      746383 :  && prec == GET_MODE_PRECISION (SCALAR_INT_TYPE_MODE (arg1_type))
    3398                 :      748713 :  && INTEGRAL_TYPE_P (arg1_type)
    3399                 :             : )
    3400                 :             :                             {
    3401                 :        2330 :                               if (cmp == LE_EXPR || cmp == GT_EXPR
    3402                 :             : )
    3403                 :             :                                 {
    3404                 :        2330 :                                   {
    3405                 :        2330 :  tree st = signed_type_for (TREE_TYPE (captures[2]));
    3406                 :        2330 :                                       if (cst == captures[2] && cmp == LE_EXPR
    3407                 :             : )
    3408                 :             :                                         {
    3409                 :        2283 :                                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail848;
    3410                 :        2283 :                                           {
    3411                 :        2283 :                                             tree res_op0;
    3412                 :        2283 :                                             {
    3413                 :        2283 :                                               tree _o1[1], _r1;
    3414                 :        2283 :                                               _o1[0] = captures[1];
    3415                 :        2283 :                                               if (TREE_TYPE (_o1[0]) != st)
    3416                 :             :                                                 {
    3417                 :        2279 :                                                   _r1 = fold_build1_loc (loc, NOP_EXPR, st, _o1[0]);
    3418                 :             :                                                 }
    3419                 :             :                                               else
    3420                 :             :                                                 _r1 = _o1[0];
    3421                 :        2283 :                                               res_op0 = _r1;
    3422                 :             :                                             }
    3423                 :        2283 :                                             tree res_op1;
    3424                 :        2283 :                                             res_op1 =  build_zero_cst (st);
    3425                 :        2283 :                                             tree _r;
    3426                 :        2283 :                                             _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
    3427                 :        2283 :                                             if (TREE_SIDE_EFFECTS (captures[2]))
    3428                 :           0 :                                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    3429                 :        2283 :                                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 587, __FILE__, __LINE__, true);
    3430                 :        2283 :                                             return _r;
    3431                 :             :                                           }
    3432                 :           0 : next_after_fail848:;
    3433                 :           0 :                                         }
    3434                 :             :                                       else
    3435                 :             :                                         {
    3436                 :          47 :                                           if (cst == captures[2] && cmp == GT_EXPR
    3437                 :             : )
    3438                 :             :                                             {
    3439                 :          47 :                                               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail849;
    3440                 :          47 :                                               {
    3441                 :          47 :                                                 tree res_op0;
    3442                 :          47 :                                                 {
    3443                 :          47 :                                                   tree _o1[1], _r1;
    3444                 :          47 :                                                   _o1[0] = captures[1];
    3445                 :          47 :                                                   if (TREE_TYPE (_o1[0]) != st)
    3446                 :             :                                                     {
    3447                 :          47 :                                                       _r1 = fold_build1_loc (loc, NOP_EXPR, st, _o1[0]);
    3448                 :             :                                                     }
    3449                 :             :                                                   else
    3450                 :             :                                                     _r1 = _o1[0];
    3451                 :          47 :                                                   res_op0 = _r1;
    3452                 :             :                                                 }
    3453                 :          47 :                                                 tree res_op1;
    3454                 :          47 :                                                 res_op1 =  build_zero_cst (st);
    3455                 :          47 :                                                 tree _r;
    3456                 :          47 :                                                 _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
    3457                 :          47 :                                                 if (TREE_SIDE_EFFECTS (captures[2]))
    3458                 :           0 :                                                   _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    3459                 :          47 :                                                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 588, __FILE__, __LINE__, true);
    3460                 :          47 :                                                 return _r;
    3461                 :             :                                               }
    3462                 :           0 : next_after_fail849:;
    3463                 :           0 :                                             }
    3464                 :             :                                           else
    3465                 :             :                                             {
    3466                 :           0 :                                               if (cmp == LE_EXPR
    3467                 :             : )
    3468                 :             :                                                 {
    3469                 :           0 :                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail850;
    3470                 :           0 :                                                   {
    3471                 :           0 :                                                     tree res_op0;
    3472                 :           0 :                                                     {
    3473                 :           0 :                                                       tree _o1[1], _r1;
    3474                 :           0 :                                                       _o1[0] = captures[1];
    3475                 :           0 :                                                       if (TREE_TYPE (_o1[0]) != st)
    3476                 :             :                                                         {
    3477                 :           0 :                                                           _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, st, _o1[0]);
    3478                 :             :                                                         }
    3479                 :             :                                                       else
    3480                 :             :                                                         _r1 = _o1[0];
    3481                 :           0 :                                                       res_op0 = _r1;
    3482                 :             :                                                     }
    3483                 :           0 :                                                     tree res_op1;
    3484                 :           0 :                                                     res_op1 =  build_zero_cst (st);
    3485                 :           0 :                                                     tree _r;
    3486                 :           0 :                                                     _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
    3487                 :           0 :                                                     if (TREE_SIDE_EFFECTS (captures[2]))
    3488                 :           0 :                                                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    3489                 :           0 :                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 589, __FILE__, __LINE__, true);
    3490                 :           0 :                                                     return _r;
    3491                 :             :                                                   }
    3492                 :           0 : next_after_fail850:;
    3493                 :             :                                                 }
    3494                 :             :                                               else
    3495                 :             :                                                 {
    3496                 :           0 :                                                   if (cmp == GT_EXPR
    3497                 :             : )
    3498                 :             :                                                     {
    3499                 :           0 :                                                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail851;
    3500                 :           0 :                                                       {
    3501                 :           0 :                                                         tree res_op0;
    3502                 :           0 :                                                         {
    3503                 :           0 :                                                           tree _o1[1], _r1;
    3504                 :           0 :                                                           _o1[0] = captures[1];
    3505                 :           0 :                                                           if (TREE_TYPE (_o1[0]) != st)
    3506                 :             :                                                             {
    3507                 :           0 :                                                               _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, st, _o1[0]);
    3508                 :             :                                                             }
    3509                 :             :                                                           else
    3510                 :             :                                                             _r1 = _o1[0];
    3511                 :           0 :                                                           res_op0 = _r1;
    3512                 :             :                                                         }
    3513                 :           0 :                                                         tree res_op1;
    3514                 :           0 :                                                         res_op1 =  build_zero_cst (st);
    3515                 :           0 :                                                         tree _r;
    3516                 :           0 :                                                         _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
    3517                 :           0 :                                                         if (TREE_SIDE_EFFECTS (captures[2]))
    3518                 :           0 :                                                           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    3519                 :           0 :                                                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 590, __FILE__, __LINE__, true);
    3520                 :           0 :                                                         return _r;
    3521                 :             :                                                       }
    3522                 :           0 : next_after_fail851:;
    3523                 :             :                                                     }
    3524                 :             :                                                 }
    3525                 :             :                                             }
    3526                 :             :                                         }
    3527                 :             :                                   }
    3528                 :             :                                 }
    3529                 :             :                             }
    3530                 :             :                         }
    3531                 :             :                     }
    3532                 :             :                 }
    3533                 :             :             }
    3534                 :      856417 :       }
    3535                 :             :     }
    3536                 :             :   return NULL_TREE;
    3537                 :             : }
    3538                 :             : 
    3539                 :             : tree
    3540                 :           0 : generic_simplify_396 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    3541                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    3542                 :             :  const combined_fn ARG_UNUSED (pow))
    3543                 :             : {
    3544                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    3545                 :           0 :   if (flag_unsafe_math_optimizations
    3546                 :             : )
    3547                 :             :     {
    3548                 :           0 :       if (! HONOR_INFINITIES (type)
    3549                 :           0 :  && ! flag_trapping_math
    3550                 :           0 :  && ! flag_errno_math
    3551                 :             : )
    3552                 :             :         {
    3553                 :           0 :           if (! HONOR_NANS (type) && ! HONOR_SIGNED_ZEROS (type)
    3554                 :             : )
    3555                 :             :             {
    3556                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail945;
    3557                 :           0 :               {
    3558                 :           0 :                 tree _r;
    3559                 :           0 :                 _r = captures[0];
    3560                 :           0 :                 if (TREE_SIDE_EFFECTS (captures[1]))
    3561                 :           0 :                   _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    3562                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 649, __FILE__, __LINE__, true);
    3563                 :           0 :                 return _r;
    3564                 :             :               }
    3565                 :           0 : next_after_fail945:;
    3566                 :             :             }
    3567                 :             :         }
    3568                 :             :     }
    3569                 :             :   return NULL_TREE;
    3570                 :             : }
    3571                 :             : 
    3572                 :             : tree
    3573                 :     4802187 : generic_simplify_403 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    3574                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
    3575                 :             : {
    3576                 :     4802187 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    3577                 :     4802187 :   {
    3578                 :     4802187 :  bool wascmp;
    3579                 :     4802187 :       if (types_match (TREE_TYPE (captures[0]), TREE_TYPE (captures[1]))
    3580                 :     4802187 :  && bitwise_inverted_equal_p (captures[0], captures[1], wascmp)
    3581                 :             : )
    3582                 :             :         {
    3583                 :         113 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail952;
    3584                 :         113 :           {
    3585                 :         113 :             tree _r;
    3586                 :         113 :             _r =  wascmp ? constant_boolean_node (false, type) : build_zero_cst (type);
    3587                 :         113 :             if (TREE_SIDE_EFFECTS (captures[0]))
    3588                 :           0 :               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    3589                 :         113 :             if (TREE_SIDE_EFFECTS (captures[1]))
    3590                 :           0 :               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    3591                 :         113 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 656, __FILE__, __LINE__, true);
    3592                 :         113 :             return _r;
    3593                 :             :           }
    3594                 :           0 : next_after_fail952:;
    3595                 :             :         }
    3596                 :             :   }
    3597                 :     4802074 :   return NULL_TREE;
    3598                 :             : }
    3599                 :             : 
    3600                 :             : tree
    3601                 :       42455 : generic_simplify_408 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    3602                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
    3603                 :             : {
    3604                 :       42455 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    3605                 :       42455 :   {
    3606                 :       42455 :  bool wascmp;
    3607                 :       42455 :       if (bitwise_inverted_equal_p (captures[0], captures[1], wascmp)
    3608                 :       42455 :  && (!wascmp || element_precision (type) == 1)
    3609                 :             : )
    3610                 :             :         {
    3611                 :           1 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail957;
    3612                 :           1 :           {
    3613                 :           1 :             tree res_op0;
    3614                 :           1 :             res_op0 = captures[0];
    3615                 :           1 :             tree res_op1;
    3616                 :           1 :             res_op1 = captures[2];
    3617                 :           1 :             tree _r;
    3618                 :           1 :             _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
    3619                 :           1 :             if (TREE_SIDE_EFFECTS (captures[1]))
    3620                 :           0 :               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    3621                 :           1 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 661, __FILE__, __LINE__, true);
    3622                 :           1 :             return _r;
    3623                 :             :           }
    3624                 :           0 : next_after_fail957:;
    3625                 :             :         }
    3626                 :             :   }
    3627                 :       42454 :   return NULL_TREE;
    3628                 :             : }
    3629                 :             : 
    3630                 :             : tree
    3631                 :          15 : generic_simplify_414 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    3632                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    3633                 :             :  const enum tree_code ARG_UNUSED (bitop))
    3634                 :             : {
    3635                 :          15 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    3636                 :          15 :   {
    3637                 :          15 :  tree pmop[2];
    3638                 :          15 :  tree utype = fold_bit_and_mask (TREE_TYPE (captures[1]), captures[4], NEGATE_EXPR, captures[1],
    3639                 :             :  bitop, captures[2], captures[3], NULL_TREE, ERROR_MARK,
    3640                 :             :  NULL_TREE, NULL_TREE, pmop);
    3641                 :          15 :       if (utype
    3642                 :             : )
    3643                 :             :         {
    3644                 :           7 :           if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail963;
    3645                 :           7 :           if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail963;
    3646                 :           7 :           if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail963;
    3647                 :           7 :           if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail963;
    3648                 :           7 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail963;
    3649                 :           7 :           {
    3650                 :           7 :             tree res_op0;
    3651                 :           7 :             {
    3652                 :           7 :               tree _o1[2], _r1;
    3653                 :           7 :               {
    3654                 :           7 :                 tree _o2[1], _r2;
    3655                 :           7 :                 {
    3656                 :           7 :                   tree _o3[1], _r3;
    3657                 :           7 :                   _o3[0] =  pmop[0];
    3658                 :           7 :                   if (TREE_TYPE (_o3[0]) != utype)
    3659                 :             :                     {
    3660                 :           4 :                       _r3 = fold_build1_loc (loc, NOP_EXPR, utype, _o3[0]);
    3661                 :             :                     }
    3662                 :             :                   else
    3663                 :             :                     _r3 = _o3[0];
    3664                 :           7 :                   _o2[0] = _r3;
    3665                 :             :                 }
    3666                 :           7 :                 _r2 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
    3667                 :           7 :                 _o1[0] = _r2;
    3668                 :             :               }
    3669                 :           7 :               {
    3670                 :           7 :                 tree _o2[1], _r2;
    3671                 :           7 :                 _o2[0] = captures[4];
    3672                 :           7 :                 if (TREE_TYPE (_o2[0]) != utype)
    3673                 :             :                   {
    3674                 :           4 :                     _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
    3675                 :             :                   }
    3676                 :             :                 else
    3677                 :             :                   _r2 = _o2[0];
    3678                 :           7 :                 _o1[1] = _r2;
    3679                 :             :               }
    3680                 :           7 :               _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    3681                 :           7 :               res_op0 = _r1;
    3682                 :             :             }
    3683                 :           7 :             tree _r;
    3684                 :           7 :             _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
    3685                 :           7 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 666, __FILE__, __LINE__, true);
    3686                 :           7 :             return _r;
    3687                 :             :           }
    3688                 :           8 : next_after_fail963:;
    3689                 :             :         }
    3690                 :             :   }
    3691                 :           8 :   return NULL_TREE;
    3692                 :             : }
    3693                 :             : 
    3694                 :             : tree
    3695                 :           8 : generic_simplify_429 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    3696                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    3697                 :             :  const enum tree_code ARG_UNUSED (eqne))
    3698                 :             : {
    3699                 :           8 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    3700                 :           8 :   if (eqne == EQ_EXPR
    3701                 :             : )
    3702                 :             :     {
    3703                 :           4 :       if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail984;
    3704                 :           4 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail984;
    3705                 :           4 :       {
    3706                 :           4 :         tree _r;
    3707                 :           4 :         _r =  constant_boolean_node (false, type);
    3708                 :           4 :         if (TREE_SIDE_EFFECTS (captures[2]))
    3709                 :           0 :           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    3710                 :           4 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 683, __FILE__, __LINE__, true);
    3711                 :           4 :         return _r;
    3712                 :             :       }
    3713                 :             : next_after_fail984:;
    3714                 :             :     }
    3715                 :             :   else
    3716                 :             :     {
    3717                 :           4 :       if (eqne == NE_EXPR
    3718                 :             : )
    3719                 :             :         {
    3720                 :           4 :           if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail985;
    3721                 :           4 :           if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail985;
    3722                 :           4 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail985;
    3723                 :           4 :           {
    3724                 :           4 :             tree _r;
    3725                 :           4 :             _r = captures[0];
    3726                 :           4 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 684, __FILE__, __LINE__, true);
    3727                 :           4 :             return _r;
    3728                 :             :           }
    3729                 :             : next_after_fail985:;
    3730                 :             :         }
    3731                 :             :     }
    3732                 :             :   return NULL_TREE;
    3733                 :             : }
    3734                 :             : 
    3735                 :             : tree
    3736                 :           0 : generic_simplify_434 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    3737                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
    3738                 :             : {
    3739                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    3740                 :           0 :   if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1009;
    3741                 :           0 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1009;
    3742                 :           0 :   {
    3743                 :           0 :     tree _r;
    3744                 :           0 :     _r = captures[2];
    3745                 :           0 :     if (TREE_SIDE_EFFECTS (captures[1]))
    3746                 :           0 :       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    3747                 :           0 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 699, __FILE__, __LINE__, true);
    3748                 :             :     return _r;
    3749                 :             :   }
    3750                 :             : next_after_fail1009:;
    3751                 :             :   return NULL_TREE;
    3752                 :             : }
    3753                 :             : 
    3754                 :             : tree
    3755                 :           0 : generic_simplify_436 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    3756                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
    3757                 :             : {
    3758                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    3759                 :           0 :   if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1012;
    3760                 :           0 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1012;
    3761                 :           0 :   {
    3762                 :           0 :     tree _r;
    3763                 :           0 :     _r = captures[2];
    3764                 :           0 :     if (TREE_SIDE_EFFECTS (captures[1]))
    3765                 :           0 :       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    3766                 :           0 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 700, __FILE__, __LINE__, true);
    3767                 :             :     return _r;
    3768                 :             :   }
    3769                 :             : next_after_fail1012:;
    3770                 :             :   return NULL_TREE;
    3771                 :             : }
    3772                 :             : 
    3773                 :             : tree
    3774                 :         213 : generic_simplify_438 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    3775                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    3776                 :             :  const enum tree_code ARG_UNUSED (code2),
    3777                 :             :  const enum tree_code ARG_UNUSED (code1))
    3778                 :             : {
    3779                 :         213 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    3780                 :         213 :   if ((TREE_CODE (captures[2]) == INTEGER_CST
    3781                 :           6 :  && TREE_CODE (captures[5]) == INTEGER_CST)
    3782                 :         213 :  || ((INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
    3783                 :           0 :  || (VECTOR_TYPE_P (TREE_TYPE (captures[2]))
    3784                 :           0 :  && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, code2))
    3785                 :           0 :  || POINTER_TYPE_P (TREE_TYPE (captures[2])))
    3786                 :         207 :  && bitwise_equal_p (captures[2], captures[5]))
    3787                 :             : )
    3788                 :             :     {
    3789                 :           6 :       {
    3790                 :           6 :  bool one_before = false;
    3791                 :           6 :  bool one_after = false;
    3792                 :           6 :  int cmp = 0;
    3793                 :           6 :  bool allbits = true;
    3794                 :           6 :  if (TREE_CODE (captures[2]) == INTEGER_CST
    3795                 :           6 :  && TREE_CODE (captures[5]) == INTEGER_CST)
    3796                 :             :  {
    3797                 :           6 :  allbits = TYPE_PRECISION (TREE_TYPE (captures[2])) <= TYPE_PRECISION (TREE_TYPE (captures[5]));
    3798                 :           6 :  auto t1 = wi::to_wide (fold_convert (TREE_TYPE (captures[5]), captures[2]));
    3799                 :           6 :  auto t2 = wi::to_wide (captures[5]);
    3800                 :           6 :  cmp = wi::cmp (t1, t2, TYPE_SIGN (TREE_TYPE (captures[5])));
    3801                 :           6 :  if (cmp < 0
    3802                 :           6 :  && t1 == t2 - 1)
    3803                 :             :  one_before = true;
    3804                 :           6 :  if (cmp > 0
    3805                 :           6 :  && t1 == t2 + 1)
    3806                 :             :  one_after = true;
    3807                 :             :  }
    3808                 :           6 :  bool val;
    3809                 :           6 :  switch (code2)
    3810                 :             :  {
    3811                 :           0 :  case EQ_EXPR: val = (cmp == 0); break;
    3812                 :           2 :  case NE_EXPR: val = (cmp != 0); break;
    3813                 :           0 :  case LT_EXPR: val = (cmp < 0); break;
    3814                 :           4 :  case GT_EXPR: val = (cmp > 0); break;
    3815                 :           0 :  case LE_EXPR: val = (cmp <= 0); break;
    3816                 :           0 :  case GE_EXPR: val = (cmp >= 0); break;
    3817                 :           0 :  default: gcc_unreachable ();
    3818                 :             :  }
    3819                 :           6 :           if (code1 == EQ_EXPR && val
    3820                 :             : )
    3821                 :             :             {
    3822                 :           0 :               if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1020;
    3823                 :           0 :               if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail1020;
    3824                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1020;
    3825                 :           0 :               {
    3826                 :           0 :                 tree _r;
    3827                 :           0 :                 _r = captures[0];
    3828                 :           0 :                 if (TREE_SIDE_EFFECTS (captures[4]))
    3829                 :           0 :                   _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[4]), _r);
    3830                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 685, __FILE__, __LINE__, true);
    3831                 :           0 :                 return _r;
    3832                 :             :               }
    3833                 :             : next_after_fail1020:;
    3834                 :             :             }
    3835                 :             :           else
    3836                 :             :             {
    3837                 :           6 :               if (code1 == EQ_EXPR && !val
    3838                 :             : )
    3839                 :             :                 {
    3840                 :           0 :                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1021;
    3841                 :           0 :                   if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail1021;
    3842                 :           0 :                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1021;
    3843                 :           0 :                   {
    3844                 :           0 :                     tree _r;
    3845                 :           0 :                     _r =  constant_boolean_node (false, type);
    3846                 :           0 :                     if (TREE_SIDE_EFFECTS (captures[4]))
    3847                 :           0 :                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[4]), _r);
    3848                 :           0 :                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 686, __FILE__, __LINE__, true);
    3849                 :           0 :                     return _r;
    3850                 :             :                   }
    3851                 :             : next_after_fail1021:;
    3852                 :             :                 }
    3853                 :             :               else
    3854                 :             :                 {
    3855                 :           6 :                   if (code1 == NE_EXPR && !val && allbits
    3856                 :             : )
    3857                 :             :                     {
    3858                 :           0 :                       if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1022;
    3859                 :           0 :                       if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1022;
    3860                 :           0 :                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1022;
    3861                 :           0 :                       {
    3862                 :           0 :                         tree _r;
    3863                 :           0 :                         _r = captures[3];
    3864                 :           0 :                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 687, __FILE__, __LINE__, true);
    3865                 :           0 :                         return _r;
    3866                 :             :                       }
    3867                 :             : next_after_fail1022:;
    3868                 :             :                     }
    3869                 :             :                   else
    3870                 :             :                     {
    3871                 :           6 :                       if ((code1 == NE_EXPR
    3872                 :           6 :  && code2 == GE_EXPR
    3873                 :           0 :  && cmp == 0
    3874                 :           0 :  && allbits)
    3875                 :           6 :  && ((VECTOR_BOOLEAN_TYPE_P (type)
    3876                 :           0 :  && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, GT_EXPR))
    3877                 :           0 :  || !VECTOR_TYPE_P (TREE_TYPE (captures[2])))
    3878                 :             : )
    3879                 :             :                         {
    3880                 :           0 :                           if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1023;
    3881                 :           0 :                           if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail1023;
    3882                 :           0 :                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1023;
    3883                 :           0 :                           {
    3884                 :           0 :                             tree res_op0;
    3885                 :           0 :                             res_op0 = captures[4];
    3886                 :           0 :                             tree res_op1;
    3887                 :           0 :                             {
    3888                 :           0 :                               tree _o1[1], _r1;
    3889                 :           0 :                               _o1[0] = captures[2];
    3890                 :           0 :                               if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
    3891                 :             :                                 {
    3892                 :           0 :                                   _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
    3893                 :             :                                 }
    3894                 :             :                               else
    3895                 :             :                                 _r1 = _o1[0];
    3896                 :           0 :                               res_op1 = _r1;
    3897                 :             :                             }
    3898                 :           0 :                             tree _r;
    3899                 :           0 :                             _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
    3900                 :           0 :                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 688, __FILE__, __LINE__, true);
    3901                 :           0 :                             return _r;
    3902                 :             :                           }
    3903                 :             : next_after_fail1023:;
    3904                 :             :                         }
    3905                 :             :                       else
    3906                 :             :                         {
    3907                 :           6 :                           if ((code1 == NE_EXPR
    3908                 :           6 :  && code2 == LE_EXPR
    3909                 :           0 :  && cmp == 0
    3910                 :           0 :  && allbits)
    3911                 :           6 :  && ((VECTOR_BOOLEAN_TYPE_P (type)
    3912                 :           0 :  && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, LT_EXPR))
    3913                 :           0 :  || !VECTOR_TYPE_P (TREE_TYPE (captures[2])))
    3914                 :             : )
    3915                 :             :                             {
    3916                 :           0 :                               if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1024;
    3917                 :           0 :                               if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail1024;
    3918                 :           0 :                               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1024;
    3919                 :           0 :                               {
    3920                 :           0 :                                 tree res_op0;
    3921                 :           0 :                                 res_op0 = captures[4];
    3922                 :           0 :                                 tree res_op1;
    3923                 :           0 :                                 {
    3924                 :           0 :                                   tree _o1[1], _r1;
    3925                 :           0 :                                   _o1[0] = captures[2];
    3926                 :           0 :                                   if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
    3927                 :             :                                     {
    3928                 :           0 :                                       _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
    3929                 :             :                                     }
    3930                 :             :                                   else
    3931                 :             :                                     _r1 = _o1[0];
    3932                 :           0 :                                   res_op1 = _r1;
    3933                 :             :                                 }
    3934                 :           0 :                                 tree _r;
    3935                 :           0 :                                 _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
    3936                 :           0 :                                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 689, __FILE__, __LINE__, true);
    3937                 :           0 :                                 return _r;
    3938                 :             :                               }
    3939                 :             : next_after_fail1024:;
    3940                 :             :                             }
    3941                 :             :                           else
    3942                 :             :                             {
    3943                 :           6 :                               if ((code1 == NE_EXPR
    3944                 :           6 :  && code2 == GT_EXPR
    3945                 :             :  && one_after
    3946                 :           4 :  && allbits)
    3947                 :           6 :  && ((VECTOR_BOOLEAN_TYPE_P (type)
    3948                 :           0 :  && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, GT_EXPR))
    3949                 :           0 :  || !VECTOR_TYPE_P (TREE_TYPE (captures[2])))
    3950                 :             : )
    3951                 :             :                                 {
    3952                 :           0 :                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1025;
    3953                 :           0 :                                   if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail1025;
    3954                 :           0 :                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1025;
    3955                 :           0 :                                   {
    3956                 :           0 :                                     tree res_op0;
    3957                 :           0 :                                     res_op0 = captures[4];
    3958                 :           0 :                                     tree res_op1;
    3959                 :           0 :                                     {
    3960                 :           0 :                                       tree _o1[1], _r1;
    3961                 :           0 :                                       _o1[0] = captures[2];
    3962                 :           0 :                                       if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
    3963                 :             :                                         {
    3964                 :           0 :                                           _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
    3965                 :             :                                         }
    3966                 :             :                                       else
    3967                 :             :                                         _r1 = _o1[0];
    3968                 :           0 :                                       res_op1 = _r1;
    3969                 :             :                                     }
    3970                 :           0 :                                     tree _r;
    3971                 :           0 :                                     _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
    3972                 :           0 :                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 690, __FILE__, __LINE__, true);
    3973                 :           0 :                                     return _r;
    3974                 :             :                                   }
    3975                 :             : next_after_fail1025:;
    3976                 :             :                                 }
    3977                 :             :                               else
    3978                 :             :                                 {
    3979                 :           6 :                                   if ((code1 == NE_EXPR
    3980                 :           6 :  && code2 == LT_EXPR
    3981                 :             :  && one_before
    3982                 :           0 :  && allbits)
    3983                 :           6 :  && ((VECTOR_BOOLEAN_TYPE_P (type)
    3984                 :           0 :  && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, LT_EXPR))
    3985                 :           0 :  || !VECTOR_TYPE_P (TREE_TYPE (captures[2])))
    3986                 :             : )
    3987                 :             :                                     {
    3988                 :           0 :                                       if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1026;
    3989                 :           0 :                                       if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail1026;
    3990                 :           0 :                                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1026;
    3991                 :           0 :                                       {
    3992                 :           0 :                                         tree res_op0;
    3993                 :           0 :                                         res_op0 = captures[4];
    3994                 :           0 :                                         tree res_op1;
    3995                 :           0 :                                         {
    3996                 :           0 :                                           tree _o1[1], _r1;
    3997                 :           0 :                                           _o1[0] = captures[2];
    3998                 :           0 :                                           if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
    3999                 :             :                                             {
    4000                 :           0 :                                               _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
    4001                 :             :                                             }
    4002                 :             :                                           else
    4003                 :             :                                             _r1 = _o1[0];
    4004                 :           0 :                                           res_op1 = _r1;
    4005                 :             :                                         }
    4006                 :           0 :                                         tree _r;
    4007                 :           0 :                                         _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
    4008                 :           0 :                                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 691, __FILE__, __LINE__, true);
    4009                 :           0 :                                         return _r;
    4010                 :             :                                       }
    4011                 :             : next_after_fail1026:;
    4012                 :             :                                     }
    4013                 :             :                                 }
    4014                 :             :                             }
    4015                 :             :                         }
    4016                 :             :                     }
    4017                 :             :                 }
    4018                 :             :             }
    4019                 :             :       }
    4020                 :             :     }
    4021                 :             :   return NULL_TREE;
    4022                 :             : }
    4023                 :             : 
    4024                 :             : tree
    4025                 :           8 : generic_simplify_473 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    4026                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
    4027                 :             :  const enum tree_code ARG_UNUSED (op))
    4028                 :             : {
    4029                 :           8 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    4030                 :           8 :   if (INTEGRAL_TYPE_P (type)
    4031                 :           8 :  && TYPE_PRECISION (type) > 1
    4032                 :          16 :  && (INTEGRAL_TYPE_P (TREE_TYPE (captures[0])))
    4033                 :             : )
    4034                 :             :     {
    4035                 :           8 :       if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1068;
    4036                 :           8 :       if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1068;
    4037                 :           8 :       if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1068;
    4038                 :           8 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1068;
    4039                 :           8 :       {
    4040                 :           8 :         tree res_op0;
    4041                 :           8 :         {
    4042                 :           8 :           tree _o1[2], _r1;
    4043                 :           8 :           {
    4044                 :           8 :             tree _o2[1], _r2;
    4045                 :           8 :             _o2[0] = captures[0];
    4046                 :           8 :             if (TREE_TYPE (_o2[0]) != type)
    4047                 :             :               {
    4048                 :           0 :                 _r2 = fold_build1_loc (loc, NOP_EXPR, type, _o2[0]);
    4049                 :             :               }
    4050                 :             :             else
    4051                 :             :               _r2 = _o2[0];
    4052                 :           8 :             _o1[0] = _r2;
    4053                 :             :           }
    4054                 :           8 :           _o1[1] = captures[1];
    4055                 :           8 :           _r1 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    4056                 :           8 :           res_op0 = _r1;
    4057                 :             :         }
    4058                 :           8 :         tree res_op1;
    4059                 :           8 :         res_op1 = captures[2];
    4060                 :           8 :         tree _r;
    4061                 :           8 :         _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
    4062                 :           8 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 729, __FILE__, __LINE__, true);
    4063                 :           8 :         return _r;
    4064                 :             :       }
    4065                 :             : next_after_fail1068:;
    4066                 :             :     }
    4067                 :             :   return NULL_TREE;
    4068                 :             : }
    4069                 :             : 
    4070                 :             : tree
    4071                 :           0 : generic_simplify_485 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    4072                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
    4073                 :             :  const enum tree_code ARG_UNUSED (op))
    4074                 :             : {
    4075                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    4076                 :           0 :   if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1085;
    4077                 :           0 :   if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail1085;
    4078                 :           0 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1085;
    4079                 :           0 :   {
    4080                 :           0 :     tree _r;
    4081                 :           0 :     _r = captures[2];
    4082                 :           0 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 746, __FILE__, __LINE__, true);
    4083                 :             :     return _r;
    4084                 :             :   }
    4085                 :             : next_after_fail1085:;
    4086                 :             :   return NULL_TREE;
    4087                 :             : }
    4088                 :             : 
    4089                 :             : tree
    4090                 :           0 : generic_simplify_490 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    4091                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures))
    4092                 :             : {
    4093                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    4094                 :           0 :   if (INTEGRAL_TYPE_P (type)
    4095                 :             : )
    4096                 :             :     {
    4097                 :           0 :       if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail1090;
    4098                 :           0 :       if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1090;
    4099                 :           0 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1090;
    4100                 :           0 :       {
    4101                 :           0 :         tree _r;
    4102                 :           0 :         _r = captures[2];
    4103                 :           0 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 751, __FILE__, __LINE__, true);
    4104                 :           0 :         return _r;
    4105                 :             :       }
    4106                 :             : next_after_fail1090:;
    4107                 :             :     }
    4108                 :             :   return NULL_TREE;
    4109                 :             : }
    4110                 :             : 
    4111                 :             : tree
    4112                 :           3 : generic_simplify_496 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    4113                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
    4114                 :             :  const combined_fn ARG_UNUSED (func))
    4115                 :             : {
    4116                 :           3 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    4117                 :           3 :   if (wi::to_widest (captures[4]) == TYPE_PRECISION (TREE_TYPE (captures[3])) - 1
    4118                 :             : )
    4119                 :             :     {
    4120                 :           3 :       if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1097;
    4121                 :           3 :       if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1097;
    4122                 :           3 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1097;
    4123                 :           3 :       {
    4124                 :           3 :         tree _r;
    4125                 :           3 :         _r = captures[2];
    4126                 :           3 :         if (TREE_SIDE_EFFECTS (captures[1]))
    4127                 :           0 :           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    4128                 :           3 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 757, __FILE__, __LINE__, true);
    4129                 :           3 :         return _r;
    4130                 :             :       }
    4131                 :             : next_after_fail1097:;
    4132                 :             :     }
    4133                 :             :   return NULL_TREE;
    4134                 :             : }
    4135                 :             : 
    4136                 :             : tree
    4137                 :           2 : generic_simplify_504 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    4138                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    4139                 :             :  const enum tree_code ARG_UNUSED (minmax),
    4140                 :             :  const enum tree_code ARG_UNUSED (cmp))
    4141                 :             : {
    4142                 :           2 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    4143                 :           2 :   {
    4144                 :           2 :  poly_int64 off0, off1;
    4145                 :           2 :  tree base0, base1;
    4146                 :           2 :  int equal = address_compare (cmp, TREE_TYPE (captures[0]), captures[1], captures[3], base0, base1,
    4147                 :             :  off0, off1,
    4148                 :             : 1
    4149                 :             : );
    4150                 :           2 :       if (equal == 1
    4151                 :             : )
    4152                 :             :         {
    4153                 :           0 :           if (minmax == MIN_EXPR
    4154                 :             : )
    4155                 :             :             {
    4156                 :           0 :               if (known_le (off0, off1)
    4157                 :             : )
    4158                 :             :                 {
    4159                 :           0 :                   if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1107;
    4160                 :           0 :                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1107;
    4161                 :           0 :                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1107;
    4162                 :           0 :                   {
    4163                 :           0 :                     tree _r;
    4164                 :           0 :                     _r = captures[0];
    4165                 :           0 :                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 766, __FILE__, __LINE__, true);
    4166                 :           0 :                     return _r;
    4167                 :             :                   }
    4168                 :           2 : next_after_fail1107:;
    4169                 :             :                 }
    4170                 :             :               else
    4171                 :             :                 {
    4172                 :           0 :                   if (known_gt (off0, off1)
    4173                 :             : )
    4174                 :             :                     {
    4175                 :           0 :                       if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1108;
    4176                 :           0 :                       if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1108;
    4177                 :           0 :                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1108;
    4178                 :           0 :                       {
    4179                 :           0 :                         tree _r;
    4180                 :           0 :                         _r = captures[2];
    4181                 :           0 :                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 767, __FILE__, __LINE__, true);
    4182                 :           0 :                         return _r;
    4183                 :             :                       }
    4184                 :           2 : next_after_fail1108:;
    4185                 :             :                     }
    4186                 :             :                 }
    4187                 :             :             }
    4188                 :             :           else
    4189                 :             :             {
    4190                 :           0 :               if (known_ge (off0, off1)
    4191                 :             : )
    4192                 :             :                 {
    4193                 :           0 :                   if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1109;
    4194                 :           0 :                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1109;
    4195                 :           0 :                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1109;
    4196                 :           0 :                   {
    4197                 :           0 :                     tree _r;
    4198                 :           0 :                     _r = captures[0];
    4199                 :           0 :                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 768, __FILE__, __LINE__, true);
    4200                 :           0 :                     return _r;
    4201                 :             :                   }
    4202                 :           2 : next_after_fail1109:;
    4203                 :             :                 }
    4204                 :             :               else
    4205                 :             :                 {
    4206                 :           0 :                   if (known_lt (off0, off1)
    4207                 :             : )
    4208                 :             :                     {
    4209                 :           0 :                       if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1110;
    4210                 :           0 :                       if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1110;
    4211                 :           0 :                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1110;
    4212                 :           0 :                       {
    4213                 :           0 :                         tree _r;
    4214                 :           0 :                         _r = captures[2];
    4215                 :           0 :                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 769, __FILE__, __LINE__, true);
    4216                 :           0 :                         return _r;
    4217                 :             :                       }
    4218                 :           2 : next_after_fail1110:;
    4219                 :             :                     }
    4220                 :             :                 }
    4221                 :             :             }
    4222                 :             :         }
    4223                 :             :   }
    4224                 :           2 :   return NULL_TREE;
    4225                 :             : }
    4226                 :             : 
    4227                 :             : tree
    4228                 :           1 : generic_simplify_519 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    4229                 :             :  tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures))
    4230                 :             : {
    4231                 :           1 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    4232                 :           1 :   if (tree_nop_conversion_p (TREE_TYPE (captures[0]), type)
    4233                 :             : )
    4234                 :             :     {
    4235                 :           1 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1137;
    4236                 :           1 :       {
    4237                 :           1 :         tree res_op0;
    4238                 :           1 :         {
    4239                 :           1 :           tree _o1[1], _r1;
    4240                 :           1 :           _o1[0] = captures[0];
    4241                 :           1 :           if (TREE_TYPE (_o1[0]) != type)
    4242                 :             :             {
    4243                 :           0 :               _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
    4244                 :             :             }
    4245                 :             :           else
    4246                 :             :             _r1 = _o1[0];
    4247                 :           1 :           res_op0 = _r1;
    4248                 :             :         }
    4249                 :           1 :         tree _r;
    4250                 :           1 :         _r = non_lvalue_loc (loc, res_op0);
    4251                 :           1 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 784, __FILE__, __LINE__, true);
    4252                 :           1 :         return _r;
    4253                 :             :       }
    4254                 :           0 : next_after_fail1137:;
    4255                 :             :     }
    4256                 :             :   return NULL_TREE;
    4257                 :             : }
    4258                 :             : 
    4259                 :             : tree
    4260                 :           0 : generic_simplify_529 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    4261                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
    4262                 :             :  const combined_fn ARG_UNUSED (cond_op))
    4263                 :             : {
    4264                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    4265                 :           0 :   {
    4266                 :           0 :  tree op_type = TREE_TYPE (captures[5]);
    4267                 :           0 :       if (inverse_conditions_p (captures[0], captures[2])
    4268                 :           0 :  && element_precision (type) == element_precision (op_type)
    4269                 :             : )
    4270                 :             :         {
    4271                 :           0 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1147;
    4272                 :           0 :           {
    4273                 :           0 :             tree res_op0;
    4274                 :           0 :             {
    4275                 :           0 :               tree _o1[4], _r1;
    4276                 :           0 :               _o1[0] = captures[2];
    4277                 :           0 :               _o1[1] = captures[3];
    4278                 :           0 :               _o1[2] = captures[4];
    4279                 :           0 :               {
    4280                 :           0 :                 tree _o2[1], _r2;
    4281                 :           0 :                 _o2[0] = captures[1];
    4282                 :           0 :                 if (TREE_TYPE (_o2[0]) != op_type)
    4283                 :             :                   {
    4284                 :           0 :                     _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, op_type, _o2[0]);
    4285                 :             :                   }
    4286                 :             :                 else
    4287                 :             :                   _r2 = _o2[0];
    4288                 :           0 :                 _o1[3] = _r2;
    4289                 :             :               }
    4290                 :           0 :               _r1 = maybe_build_call_expr_loc (loc, cond_op, TREE_TYPE (_o1[1]), 4, _o1[0], _o1[1], _o1[2], _o1[3]);
    4291                 :           0 :               if (!_r1)
    4292                 :           0 :                 goto next_after_fail1147;
    4293                 :           0 :               res_op0 = _r1;
    4294                 :             :             }
    4295                 :           0 :             tree _r;
    4296                 :           0 :             _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
    4297                 :           0 :             if (TREE_SIDE_EFFECTS (captures[0]))
    4298                 :           0 :               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    4299                 :           0 :             if (TREE_SIDE_EFFECTS (captures[5]))
    4300                 :           0 :               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[5]), _r);
    4301                 :           0 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 789, __FILE__, __LINE__, true);
    4302                 :           0 :             return _r;
    4303                 :             :           }
    4304                 :             : next_after_fail1147:;
    4305                 :             :         }
    4306                 :             :   }
    4307                 :             :   return NULL_TREE;
    4308                 :             : }
    4309                 :             : 
    4310                 :             : tree
    4311                 :           0 : generic_simplify_539 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    4312                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    4313                 :             :  const enum tree_code ARG_UNUSED (cmp))
    4314                 :             : {
    4315                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    4316                 :           0 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1157;
    4317                 :           0 :   {
    4318                 :           0 :     tree res_op0;
    4319                 :           0 :     res_op0 = unshare_expr (captures[0]);
    4320                 :           0 :     tree res_op1;
    4321                 :           0 :     res_op1 = captures[0];
    4322                 :           0 :     tree _r;
    4323                 :           0 :     _r = fold_build2_loc (loc, UNORDERED_EXPR, type, res_op0, res_op1);
    4324                 :           0 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 799, __FILE__, __LINE__, true);
    4325                 :             :     return _r;
    4326                 :             :   }
    4327                 :           0 : next_after_fail1157:;
    4328                 :           0 :   return NULL_TREE;
    4329                 :             : }
    4330                 :             : 
    4331                 :             : tree
    4332                 :           0 : generic_simplify_546 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    4333                 :             :  tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
    4334                 :             :  const combined_fn ARG_UNUSED (tans),
    4335                 :             :  const combined_fn ARG_UNUSED (atans))
    4336                 :             : {
    4337                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    4338                 :           0 :   if (flag_unsafe_math_optimizations
    4339                 :             : )
    4340                 :             :     {
    4341                 :           0 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1164;
    4342                 :           0 :       {
    4343                 :           0 :         tree _r;
    4344                 :           0 :         _r = captures[0];
    4345                 :           0 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 806, __FILE__, __LINE__, true);
    4346                 :           0 :         return _r;
    4347                 :             :       }
    4348                 :           0 : next_after_fail1164:;
    4349                 :             :     }
    4350                 :             :   return NULL_TREE;
    4351                 :             : }
    4352                 :             : 
    4353                 :             : tree
    4354                 :           0 : generic_simplify_552 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    4355                 :             :  tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
    4356                 :             :  const combined_fn ARG_UNUSED (froms),
    4357                 :             :  const combined_fn ARG_UNUSED (tos))
    4358                 :             : {
    4359                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    4360                 :           0 :   if (optimize && canonicalize_math_p ()
    4361                 :             : )
    4362                 :             :     {
    4363                 :           0 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1170;
    4364                 :           0 :       {
    4365                 :           0 :         tree res_op0;
    4366                 :           0 :         {
    4367                 :           0 :           tree _o1[1], _r1;
    4368                 :           0 :           _o1[0] = captures[0];
    4369                 :           0 :           _r1 = maybe_build_call_expr_loc (loc, tos, TREE_TYPE (_o1[0]), 1, _o1[0]);
    4370                 :           0 :           if (!_r1)
    4371                 :           0 :             goto next_after_fail1170;
    4372                 :           0 :           res_op0 = _r1;
    4373                 :             :         }
    4374                 :           0 :         tree _r;
    4375                 :           0 :         _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
    4376                 :           0 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 812, __FILE__, __LINE__, true);
    4377                 :           0 :         return _r;
    4378                 :             :       }
    4379                 :             : next_after_fail1170:;
    4380                 :             :     }
    4381                 :             :   return NULL_TREE;
    4382                 :             : }
    4383                 :             : 
    4384                 :             : tree
    4385                 :           0 : generic_simplify_563 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    4386                 :             :  tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
    4387                 :             :  const combined_fn ARG_UNUSED (SIGNBIT))
    4388                 :             : {
    4389                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    4390                 :           0 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1181;
    4391                 :           0 :   {
    4392                 :           0 :     tree _r;
    4393                 :           0 :     _r =  integer_zero_node;
    4394                 :           0 :     if (TREE_SIDE_EFFECTS (captures[0]))
    4395                 :           0 :       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    4396                 :           0 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 823, __FILE__, __LINE__, true);
    4397                 :             :     return _r;
    4398                 :             :   }
    4399                 :           0 : next_after_fail1181:;
    4400                 :           0 :   return NULL_TREE;
    4401                 :             : }
    4402                 :             : 
    4403                 :             : tree
    4404                 :           0 : generic_simplify_569 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    4405                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures))
    4406                 :             : {
    4407                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    4408                 :           0 :   if (canonicalize_math_after_vectorization_p ()
    4409                 :             : )
    4410                 :             :     {
    4411                 :             :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1187;
    4412                 :             :       {
    4413                 :             :         tree res_op0;
    4414                 :             :         res_op0 = captures[0];
    4415                 :             :         tree res_op1;
    4416                 :             :         res_op1 = captures[1];
    4417                 :             :         tree res_op2;
    4418                 :             :         res_op2 = captures[2];
    4419                 :             :         tree _r;
    4420                 :             :         _r = maybe_build_call_expr_loc (loc, CFN_FNMA, type, 3, res_op0, res_op1, res_op2);
    4421                 :             :         if (!_r)
    4422                 :             :           goto next_after_fail1187;
    4423                 :             :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 829, __FILE__, __LINE__, true);
    4424                 :             :         return _r;
    4425                 :             :       }
    4426                 :           0 : next_after_fail1187:;
    4427                 :             :     }
    4428                 :           0 :   return NULL_TREE;
    4429                 :             : }
    4430                 :             : 
    4431                 :             : tree
    4432                 :           0 : generic_simplify_579 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    4433                 :             :  tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
    4434                 :             :  const enum tree_code ARG_UNUSED (rot),
    4435                 :             :  const combined_fn ARG_UNUSED (popcount))
    4436                 :             : {
    4437                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    4438                 :           0 :   if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
    4439                 :           0 :  && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
    4440                 :           0 :  && (
    4441                 :             : 
    4442                 :           0 :  || !TREE_SIDE_EFFECTS (captures[3]))
    4443                 :             : )
    4444                 :             :     {
    4445                 :           0 :       {
    4446                 :           0 :  tree type0 = TREE_TYPE (captures[0]);
    4447                 :           0 :  tree type1 = TREE_TYPE (captures[1]);
    4448                 :           0 :  unsigned int prec0 = TYPE_PRECISION (type0);
    4449                 :           0 :  unsigned int prec1 = TYPE_PRECISION (type1);
    4450                 :           0 :           if (prec0 == prec1 || (prec0 > prec1 && TYPE_UNSIGNED (type1))
    4451                 :             : )
    4452                 :             :             {
    4453                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1197;
    4454                 :           0 :               {
    4455                 :           0 :                 tree res_op0;
    4456                 :           0 :                 {
    4457                 :           0 :                   tree _o1[1], _r1;
    4458                 :           0 :                   _o1[0] = captures[2];
    4459                 :           0 :                   if (TREE_TYPE (_o1[0]) != type0)
    4460                 :             :                     {
    4461                 :           0 :                       _r1 = fold_build1_loc (loc, NOP_EXPR, type0, _o1[0]);
    4462                 :             :                     }
    4463                 :             :                   else
    4464                 :             :                     _r1 = _o1[0];
    4465                 :           0 :                   res_op0 = _r1;
    4466                 :             :                 }
    4467                 :           0 :                 tree _r;
    4468                 :           0 :                 _r = maybe_build_call_expr_loc (loc, popcount, type, 1, res_op0);
    4469                 :           0 :                 if (!_r)
    4470                 :           0 :                   goto next_after_fail1197;
    4471                 :           0 :                 if (TREE_SIDE_EFFECTS (captures[3]))
    4472                 :           0 :                   _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
    4473                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 836, __FILE__, __LINE__, true);
    4474                 :           0 :                 return _r;
    4475                 :             :               }
    4476                 :             : next_after_fail1197:;
    4477                 :             :             }
    4478                 :             :       }
    4479                 :             :     }
    4480                 :             :   return NULL_TREE;
    4481                 :             : }
    4482                 :             : 
    4483                 :             : tree
    4484                 :           0 : generic_simplify_590 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    4485                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
    4486                 :             :  const enum tree_code ARG_UNUSED (plusminus),
    4487                 :             :  const enum tree_code ARG_UNUSED (minusplus))
    4488                 :             : {
    4489                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    4490                 :           0 :   if (!VECTOR_INTEGER_TYPE_P (type)
    4491                 :             :  && !FLOAT_WORDS_BIG_ENDIAN
    4492                 :           0 :  && (operand_equal_p (captures[0], captures[2], 0)
    4493                 :           0 :  ? operand_equal_p (captures[1], captures[3], 0)
    4494                 :           0 :  : operand_equal_p (captures[0], captures[3], 0) && operand_equal_p (captures[1], captures[2], 0))
    4495                 :             : )
    4496                 :             :     {
    4497                 :           0 :       {
    4498                 :           0 :  vec_perm_builder builder;
    4499                 :           0 :           if (tree_to_vec_perm_builder (&builder, captures[4])
    4500                 :             : )
    4501                 :             :             {
    4502                 :           0 :               {
    4503                 :           0 :  poly_uint64 nelts = TYPE_VECTOR_SUBPARTS (type);
    4504                 :           0 :  vec_perm_indices sel (builder, 2, nelts);
    4505                 :           0 :  machine_mode vec_mode = TYPE_MODE (type);
    4506                 :           0 :  machine_mode wide_mode;
    4507                 :           0 :  scalar_mode wide_elt_mode;
    4508                 :           0 :  poly_uint64 wide_nunits;
    4509                 :           0 :  scalar_mode inner_mode = GET_MODE_INNER (vec_mode);
    4510                 :           0 :                   if (VECTOR_MODE_P (vec_mode)
    4511                 :           0 :  && sel.series_p (0, 2, 0, 2)
    4512                 :           0 :  && sel.series_p (1, 2, nelts + 1, 2)
    4513                 :           0 :  && GET_MODE_2XWIDER_MODE (inner_mode).exists (&wide_elt_mode)
    4514                 :           0 :  && multiple_p (GET_MODE_NUNITS (vec_mode), 2, &wide_nunits)
    4515                 :           0 :  && related_vector_mode (vec_mode, wide_elt_mode,
    4516                 :           0 :  wide_nunits).exists (&wide_mode)
    4517                 :             : )
    4518                 :             :                     {
    4519                 :           0 :                       {
    4520                 :           0 :  tree stype
    4521                 :           0 :  = lang_hooks.types.type_for_mode (GET_MODE_INNER (wide_mode),
    4522                 :           0 :  TYPE_UNSIGNED (type));
    4523                 :           0 :  tree ntype = build_vector_type_for_mode (stype, wide_mode);
    4524                 :           0 :  const struct real_format *fmt_old = FLOAT_MODE_FORMAT (vec_mode);
    4525                 :           0 :  const struct real_format *fmt_new = FLOAT_MODE_FORMAT (wide_mode);
    4526                 :           0 :                           if (TYPE_MODE (stype) != BLKmode
    4527                 :           0 :  && VECTOR_TYPE_P (ntype)
    4528                 :           0 :  && fmt_old != NULL
    4529                 :           0 :  && fmt_new != NULL
    4530                 :             : )
    4531                 :             :                             {
    4532                 :           0 :                               {
    4533                 :           0 :  if (known_eq (GET_MODE_NUNITS (wide_mode), 1)
    4534                 :           0 :  && !target_supports_op_p (ntype, NEGATE_EXPR, optab_vector))
    4535                 :             :  ntype = stype;
    4536                 :           0 :                                   if (fmt_new->signbit_rw
    4537                 :           0 :  == fmt_old->signbit_rw + GET_MODE_UNIT_BITSIZE (vec_mode)
    4538                 :           0 :  && fmt_new->signbit_rw == fmt_new->signbit_ro
    4539                 :           0 :  && targetm.can_change_mode_class (TYPE_MODE (ntype),
    4540                 :           0 :  TYPE_MODE (type), ALL_REGS)
    4541                 :           0 :  && ((optimize_vectors_before_lowering_p ()
    4542                 :           0 :  && VECTOR_TYPE_P (ntype))
    4543                 :           0 :  || target_supports_op_p (ntype, NEGATE_EXPR, optab_vector))
    4544                 :             : )
    4545                 :             :                                     {
    4546                 :           0 :                                       if (plusminus == PLUS_EXPR
    4547                 :             : )
    4548                 :             :                                         {
    4549                 :           0 :                                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1209;
    4550                 :           0 :                                           {
    4551                 :           0 :                                             tree res_op0;
    4552                 :           0 :                                             {
    4553                 :           0 :                                               tree _o1[1], _r1;
    4554                 :           0 :                                               {
    4555                 :           0 :                                                 tree _o2[1], _r2;
    4556                 :           0 :                                                 {
    4557                 :           0 :                                                   tree _o3[1], _r3;
    4558                 :           0 :                                                   _o3[0] = captures[3];
    4559                 :           0 :                                                   if (TREE_TYPE (_o3[0]) != ntype)
    4560                 :             :                                                     {
    4561                 :           0 :                                                       _r3 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, ntype, _o3[0]);
    4562                 :             :                                                     }
    4563                 :             :                                                   else
    4564                 :             :                                                     _r3 = _o3[0];
    4565                 :           0 :                                                   _o2[0] = _r3;
    4566                 :             :                                                 }
    4567                 :           0 :                                                 _r2 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
    4568                 :           0 :                                                 _o1[0] = _r2;
    4569                 :             :                                               }
    4570                 :           0 :                                               if (TREE_TYPE (_o1[0]) != type)
    4571                 :             :                                                 {
    4572                 :           0 :                                                   _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o1[0]);
    4573                 :             :                                                 }
    4574                 :             :                                               else
    4575                 :             :                                                 _r1 = _o1[0];
    4576                 :           0 :                                               res_op0 = _r1;
    4577                 :             :                                             }
    4578                 :           0 :                                             tree res_op1;
    4579                 :           0 :                                             res_op1 = captures[2];
    4580                 :           0 :                                             tree _r;
    4581                 :           0 :                                             _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
    4582                 :           0 :                                             if (TREE_SIDE_EFFECTS (captures[0]))
    4583                 :           0 :                                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    4584                 :           0 :                                             if (TREE_SIDE_EFFECTS (captures[1]))
    4585                 :           0 :                                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    4586                 :           0 :                                             if (TREE_SIDE_EFFECTS (captures[4]))
    4587                 :           0 :                                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[4]), _r);
    4588                 :           0 :                                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 844, __FILE__, __LINE__, true);
    4589                 :           0 :                                             return _r;
    4590                 :             :                                           }
    4591                 :           0 : next_after_fail1209:;
    4592                 :             :                                         }
    4593                 :             :                                       else
    4594                 :             :                                         {
    4595                 :           0 :                                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1210;
    4596                 :           0 :                                           {
    4597                 :           0 :                                             tree res_op0;
    4598                 :           0 :                                             res_op0 = captures[0];
    4599                 :           0 :                                             tree res_op1;
    4600                 :           0 :                                             {
    4601                 :           0 :                                               tree _o1[1], _r1;
    4602                 :           0 :                                               {
    4603                 :           0 :                                                 tree _o2[1], _r2;
    4604                 :           0 :                                                 {
    4605                 :           0 :                                                   tree _o3[1], _r3;
    4606                 :           0 :                                                   _o3[0] = captures[1];
    4607                 :           0 :                                                   if (TREE_TYPE (_o3[0]) != ntype)
    4608                 :             :                                                     {
    4609                 :           0 :                                                       _r3 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, ntype, _o3[0]);
    4610                 :             :                                                     }
    4611                 :             :                                                   else
    4612                 :             :                                                     _r3 = _o3[0];
    4613                 :           0 :                                                   _o2[0] = _r3;
    4614                 :             :                                                 }
    4615                 :           0 :                                                 _r2 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
    4616                 :           0 :                                                 _o1[0] = _r2;
    4617                 :             :                                               }
    4618                 :           0 :                                               if (TREE_TYPE (_o1[0]) != type)
    4619                 :             :                                                 {
    4620                 :           0 :                                                   _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o1[0]);
    4621                 :             :                                                 }
    4622                 :             :                                               else
    4623                 :             :                                                 _r1 = _o1[0];
    4624                 :           0 :                                               res_op1 = _r1;
    4625                 :             :                                             }
    4626                 :           0 :                                             tree _r;
    4627                 :           0 :                                             _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
    4628                 :           0 :                                             if (TREE_SIDE_EFFECTS (captures[2]))
    4629                 :           0 :                                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    4630                 :           0 :                                             if (TREE_SIDE_EFFECTS (captures[3]))
    4631                 :           0 :                                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
    4632                 :           0 :                                             if (TREE_SIDE_EFFECTS (captures[4]))
    4633                 :           0 :                                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[4]), _r);
    4634                 :           0 :                                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 845, __FILE__, __LINE__, true);
    4635                 :           0 :                                             return _r;
    4636                 :             :                                           }
    4637                 :           0 : next_after_fail1210:;
    4638                 :             :                                         }
    4639                 :             :                                     }
    4640                 :             :                               }
    4641                 :             :                             }
    4642                 :             :                       }
    4643                 :             :                     }
    4644                 :           0 :               }
    4645                 :             :             }
    4646                 :           0 :       }
    4647                 :             :     }
    4648                 :             :   return NULL_TREE;
    4649                 :             : }
    4650                 :             : 
    4651                 :             : tree
    4652                 :        1330 : generic_simplify_CONJ_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0)
    4653                 :             : {
    4654                 :        1330 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    4655                 :        1330 :   switch (TREE_CODE (_p0))
    4656                 :             :     {
    4657                 :           0 :     CASE_CONVERT:
    4658                 :           0 :       {
    4659                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
    4660                 :           0 :         switch (TREE_CODE (_q20))
    4661                 :             :           {
    4662                 :           0 :           case CONJ_EXPR:
    4663                 :           0 :             {
    4664                 :           0 :               tree _q30 = TREE_OPERAND (_q20, 0);
    4665                 :           0 :               {
    4666                 :           0 :                 tree captures[1] ATTRIBUTE_UNUSED = { _q30 };
    4667                 :           0 :                 tree res = generic_simplify_519 (loc, type, _p0, captures);
    4668                 :           0 :                 if (res) return res;
    4669                 :             :               }
    4670                 :           0 :               break;
    4671                 :             :             }
    4672                 :           0 :           case COMPLEX_EXPR:
    4673                 :           0 :             {
    4674                 :           0 :               tree _q30 = TREE_OPERAND (_q20, 0);
    4675                 :           0 :               tree _q31 = TREE_OPERAND (_q20, 1);
    4676                 :           0 :               {
    4677                 :           0 :                 tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31 };
    4678                 :           0 :                 {
    4679                 :           0 :  tree itype = TREE_TYPE (type);
    4680                 :           0 :                     if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1327;
    4681                 :           0 :                     {
    4682                 :           0 :                       tree res_op0;
    4683                 :           0 :                       {
    4684                 :           0 :                         tree _o1[1], _r1;
    4685                 :           0 :                         _o1[0] = captures[2];
    4686                 :           0 :                         if (TREE_TYPE (_o1[0]) != itype)
    4687                 :             :                           {
    4688                 :           0 :                             _r1 = fold_build1_loc (loc, NOP_EXPR, itype, _o1[0]);
    4689                 :             :                           }
    4690                 :             :                         else
    4691                 :             :                           _r1 = _o1[0];
    4692                 :           0 :                         res_op0 = _r1;
    4693                 :             :                       }
    4694                 :           0 :                       tree res_op1;
    4695                 :           0 :                       {
    4696                 :           0 :                         tree _o1[1], _r1;
    4697                 :           0 :                         {
    4698                 :           0 :                           tree _o2[1], _r2;
    4699                 :           0 :                           _o2[0] = captures[3];
    4700                 :           0 :                           if (TREE_TYPE (_o2[0]) != itype)
    4701                 :             :                             {
    4702                 :           0 :                               _r2 = fold_build1_loc (loc, NOP_EXPR, itype, _o2[0]);
    4703                 :             :                             }
    4704                 :             :                           else
    4705                 :             :                             _r2 = _o2[0];
    4706                 :           0 :                           _o1[0] = _r2;
    4707                 :             :                         }
    4708                 :           0 :                         _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
    4709                 :           0 :                         res_op1 = _r1;
    4710                 :             :                       }
    4711                 :           0 :                       tree _r;
    4712                 :           0 :                       _r = fold_build2_loc (loc, COMPLEX_EXPR, type, res_op0, res_op1);
    4713                 :           0 :                       if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 901, __FILE__, __LINE__, true);
    4714                 :           0 :                       return _r;
    4715                 :             :                     }
    4716                 :           0 : next_after_fail1327:;
    4717                 :             :                 }
    4718                 :             :               }
    4719                 :           0 :               break;
    4720                 :             :             }
    4721                 :             :           default:;
    4722                 :             :           }
    4723                 :             :         break;
    4724                 :             :       }
    4725                 :           1 :     case CONJ_EXPR:
    4726                 :           1 :       {
    4727                 :           1 :         tree _q20 = TREE_OPERAND (_p0, 0);
    4728                 :           1 :         {
    4729                 :           1 :           tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
    4730                 :           1 :           tree res = generic_simplify_519 (loc, type, _p0, captures);
    4731                 :           1 :           if (res) return res;
    4732                 :             :         }
    4733                 :           0 :         break;
    4734                 :             :       }
    4735                 :          12 :     case COMPLEX_EXPR:
    4736                 :          12 :       {
    4737                 :          12 :         tree _q20 = TREE_OPERAND (_p0, 0);
    4738                 :          12 :         tree _q21 = TREE_OPERAND (_p0, 1);
    4739                 :          12 :         {
    4740                 :          12 :           tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21 };
    4741                 :          12 :           {
    4742                 :          12 :  tree itype = TREE_TYPE (type);
    4743                 :          12 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1328;
    4744                 :          12 :               {
    4745                 :          12 :                 tree res_op0;
    4746                 :          12 :                 {
    4747                 :          12 :                   tree _o1[1], _r1;
    4748                 :          12 :                   _o1[0] = captures[2];
    4749                 :          12 :                   if (TREE_TYPE (_o1[0]) != itype)
    4750                 :             :                     {
    4751                 :           0 :                       _r1 = fold_build1_loc (loc, NOP_EXPR, itype, _o1[0]);
    4752                 :             :                     }
    4753                 :             :                   else
    4754                 :             :                     _r1 = _o1[0];
    4755                 :          12 :                   res_op0 = _r1;
    4756                 :             :                 }
    4757                 :          12 :                 tree res_op1;
    4758                 :          12 :                 {
    4759                 :          12 :                   tree _o1[1], _r1;
    4760                 :          12 :                   {
    4761                 :          12 :                     tree _o2[1], _r2;
    4762                 :          12 :                     _o2[0] = captures[3];
    4763                 :          12 :                     if (TREE_TYPE (_o2[0]) != itype)
    4764                 :             :                       {
    4765                 :           0 :                         _r2 = fold_build1_loc (loc, NOP_EXPR, itype, _o2[0]);
    4766                 :             :                       }
    4767                 :             :                     else
    4768                 :             :                       _r2 = _o2[0];
    4769                 :          12 :                     _o1[0] = _r2;
    4770                 :             :                   }
    4771                 :          12 :                   _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
    4772                 :          12 :                   res_op1 = _r1;
    4773                 :             :                 }
    4774                 :          12 :                 tree _r;
    4775                 :          12 :                 _r = fold_build2_loc (loc, COMPLEX_EXPR, type, res_op0, res_op1);
    4776                 :          12 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 901, __FILE__, __LINE__, true);
    4777                 :          12 :                 return _r;
    4778                 :             :               }
    4779                 :           0 : next_after_fail1328:;
    4780                 :             :           }
    4781                 :             :         }
    4782                 :           0 :         break;
    4783                 :             :       }
    4784                 :             :     default:;
    4785                 :             :     }
    4786                 :             :   return NULL_TREE;
    4787                 :             : }
    4788                 :             : 
    4789                 :             : tree
    4790                 :    31705797 : generic_simplify_MINUS_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
    4791                 :             : {
    4792                 :    31705797 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    4793                 :    31705797 :   if (integer_zerop (_p1))
    4794                 :             :     {
    4795                 :     2040619 :       {
    4796                 :     2040619 :         tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
    4797                 :     2040619 :         if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1358;
    4798                 :     2040619 :         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1358;
    4799                 :     2040619 :         {
    4800                 :     2040619 :           tree res_op0;
    4801                 :     2040619 :           res_op0 = captures[0];
    4802                 :     2040619 :           tree _r;
    4803                 :     2040619 :           _r = non_lvalue_loc (loc, res_op0);
    4804                 :     2040619 :           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 902, __FILE__, __LINE__, true);
    4805                 :     2040619 :           return _r;
    4806                 :             :         }
    4807                 :             : next_after_fail1358:;
    4808                 :             :       }
    4809                 :             :     }
    4810                 :    29665178 :   if (real_zerop (_p1))
    4811                 :             :     {
    4812                 :        1140 :       {
    4813                 :        1140 :         tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    4814                 :        1140 :         if (fold_real_zero_addition_p (type, captures[0], captures[1], 1)
    4815                 :             : )
    4816                 :             :           {
    4817                 :         752 :             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1359;
    4818                 :         752 :             {
    4819                 :         752 :               tree res_op0;
    4820                 :         752 :               res_op0 = captures[0];
    4821                 :         752 :               tree _r;
    4822                 :         752 :               _r = non_lvalue_loc (loc, res_op0);
    4823                 :         752 :               if (TREE_SIDE_EFFECTS (captures[1]))
    4824                 :           0 :                 _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    4825                 :         752 :               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 922, __FILE__, __LINE__, true);
    4826                 :         752 :               return _r;
    4827                 :             :             }
    4828                 :           0 : next_after_fail1359:;
    4829                 :             :           }
    4830                 :             :       }
    4831                 :             :     }
    4832                 :    29664426 :   switch (TREE_CODE (_p0))
    4833                 :             :     {
    4834                 :     2182040 :     case PLUS_EXPR:
    4835                 :     2182040 :       {
    4836                 :     2182040 :         tree _q20 = TREE_OPERAND (_p0, 0);
    4837                 :     2182040 :         tree _q21 = TREE_OPERAND (_p0, 1);
    4838                 :     2182040 :         switch (TREE_CODE (_q21))
    4839                 :             :           {
    4840                 :      159803 :           case REAL_CST:
    4841                 :      159803 :             {
    4842                 :      159803 :               switch (TREE_CODE (_p1))
    4843                 :             :                 {
    4844                 :          11 :                 case REAL_CST:
    4845                 :          11 :                   {
    4846                 :          11 :                     {
    4847                 :          11 :                       tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
    4848                 :          11 :                       tree res = generic_simplify_4 (loc, type, _p0, _p1, captures, MINUS_EXPR, PLUS_EXPR);
    4849                 :          11 :                       if (res) return res;
    4850                 :             :                     }
    4851                 :           8 :                     break;
    4852                 :             :                   }
    4853                 :             :                 default:;
    4854                 :             :                 }
    4855                 :             :               break;
    4856                 :             :             }
    4857                 :             :           default:;
    4858                 :             :           }
    4859                 :             :         break;
    4860                 :             :       }
    4861                 :     1128925 :     case MINUS_EXPR:
    4862                 :     1128925 :       {
    4863                 :     1128925 :         tree _q20 = TREE_OPERAND (_p0, 0);
    4864                 :     1128925 :         tree _q21 = TREE_OPERAND (_p0, 1);
    4865                 :     1128925 :         switch (TREE_CODE (_q21))
    4866                 :             :           {
    4867                 :      100404 :           case REAL_CST:
    4868                 :      100404 :             {
    4869                 :      100404 :               switch (TREE_CODE (_p1))
    4870                 :             :                 {
    4871                 :          40 :                 case REAL_CST:
    4872                 :          40 :                   {
    4873                 :          40 :                     {
    4874                 :          40 :                       tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
    4875                 :          40 :                       tree res = generic_simplify_4 (loc, type, _p0, _p1, captures, MINUS_EXPR, MINUS_EXPR);
    4876                 :          40 :                       if (res) return res;
    4877                 :             :                     }
    4878                 :          38 :                     break;
    4879                 :             :                   }
    4880                 :             :                 default:;
    4881                 :             :                 }
    4882                 :             :               break;
    4883                 :             :             }
    4884                 :             :           default:;
    4885                 :             :           }
    4886                 :             :         break;
    4887                 :             :       }
    4888                 :    29664421 :     default:;
    4889                 :             :     }
    4890                 :    29664421 :   if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
    4891                 :             :     {
    4892                 :      173590 :       {
    4893                 :      173590 :         tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
    4894                 :      172839 :         if (!FLOAT_TYPE_P (type)
    4895                 :      173591 :  || (!tree_expr_maybe_nan_p (captures[0])
    4896                 :         107 :  && !tree_expr_maybe_infinite_p (captures[0])
    4897                 :          15 :  && (!HONOR_SIGN_DEPENDENT_ROUNDING (type)
    4898                 :           1 :  || !HONOR_SIGNED_ZEROS (type)))
    4899                 :             : )
    4900                 :             :           {
    4901                 :      172852 :             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1360;
    4902                 :      172852 :             {
    4903                 :      172852 :               tree _r;
    4904                 :      172852 :               _r =  build_zero_cst (type);
    4905                 :      172852 :               if (TREE_SIDE_EFFECTS (captures[0]))
    4906                 :          36 :                 _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    4907                 :      172852 :               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 923, __FILE__, __LINE__, true);
    4908                 :      172852 :               return _r;
    4909                 :             :             }
    4910                 :           0 : next_after_fail1360:;
    4911                 :             :           }
    4912                 :             :       }
    4913                 :             :     }
    4914                 :    29491569 :   switch (TREE_CODE (_p0))
    4915                 :             :     {
    4916                 :     7910285 :     CASE_CONVERT:
    4917                 :     7910285 :       {
    4918                 :     7910285 :         tree _q20 = TREE_OPERAND (_p0, 0);
    4919                 :     7910285 :         switch (TREE_CODE (_p1))
    4920                 :             :           {
    4921                 :     3851948 :           CASE_CONVERT:
    4922                 :     3851948 :             {
    4923                 :     3851948 :               tree _q40 = TREE_OPERAND (_p1, 0);
    4924                 :     3851948 :               switch (TREE_CODE (_q40))
    4925                 :             :                 {
    4926                 :      102362 :                 case MULT_EXPR:
    4927                 :      102362 :                   {
    4928                 :      102362 :                     tree _q50 = TREE_OPERAND (_q40, 0);
    4929                 :      102362 :                     tree _q51 = TREE_OPERAND (_q40, 1);
    4930                 :      102362 :                     switch (TREE_CODE (_q50))
    4931                 :             :                       {
    4932                 :          21 :                       case TRUNC_DIV_EXPR:
    4933                 :          21 :                         {
    4934                 :          21 :                           tree _q60 = TREE_OPERAND (_q50, 0);
    4935                 :          21 :                           tree _q61 = TREE_OPERAND (_q50, 1);
    4936                 :          21 :                           if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q20, 0))
    4937                 :             :                             {
    4938                 :          21 :                               if ((_q51 == _q61 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q61, 0))
    4939                 :             :                                 {
    4940                 :          21 :                                   {
    4941                 :          21 :                                     tree captures[4] ATTRIBUTE_UNUSED = { _q60, _q61, _q20, _q61 };
    4942                 :          21 :                                     tree res = generic_simplify_40 (loc, type, _p0, _p1, captures);
    4943                 :          21 :                                     if (res) return res;
    4944                 :             :                                   }
    4945                 :             :                                 }
    4946                 :             :                             }
    4947                 :             :                           break;
    4948                 :             :                         }
    4949                 :      102341 :                       default:;
    4950                 :             :                       }
    4951                 :      102341 :                     switch (TREE_CODE (_q51))
    4952                 :             :                       {
    4953                 :           0 :                       case TRUNC_DIV_EXPR:
    4954                 :           0 :                         {
    4955                 :           0 :                           tree _q70 = TREE_OPERAND (_q51, 0);
    4956                 :           0 :                           tree _q71 = TREE_OPERAND (_q51, 1);
    4957                 :           0 :                           if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || operand_equal_p (_q70, _q20, 0))
    4958                 :             :                             {
    4959                 :           0 :                               if ((_q71 == _q50 && ! TREE_SIDE_EFFECTS (_q71)) || operand_equal_p (_q71, _q50, 0))
    4960                 :             :                                 {
    4961                 :           0 :                                   {
    4962                 :           0 :                                     tree captures[4] ATTRIBUTE_UNUSED = { _q70, _q71, _q20, _q50 };
    4963                 :           0 :                                     tree res = generic_simplify_40 (loc, type, _p0, _p1, captures);
    4964                 :           0 :                                     if (res) return res;
    4965                 :             :                                   }
    4966                 :             :                                 }
    4967                 :             :                             }
    4968                 :             :                           break;
    4969                 :             :                         }
    4970                 :             :                       default:;
    4971                 :             :                       }
    4972                 :             :                     break;
    4973                 :             :                   }
    4974                 :             :                 default:;
    4975                 :             :                 }
    4976                 :             :               break;
    4977                 :             :             }
    4978                 :      151710 :           case MULT_EXPR:
    4979                 :      151710 :             {
    4980                 :      151710 :               tree _q40 = TREE_OPERAND (_p1, 0);
    4981                 :      151710 :               tree _q41 = TREE_OPERAND (_p1, 1);
    4982                 :      151710 :               switch (TREE_CODE (_q40))
    4983                 :             :                 {
    4984                 :        1847 :                 case TRUNC_DIV_EXPR:
    4985                 :        1847 :                   {
    4986                 :        1847 :                     tree _q50 = TREE_OPERAND (_q40, 0);
    4987                 :        1847 :                     tree _q51 = TREE_OPERAND (_q40, 1);
    4988                 :        1847 :                     if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
    4989                 :             :                       {
    4990                 :           8 :                         if ((_q41 == _q51 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _q51, 0))
    4991                 :             :                           {
    4992                 :           8 :                             {
    4993                 :           8 :                               tree captures[4] ATTRIBUTE_UNUSED = { _q50, _q51, _q20, _q51 };
    4994                 :           8 :                               tree res = generic_simplify_40 (loc, type, _p0, _p1, captures);
    4995                 :           8 :                               if (res) return res;
    4996                 :             :                             }
    4997                 :             :                           }
    4998                 :             :                       }
    4999                 :             :                     break;
    5000                 :             :                   }
    5001                 :      151702 :                 default:;
    5002                 :             :                 }
    5003                 :      151702 :               switch (TREE_CODE (_q41))
    5004                 :             :                 {
    5005                 :           0 :                 case TRUNC_DIV_EXPR:
    5006                 :           0 :                   {
    5007                 :           0 :                     tree _q60 = TREE_OPERAND (_q41, 0);
    5008                 :           0 :                     tree _q61 = TREE_OPERAND (_q41, 1);
    5009                 :           0 :                     if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q20, 0))
    5010                 :             :                       {
    5011                 :           0 :                         if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || operand_equal_p (_q61, _q40, 0))
    5012                 :             :                           {
    5013                 :           0 :                             {
    5014                 :           0 :                               tree captures[4] ATTRIBUTE_UNUSED = { _q60, _q61, _q20, _q40 };
    5015                 :           0 :                               tree res = generic_simplify_40 (loc, type, _p0, _p1, captures);
    5016                 :           0 :                               if (res) return res;
    5017                 :             :                             }
    5018                 :             :                           }
    5019                 :             :                       }
    5020                 :             :                     break;
    5021                 :             :                   }
    5022                 :             :                 default:;
    5023                 :             :                 }
    5024                 :             :               break;
    5025                 :             :             }
    5026                 :             :           default:;
    5027                 :             :           }
    5028                 :             :         break;
    5029                 :             :       }
    5030                 :    29491540 :     default:;
    5031                 :             :     }
    5032                 :    29491540 :   switch (TREE_CODE (_p1))
    5033                 :             :     {
    5034                 :     6992978 :     CASE_CONVERT:
    5035                 :     6992978 :       {
    5036                 :     6992978 :         tree _q30 = TREE_OPERAND (_p1, 0);
    5037                 :     6992978 :         switch (TREE_CODE (_q30))
    5038                 :             :           {
    5039                 :      135190 :           case MULT_EXPR:
    5040                 :      135190 :             {
    5041                 :      135190 :               tree _q40 = TREE_OPERAND (_q30, 0);
    5042                 :      135190 :               tree _q41 = TREE_OPERAND (_q30, 1);
    5043                 :      135190 :               switch (TREE_CODE (_q40))
    5044                 :             :                 {
    5045                 :          12 :                 case TRUNC_DIV_EXPR:
    5046                 :          12 :                   {
    5047                 :          12 :                     tree _q50 = TREE_OPERAND (_q40, 0);
    5048                 :          12 :                     tree _q51 = TREE_OPERAND (_q40, 1);
    5049                 :          12 :                     if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _p0, 0))
    5050                 :             :                       {
    5051                 :           2 :                         if ((_q41 == _q51 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _q51, 0))
    5052                 :             :                           {
    5053                 :           2 :                             {
    5054                 :           2 :                               tree captures[4] ATTRIBUTE_UNUSED = { _q50, _q51, _p0, _q51 };
    5055                 :           2 :                               tree res = generic_simplify_40 (loc, type, _p0, _p1, captures);
    5056                 :           2 :                               if (res) return res;
    5057                 :             :                             }
    5058                 :             :                           }
    5059                 :             :                       }
    5060                 :             :                     break;
    5061                 :             :                   }
    5062                 :      135188 :                 default:;
    5063                 :             :                 }
    5064                 :      135188 :               switch (TREE_CODE (_q41))
    5065                 :             :                 {
    5066                 :           0 :                 case TRUNC_DIV_EXPR:
    5067                 :           0 :                   {
    5068                 :           0 :                     tree _q60 = TREE_OPERAND (_q41, 0);
    5069                 :           0 :                     tree _q61 = TREE_OPERAND (_q41, 1);
    5070                 :           0 :                     if ((_q60 == _p0 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _p0, 0))
    5071                 :             :                       {
    5072                 :           0 :                         if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || operand_equal_p (_q61, _q40, 0))
    5073                 :             :                           {
    5074                 :           0 :                             {
    5075                 :           0 :                               tree captures[4] ATTRIBUTE_UNUSED = { _q60, _q61, _p0, _q40 };
    5076                 :           0 :                               tree res = generic_simplify_40 (loc, type, _p0, _p1, captures);
    5077                 :           0 :                               if (res) return res;
    5078                 :             :                             }
    5079                 :             :                           }
    5080                 :             :                       }
    5081                 :             :                     break;
    5082                 :             :                   }
    5083                 :             :                 default:;
    5084                 :             :                 }
    5085                 :             :               break;
    5086                 :             :             }
    5087                 :             :           default:;
    5088                 :             :           }
    5089                 :             :         break;
    5090                 :             :       }
    5091                 :     2101232 :     case MULT_EXPR:
    5092                 :     2101232 :       {
    5093                 :     2101232 :         tree _q30 = TREE_OPERAND (_p1, 0);
    5094                 :     2101232 :         tree _q31 = TREE_OPERAND (_p1, 1);
    5095                 :     2101232 :         switch (TREE_CODE (_q30))
    5096                 :             :           {
    5097                 :        2238 :           case TRUNC_DIV_EXPR:
    5098                 :        2238 :             {
    5099                 :        2238 :               tree _q40 = TREE_OPERAND (_q30, 0);
    5100                 :        2238 :               tree _q41 = TREE_OPERAND (_q30, 1);
    5101                 :        2238 :               if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _p0, 0))
    5102                 :             :                 {
    5103                 :          47 :                   if ((_q31 == _q41 && ! TREE_SIDE_EFFECTS (_q31)) || operand_equal_p (_q31, _q41, 0))
    5104                 :             :                     {
    5105                 :          47 :                       {
    5106                 :          47 :                         tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q41, _p0, _q41 };
    5107                 :          47 :                         tree res = generic_simplify_40 (loc, type, _p0, _p1, captures);
    5108                 :          47 :                         if (res) return res;
    5109                 :             :                       }
    5110                 :             :                     }
    5111                 :             :                 }
    5112                 :             :               break;
    5113                 :             :             }
    5114                 :     2101185 :           default:;
    5115                 :             :           }
    5116                 :     2101185 :         switch (TREE_CODE (_q31))
    5117                 :             :           {
    5118                 :           0 :           case TRUNC_DIV_EXPR:
    5119                 :           0 :             {
    5120                 :           0 :               tree _q50 = TREE_OPERAND (_q31, 0);
    5121                 :           0 :               tree _q51 = TREE_OPERAND (_q31, 1);
    5122                 :           0 :               if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _p0, 0))
    5123                 :             :                 {
    5124                 :           0 :                   if ((_q51 == _q30 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q30, 0))
    5125                 :             :                     {
    5126                 :           0 :                       {
    5127                 :           0 :                         tree captures[4] ATTRIBUTE_UNUSED = { _q50, _q51, _p0, _q30 };
    5128                 :           0 :                         tree res = generic_simplify_40 (loc, type, _p0, _p1, captures);
    5129                 :           0 :                         if (res) return res;
    5130                 :             :                       }
    5131                 :             :                     }
    5132                 :             :                 }
    5133                 :             :               break;
    5134                 :             :             }
    5135                 :             :           default:;
    5136                 :             :           }
    5137                 :             :         break;
    5138                 :             :       }
    5139                 :    29491491 :     default:;
    5140                 :             :     }
    5141                 :    29491491 :   switch (TREE_CODE (_p0))
    5142                 :             :     {
    5143                 :     1879973 :     case MULT_EXPR:
    5144                 :     1879973 :       {
    5145                 :     1879973 :         tree _q20 = TREE_OPERAND (_p0, 0);
    5146                 :     1879973 :         tree _q21 = TREE_OPERAND (_p0, 1);
    5147                 :     1879973 :         switch (TREE_CODE (_q21))
    5148                 :             :           {
    5149                 :         599 :           case PLUS_EXPR:
    5150                 :         599 :             {
    5151                 :         599 :               tree _q40 = TREE_OPERAND (_q21, 0);
    5152                 :         599 :               tree _q41 = TREE_OPERAND (_q21, 1);
    5153                 :         599 :               switch (TREE_CODE (_q40))
    5154                 :             :                 {
    5155                 :           0 :                 case TRUNC_DIV_EXPR:
    5156                 :           0 :                   {
    5157                 :           0 :                     tree _q50 = TREE_OPERAND (_q40, 0);
    5158                 :           0 :                     tree _q51 = TREE_OPERAND (_q40, 1);
    5159                 :           0 :                     if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
    5160                 :             :                       {
    5161                 :           0 :                         if (integer_onep (_q41))
    5162                 :             :                           {
    5163                 :           0 :                             if ((_p1 == _q50 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q50, 0) && types_match (_p1, _q50)))
    5164                 :             :                               {
    5165                 :           0 :                                 {
    5166                 :           0 :                                   tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q40, _q50 };
    5167                 :           0 :                                   tree res = generic_simplify_41 (loc, type, _p0, _p1, captures);
    5168                 :           0 :                                   if (res) return res;
    5169                 :             :                                 }
    5170                 :             :                               }
    5171                 :             :                           }
    5172                 :             :                       }
    5173                 :             :                     break;
    5174                 :             :                   }
    5175                 :             :                 default:;
    5176                 :             :                 }
    5177                 :             :               break;
    5178                 :             :             }
    5179                 :     1879973 :           default:;
    5180                 :             :           }
    5181                 :     1879973 :         switch (TREE_CODE (_q20))
    5182                 :             :           {
    5183                 :      103073 :           case PLUS_EXPR:
    5184                 :      103073 :             {
    5185                 :      103073 :               tree _q30 = TREE_OPERAND (_q20, 0);
    5186                 :      103073 :               tree _q31 = TREE_OPERAND (_q20, 1);
    5187                 :      103073 :               switch (TREE_CODE (_q30))
    5188                 :             :                 {
    5189                 :           1 :                 case TRUNC_DIV_EXPR:
    5190                 :           1 :                   {
    5191                 :           1 :                     tree _q40 = TREE_OPERAND (_q30, 0);
    5192                 :           1 :                     tree _q41 = TREE_OPERAND (_q30, 1);
    5193                 :           1 :                     if (integer_onep (_q31))
    5194                 :             :                       {
    5195                 :           1 :                         if ((_q21 == _q41 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q41, 0) && types_match (_q21, _q41)))
    5196                 :             :                           {
    5197                 :           1 :                             if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
    5198                 :             :                               {
    5199                 :           1 :                                 {
    5200                 :           1 :                                   tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q41, _q20, _q30, _q40 };
    5201                 :           1 :                                   tree res = generic_simplify_41 (loc, type, _p0, _p1, captures);
    5202                 :           1 :                                   if (res) return res;
    5203                 :             :                                 }
    5204                 :             :                               }
    5205                 :             :                           }
    5206                 :             :                       }
    5207                 :             :                     break;
    5208                 :             :                   }
    5209                 :             :                 default:;
    5210                 :             :                 }
    5211                 :             :               break;
    5212                 :             :             }
    5213                 :             :           default:;
    5214                 :             :           }
    5215                 :             :         break;
    5216                 :             :       }
    5217                 :        1262 :     case LSHIFT_EXPR:
    5218                 :        1262 :       {
    5219                 :        1262 :         tree _q20 = TREE_OPERAND (_p0, 0);
    5220                 :        1262 :         tree _q21 = TREE_OPERAND (_p0, 1);
    5221                 :        1262 :         switch (TREE_CODE (_p1))
    5222                 :             :           {
    5223                 :           0 :           case LSHIFT_EXPR:
    5224                 :           0 :             {
    5225                 :           0 :               tree _q50 = TREE_OPERAND (_p1, 0);
    5226                 :           0 :               tree _q51 = TREE_OPERAND (_p1, 1);
    5227                 :           0 :               if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
    5228                 :             :                 {
    5229                 :           0 :                   {
    5230                 :           0 :                     tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
    5231                 :           0 :                     tree res = generic_simplify_6 (loc, type, _p0, _p1, captures, MINUS_EXPR);
    5232                 :           0 :                     if (res) return res;
    5233                 :             :                   }
    5234                 :             :                 }
    5235                 :             :               break;
    5236                 :             :             }
    5237                 :             :           default:;
    5238                 :             :           }
    5239                 :             :         break;
    5240                 :             :       }
    5241                 :        1187 :     case BIT_AND_EXPR:
    5242                 :        1187 :       {
    5243                 :        1187 :         tree _q20 = TREE_OPERAND (_p0, 0);
    5244                 :        1187 :         tree _q21 = TREE_OPERAND (_p0, 1);
    5245                 :        1187 :         switch (TREE_CODE (_q21))
    5246                 :             :           {
    5247                 :           0 :           case BIT_NOT_EXPR:
    5248                 :           0 :             {
    5249                 :           0 :               tree _q40 = TREE_OPERAND (_q21, 0);
    5250                 :           0 :               switch (TREE_CODE (_p1))
    5251                 :             :                 {
    5252                 :           0 :                 case BIT_AND_EXPR:
    5253                 :           0 :                   {
    5254                 :           0 :                     tree _q60 = TREE_OPERAND (_p1, 0);
    5255                 :           0 :                     tree _q61 = TREE_OPERAND (_p1, 1);
    5256                 :           0 :                     if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
    5257                 :             :                       {
    5258                 :           0 :                         if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
    5259                 :             :                           {
    5260                 :           0 :                             {
    5261                 :           0 :                               tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q40, _p1 };
    5262                 :           0 :                               tree res = generic_simplify_42 (loc, type, _p0, _p1, captures);
    5263                 :           0 :                               if (res) return res;
    5264                 :             :                             }
    5265                 :             :                           }
    5266                 :             :                       }
    5267                 :           0 :                     if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
    5268                 :             :                       {
    5269                 :           0 :                         if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
    5270                 :             :                           {
    5271                 :           0 :                             {
    5272                 :           0 :                               tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q40, _p1 };
    5273                 :           0 :                               tree res = generic_simplify_42 (loc, type, _p0, _p1, captures);
    5274                 :           0 :                               if (res) return res;
    5275                 :             :                             }
    5276                 :             :                           }
    5277                 :             :                       }
    5278                 :             :                     break;
    5279                 :             :                   }
    5280                 :             :                 default:;
    5281                 :             :                 }
    5282                 :             :               break;
    5283                 :             :             }
    5284                 :        1187 :           default:;
    5285                 :             :           }
    5286                 :        1187 :         switch (TREE_CODE (_q20))
    5287                 :             :           {
    5288                 :          27 :           case BIT_NOT_EXPR:
    5289                 :          27 :             {
    5290                 :          27 :               tree _q30 = TREE_OPERAND (_q20, 0);
    5291                 :          27 :               switch (TREE_CODE (_p1))
    5292                 :             :                 {
    5293                 :          21 :                 case BIT_AND_EXPR:
    5294                 :          21 :                   {
    5295                 :          21 :                     tree _q60 = TREE_OPERAND (_p1, 0);
    5296                 :          21 :                     tree _q61 = TREE_OPERAND (_p1, 1);
    5297                 :          21 :                     if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
    5298                 :             :                       {
    5299                 :           0 :                         if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
    5300                 :             :                           {
    5301                 :           0 :                             {
    5302                 :           0 :                               tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q21, _q30, _p1 };
    5303                 :           0 :                               tree res = generic_simplify_42 (loc, type, _p0, _p1, captures);
    5304                 :           0 :                               if (res) return res;
    5305                 :             :                             }
    5306                 :             :                           }
    5307                 :             :                       }
    5308                 :          21 :                     if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
    5309                 :             :                       {
    5310                 :          21 :                         if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
    5311                 :             :                           {
    5312                 :          21 :                             {
    5313                 :          21 :                               tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q21, _q30, _p1 };
    5314                 :          21 :                               tree res = generic_simplify_42 (loc, type, _p0, _p1, captures);
    5315                 :          21 :                               if (res) return res;
    5316                 :             :                             }
    5317                 :             :                           }
    5318                 :             :                       }
    5319                 :             :                     break;
    5320                 :             :                   }
    5321                 :             :                 default:;
    5322                 :             :                 }
    5323                 :             :               break;
    5324                 :             :             }
    5325                 :        1166 :           default:;
    5326                 :             :           }
    5327                 :        1166 :         switch (TREE_CODE (_q21))
    5328                 :             :           {
    5329                 :        1126 :           case INTEGER_CST:
    5330                 :        1126 :             {
    5331                 :        1126 :               switch (TREE_CODE (_p1))
    5332                 :             :                 {
    5333                 :          22 :                 case BIT_AND_EXPR:
    5334                 :          22 :                   {
    5335                 :          22 :                     tree _q50 = TREE_OPERAND (_p1, 0);
    5336                 :          22 :                     tree _q51 = TREE_OPERAND (_p1, 1);
    5337                 :          22 :                     if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
    5338                 :             :                       {
    5339                 :           0 :                         switch (TREE_CODE (_q51))
    5340                 :             :                           {
    5341                 :           0 :                           case INTEGER_CST:
    5342                 :           0 :                             {
    5343                 :           0 :                               {
    5344                 :           0 :                                 tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
    5345                 :           0 :                                 if (~wi::to_wide (captures[2]) == wi::to_wide (captures[4])
    5346                 :             : )
    5347                 :             :                                   {
    5348                 :           0 :                                     if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1361;
    5349                 :           0 :                                     {
    5350                 :           0 :                                       if (! tree_invariant_p (captures[4])) goto next_after_fail1361;
    5351                 :           0 :                                       tree res_op0;
    5352                 :           0 :                                       {
    5353                 :           0 :                                         tree _o1[2], _r1;
    5354                 :           0 :                                         _o1[0] = captures[1];
    5355                 :           0 :                                         _o1[1] = unshare_expr (captures[4]);
    5356                 :           0 :                                         _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    5357                 :           0 :                                         res_op0 = _r1;
    5358                 :             :                                       }
    5359                 :           0 :                                       tree res_op1;
    5360                 :           0 :                                       res_op1 = captures[4];
    5361                 :           0 :                                       tree _r;
    5362                 :           0 :                                       _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
    5363                 :           0 :                                       if (TREE_SIDE_EFFECTS (captures[2]))
    5364                 :           0 :                                         _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    5365                 :           0 :                                       if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 924, __FILE__, __LINE__, true);
    5366                 :           0 :                                       return _r;
    5367                 :             :                                     }
    5368                 :           0 : next_after_fail1361:;
    5369                 :             :                                   }
    5370                 :             :                               }
    5371                 :           0 :                               break;
    5372                 :             :                             }
    5373                 :             :                           default:;
    5374                 :             :                           }
    5375                 :             :                       }
    5376                 :             :                     break;
    5377                 :             :                   }
    5378                 :             :                 default:;
    5379                 :             :                 }
    5380                 :             :               break;
    5381                 :             :             }
    5382                 :        1166 :           default:;
    5383                 :             :           }
    5384                 :        1166 :         switch (TREE_CODE (_p1))
    5385                 :             :           {
    5386                 :          25 :           case BIT_AND_EXPR:
    5387                 :          25 :             {
    5388                 :          25 :               tree _q50 = TREE_OPERAND (_p1, 0);
    5389                 :          25 :               tree _q51 = TREE_OPERAND (_p1, 1);
    5390                 :          25 :               if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
    5391                 :             :                 {
    5392                 :           0 :                   switch (TREE_CODE (_q51))
    5393                 :             :                     {
    5394                 :           0 :                     case BIT_NOT_EXPR:
    5395                 :           0 :                       {
    5396                 :           0 :                         tree _q70 = TREE_OPERAND (_q51, 0);
    5397                 :           0 :                         if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
    5398                 :             :                           {
    5399                 :           0 :                             {
    5400                 :           0 :                               tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
    5401                 :           0 :                               tree res = generic_simplify_43 (loc, type, _p0, _p1, captures);
    5402                 :           0 :                               if (res) return res;
    5403                 :             :                             }
    5404                 :             :                           }
    5405                 :             :                         break;
    5406                 :             :                       }
    5407                 :             :                     default:;
    5408                 :             :                     }
    5409                 :             :                 }
    5410                 :          25 :               switch (TREE_CODE (_q50))
    5411                 :             :                 {
    5412                 :           0 :                 case BIT_NOT_EXPR:
    5413                 :           0 :                   {
    5414                 :           0 :                     tree _q60 = TREE_OPERAND (_q50, 0);
    5415                 :           0 :                     if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
    5416                 :             :                       {
    5417                 :           0 :                         if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
    5418                 :             :                           {
    5419                 :           0 :                             {
    5420                 :           0 :                               tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
    5421                 :           0 :                               tree res = generic_simplify_43 (loc, type, _p0, _p1, captures);
    5422                 :           0 :                               if (res) return res;
    5423                 :             :                             }
    5424                 :             :                           }
    5425                 :             :                       }
    5426                 :           0 :                     if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
    5427                 :             :                       {
    5428                 :           0 :                         if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
    5429                 :             :                           {
    5430                 :           0 :                             {
    5431                 :           0 :                               tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1 };
    5432                 :           0 :                               tree res = generic_simplify_43 (loc, type, _p0, _p1, captures);
    5433                 :           0 :                               if (res) return res;
    5434                 :             :                             }
    5435                 :             :                           }
    5436                 :             :                       }
    5437                 :             :                     break;
    5438                 :             :                   }
    5439                 :          25 :                 default:;
    5440                 :             :                 }
    5441                 :          25 :               if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
    5442                 :             :                 {
    5443                 :           0 :                   switch (TREE_CODE (_q51))
    5444                 :             :                     {
    5445                 :           0 :                     case BIT_NOT_EXPR:
    5446                 :           0 :                       {
    5447                 :           0 :                         tree _q70 = TREE_OPERAND (_q51, 0);
    5448                 :           0 :                         if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
    5449                 :             :                           {
    5450                 :           0 :                             {
    5451                 :           0 :                               tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1 };
    5452                 :           0 :                               tree res = generic_simplify_43 (loc, type, _p0, _p1, captures);
    5453                 :           0 :                               if (res) return res;
    5454                 :             :                             }
    5455                 :             :                           }
    5456                 :             :                         break;
    5457                 :             :                       }
    5458                 :             :                     default:;
    5459                 :             :                     }
    5460                 :             :                 }
    5461                 :             :               break;
    5462                 :             :             }
    5463                 :           2 :           case PLUS_EXPR:
    5464                 :           2 :             {
    5465                 :           2 :               tree _q50 = TREE_OPERAND (_p1, 0);
    5466                 :           2 :               tree _q51 = TREE_OPERAND (_p1, 1);
    5467                 :           2 :               switch (TREE_CODE (_q50))
    5468                 :             :                 {
    5469                 :           2 :                 case BIT_IOR_EXPR:
    5470                 :           2 :                   {
    5471                 :           2 :                     tree _q60 = TREE_OPERAND (_q50, 0);
    5472                 :           2 :                     tree _q61 = TREE_OPERAND (_q50, 1);
    5473                 :           2 :                     if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
    5474                 :             :                       {
    5475                 :           2 :                         if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
    5476                 :             :                           {
    5477                 :           2 :                             if (integer_onep (_q51))
    5478                 :             :                               {
    5479                 :           2 :                                 {
    5480                 :           2 :                                   tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
    5481                 :           2 :                                   tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
    5482                 :           2 :                                   if (res) return res;
    5483                 :             :                                 }
    5484                 :             :                               }
    5485                 :             :                           }
    5486                 :             :                       }
    5487                 :           0 :                     if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
    5488                 :             :                       {
    5489                 :           0 :                         if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
    5490                 :             :                           {
    5491                 :           0 :                             if (integer_onep (_q51))
    5492                 :             :                               {
    5493                 :           0 :                                 {
    5494                 :           0 :                                   tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
    5495                 :           0 :                                   tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
    5496                 :           0 :                                   if (res) return res;
    5497                 :             :                                 }
    5498                 :             :                               }
    5499                 :             :                           }
    5500                 :             :                       }
    5501                 :             :                     break;
    5502                 :             :                   }
    5503                 :           0 :                 default:;
    5504                 :             :                 }
    5505                 :           0 :             {
    5506                 :           0 :               tree _q50_pops[1];
    5507                 :           0 :               if (tree_nop_convert (_q50, _q50_pops))
    5508                 :             :                 {
    5509                 :           0 :                   tree _q60 = _q50_pops[0];
    5510                 :           0 :                   switch (TREE_CODE (_q60))
    5511                 :             :                     {
    5512                 :           0 :                     case BIT_IOR_EXPR:
    5513                 :           0 :                       {
    5514                 :           0 :                         tree _q70 = TREE_OPERAND (_q60, 0);
    5515                 :           0 :                         tree _q71 = TREE_OPERAND (_q60, 1);
    5516                 :           0 :                         if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
    5517                 :             :                           {
    5518                 :           0 :                             if ((_q71 == _q21 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q21, 0) && types_match (_q71, _q21)))
    5519                 :             :                               {
    5520                 :           0 :                                 if (integer_onep (_q51))
    5521                 :             :                                   {
    5522                 :           0 :                                     {
    5523                 :           0 :                                       tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
    5524                 :           0 :                                       tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
    5525                 :           0 :                                       if (res) return res;
    5526                 :             :                                     }
    5527                 :             :                                   }
    5528                 :             :                               }
    5529                 :             :                           }
    5530                 :           0 :                         if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
    5531                 :             :                           {
    5532                 :           0 :                             if ((_q71 == _q20 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q20, 0) && types_match (_q71, _q20)))
    5533                 :             :                               {
    5534                 :           0 :                                 if (integer_onep (_q51))
    5535                 :             :                                   {
    5536                 :           0 :                                     {
    5537                 :           0 :                                       tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
    5538                 :           0 :                                       tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
    5539                 :           0 :                                       if (res) return res;
    5540                 :             :                                     }
    5541                 :             :                                   }
    5542                 :             :                               }
    5543                 :             :                           }
    5544                 :             :                         break;
    5545                 :             :                       }
    5546                 :             :                     default:;
    5547                 :             :                     }
    5548                 :             :                 }
    5549                 :             :             }
    5550                 :           0 :               break;
    5551                 :             :             }
    5552                 :        1164 :           default:;
    5553                 :             :           }
    5554                 :        1164 :       {
    5555                 :        1164 :         tree _p1_pops[1];
    5556                 :        1164 :         if (tree_nop_convert (_p1, _p1_pops))
    5557                 :             :           {
    5558                 :           7 :             tree _q50 = _p1_pops[0];
    5559                 :           7 :             switch (TREE_CODE (_q50))
    5560                 :             :               {
    5561                 :           0 :               case PLUS_EXPR:
    5562                 :           0 :                 {
    5563                 :           0 :                   tree _q60 = TREE_OPERAND (_q50, 0);
    5564                 :           0 :                   tree _q61 = TREE_OPERAND (_q50, 1);
    5565                 :           0 :                   switch (TREE_CODE (_q60))
    5566                 :             :                     {
    5567                 :           0 :                     case BIT_IOR_EXPR:
    5568                 :           0 :                       {
    5569                 :           0 :                         tree _q70 = TREE_OPERAND (_q60, 0);
    5570                 :           0 :                         tree _q71 = TREE_OPERAND (_q60, 1);
    5571                 :           0 :                         if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
    5572                 :             :                           {
    5573                 :           0 :                             if ((_q71 == _q21 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q21, 0) && types_match (_q71, _q21)))
    5574                 :             :                               {
    5575                 :           0 :                                 if (integer_onep (_q61))
    5576                 :             :                                   {
    5577                 :           0 :                                     {
    5578                 :           0 :                                       tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
    5579                 :           0 :                                       tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
    5580                 :           0 :                                       if (res) return res;
    5581                 :             :                                     }
    5582                 :             :                                   }
    5583                 :             :                               }
    5584                 :             :                           }
    5585                 :           0 :                         if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
    5586                 :             :                           {
    5587                 :           0 :                             if ((_q71 == _q20 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q20, 0) && types_match (_q71, _q20)))
    5588                 :             :                               {
    5589                 :           0 :                                 if (integer_onep (_q61))
    5590                 :             :                                   {
    5591                 :           0 :                                     {
    5592                 :           0 :                                       tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
    5593                 :           0 :                                       tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
    5594                 :           0 :                                       if (res) return res;
    5595                 :             :                                     }
    5596                 :             :                                   }
    5597                 :             :                               }
    5598                 :             :                           }
    5599                 :             :                         break;
    5600                 :             :                       }
    5601                 :           0 :                     default:;
    5602                 :             :                     }
    5603                 :           0 :                 {
    5604                 :           0 :                   tree _q60_pops[1];
    5605                 :           0 :                   if (tree_nop_convert (_q60, _q60_pops))
    5606                 :             :                     {
    5607                 :           0 :                       tree _q70 = _q60_pops[0];
    5608                 :           0 :                       switch (TREE_CODE (_q70))
    5609                 :             :                         {
    5610                 :           0 :                         case BIT_IOR_EXPR:
    5611                 :           0 :                           {
    5612                 :           0 :                             tree _q80 = TREE_OPERAND (_q70, 0);
    5613                 :           0 :                             tree _q81 = TREE_OPERAND (_q70, 1);
    5614                 :           0 :                             if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
    5615                 :             :                               {
    5616                 :           0 :                                 if ((_q81 == _q21 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q21, 0) && types_match (_q81, _q21)))
    5617                 :             :                                   {
    5618                 :           0 :                                     if (integer_onep (_q61))
    5619                 :             :                                       {
    5620                 :           0 :                                         {
    5621                 :           0 :                                           tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
    5622                 :           0 :                                           tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
    5623                 :           0 :                                           if (res) return res;
    5624                 :             :                                         }
    5625                 :             :                                       }
    5626                 :             :                                   }
    5627                 :             :                               }
    5628                 :           0 :                             if ((_q80 == _q21 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q21, 0) && types_match (_q80, _q21)))
    5629                 :             :                               {
    5630                 :           0 :                                 if ((_q81 == _q20 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q20, 0) && types_match (_q81, _q20)))
    5631                 :             :                                   {
    5632                 :           0 :                                     if (integer_onep (_q61))
    5633                 :             :                                       {
    5634                 :           0 :                                         {
    5635                 :           0 :                                           tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
    5636                 :           0 :                                           tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
    5637                 :           0 :                                           if (res) return res;
    5638                 :             :                                         }
    5639                 :             :                                       }
    5640                 :             :                                   }
    5641                 :             :                               }
    5642                 :             :                             break;
    5643                 :             :                           }
    5644                 :             :                         default:;
    5645                 :             :                         }
    5646                 :             :                     }
    5647                 :             :                 }
    5648                 :           0 :                   break;
    5649                 :             :                 }
    5650                 :             :               default:;
    5651                 :             :               }
    5652                 :             :           }
    5653                 :             :       }
    5654                 :        1164 :         break;
    5655                 :             :       }
    5656                 :        2837 :     case BIT_NOT_EXPR:
    5657                 :        2837 :       {
    5658                 :        2837 :         tree _q20 = TREE_OPERAND (_p0, 0);
    5659                 :        2837 :         switch (TREE_CODE (_p1))
    5660                 :             :           {
    5661                 :          22 :           case BIT_NOT_EXPR:
    5662                 :          22 :             {
    5663                 :          22 :               tree _q40 = TREE_OPERAND (_p1, 0);
    5664                 :          22 :               {
    5665                 :          22 :                 tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
    5666                 :          22 :                 if (!TYPE_OVERFLOW_SANITIZED (type)
    5667                 :             : )
    5668                 :             :                   {
    5669                 :           9 :                     {
    5670                 :           9 :  tree utype = unsigned_type_for (type);
    5671                 :           9 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1362;
    5672                 :           9 :                         {
    5673                 :           9 :                           tree res_op0;
    5674                 :           9 :                           {
    5675                 :           9 :                             tree _o1[2], _r1;
    5676                 :           9 :                             {
    5677                 :           9 :                               tree _o2[1], _r2;
    5678                 :           9 :                               _o2[0] = captures[1];
    5679                 :           9 :                               if (TREE_TYPE (_o2[0]) != utype)
    5680                 :             :                                 {
    5681                 :           9 :                                   _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
    5682                 :             :                                 }
    5683                 :             :                               else
    5684                 :             :                                 _r2 = _o2[0];
    5685                 :           9 :                               _o1[0] = _r2;
    5686                 :             :                             }
    5687                 :           9 :                             {
    5688                 :           9 :                               tree _o2[1], _r2;
    5689                 :           9 :                               _o2[0] = captures[0];
    5690                 :           9 :                               if (TREE_TYPE (_o2[0]) != utype)
    5691                 :             :                                 {
    5692                 :           9 :                                   _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
    5693                 :             :                                 }
    5694                 :             :                               else
    5695                 :             :                                 _r2 = _o2[0];
    5696                 :           9 :                               _o1[1] = _r2;
    5697                 :             :                             }
    5698                 :           9 :                             _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    5699                 :           9 :                             res_op0 = _r1;
    5700                 :             :                           }
    5701                 :           9 :                           tree _r;
    5702                 :           9 :                           _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
    5703                 :           9 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 925, __FILE__, __LINE__, true);
    5704                 :           9 :                           return _r;
    5705                 :             :                         }
    5706                 :           0 : next_after_fail1362:;
    5707                 :             :                     }
    5708                 :             :                   }
    5709                 :             :               }
    5710                 :          13 :               break;
    5711                 :             :             }
    5712                 :             :           default:;
    5713                 :             :           }
    5714                 :             :         break;
    5715                 :             :       }
    5716                 :     2180232 :     case PLUS_EXPR:
    5717                 :     2180232 :       {
    5718                 :     2180232 :         tree _q20 = TREE_OPERAND (_p0, 0);
    5719                 :     2180232 :         tree _q21 = TREE_OPERAND (_p0, 1);
    5720                 :     2180232 :         switch (TREE_CODE (_p1))
    5721                 :             :           {
    5722                 :          14 :           case BIT_IOR_EXPR:
    5723                 :          14 :             {
    5724                 :          14 :               tree _q50 = TREE_OPERAND (_p1, 0);
    5725                 :          14 :               tree _q51 = TREE_OPERAND (_p1, 1);
    5726                 :          14 :               if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
    5727                 :             :                 {
    5728                 :          13 :                   if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
    5729                 :             :                     {
    5730                 :          13 :                       {
    5731                 :          13 :                         tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
    5732                 :          13 :                         if (!TYPE_OVERFLOW_SANITIZED (type) && !TYPE_OVERFLOW_TRAPS (type)
    5733                 :          13 :  && !TYPE_SATURATING (type)
    5734                 :             : )
    5735                 :             :                           {
    5736                 :           0 :                             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1363;
    5737                 :           0 :                             {
    5738                 :           0 :                               tree res_op0;
    5739                 :           0 :                               res_op0 = captures[0];
    5740                 :           0 :                               tree res_op1;
    5741                 :           0 :                               res_op1 = captures[1];
    5742                 :           0 :                               tree _r;
    5743                 :           0 :                               _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
    5744                 :           0 :                               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 926, __FILE__, __LINE__, true);
    5745                 :           0 :                               return _r;
    5746                 :             :                             }
    5747                 :           0 : next_after_fail1363:;
    5748                 :             :                           }
    5749                 :             :                       }
    5750                 :             :                     }
    5751                 :             :                 }
    5752                 :             :               break;
    5753                 :             :             }
    5754                 :          68 :           case BIT_AND_EXPR:
    5755                 :          68 :             {
    5756                 :          68 :               tree _q50 = TREE_OPERAND (_p1, 0);
    5757                 :          68 :               tree _q51 = TREE_OPERAND (_p1, 1);
    5758                 :          68 :               if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
    5759                 :             :                 {
    5760                 :          25 :                   if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
    5761                 :             :                     {
    5762                 :          13 :                       {
    5763                 :          13 :                         tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
    5764                 :          13 :                         if (!TYPE_OVERFLOW_SANITIZED (type) && !TYPE_OVERFLOW_TRAPS (type)
    5765                 :          13 :  && !TYPE_SATURATING (type)
    5766                 :             : )
    5767                 :             :                           {
    5768                 :           0 :                             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1364;
    5769                 :           0 :                             {
    5770                 :           0 :                               tree res_op0;
    5771                 :           0 :                               res_op0 = captures[0];
    5772                 :           0 :                               tree res_op1;
    5773                 :           0 :                               res_op1 = captures[1];
    5774                 :           0 :                               tree _r;
    5775                 :           0 :                               _r = fold_build2_loc (loc, BIT_IOR_EXPR, type, res_op0, res_op1);
    5776                 :           0 :                               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 927, __FILE__, __LINE__, true);
    5777                 :           0 :                               return _r;
    5778                 :             :                             }
    5779                 :           0 : next_after_fail1364:;
    5780                 :             :                           }
    5781                 :             :                       }
    5782                 :             :                     }
    5783                 :             :                 }
    5784                 :             :               break;
    5785                 :             :             }
    5786                 :     2180232 :           default:;
    5787                 :             :           }
    5788                 :     2180232 :         switch (TREE_CODE (_q20))
    5789                 :             :           {
    5790                 :         593 :           case BIT_AND_EXPR:
    5791                 :         593 :             {
    5792                 :         593 :               tree _q30 = TREE_OPERAND (_q20, 0);
    5793                 :         593 :               tree _q31 = TREE_OPERAND (_q20, 1);
    5794                 :         593 :               if (integer_all_onesp (_q21))
    5795                 :             :                 {
    5796                 :           1 :                   switch (TREE_CODE (_p1))
    5797                 :             :                     {
    5798                 :           1 :                     case BIT_IOR_EXPR:
    5799                 :           1 :                       {
    5800                 :           1 :                         tree _q70 = TREE_OPERAND (_p1, 0);
    5801                 :           1 :                         tree _q71 = TREE_OPERAND (_p1, 1);
    5802                 :           1 :                         if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
    5803                 :             :                           {
    5804                 :           1 :                             if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
    5805                 :             :                               {
    5806                 :           1 :                                 {
    5807                 :           1 :                                   tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q31 };
    5808                 :           1 :                                   tree res = generic_simplify_45 (loc, type, _p0, _p1, captures);
    5809                 :           1 :                                   if (res) return res;
    5810                 :             :                                 }
    5811                 :             :                               }
    5812                 :             :                           }
    5813                 :           0 :                         if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
    5814                 :             :                           {
    5815                 :           0 :                             if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
    5816                 :             :                               {
    5817                 :           0 :                                 {
    5818                 :           0 :                                   tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q31, _q30 };
    5819                 :           0 :                                   tree res = generic_simplify_45 (loc, type, _p0, _p1, captures);
    5820                 :           0 :                                   if (res) return res;
    5821                 :             :                                 }
    5822                 :             :                               }
    5823                 :             :                           }
    5824                 :             :                         break;
    5825                 :             :                       }
    5826                 :           0 :                     default:;
    5827                 :             :                     }
    5828                 :           0 :                 {
    5829                 :           0 :                   tree _p1_pops[1];
    5830                 :           0 :                   if (tree_nop_convert (_p1, _p1_pops))
    5831                 :             :                     {
    5832                 :           0 :                       tree _q70 = _p1_pops[0];
    5833                 :           0 :                       switch (TREE_CODE (_q70))
    5834                 :             :                         {
    5835                 :           0 :                         case BIT_IOR_EXPR:
    5836                 :           0 :                           {
    5837                 :           0 :                             tree _q80 = TREE_OPERAND (_q70, 0);
    5838                 :           0 :                             tree _q81 = TREE_OPERAND (_q70, 1);
    5839                 :           0 :                             if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
    5840                 :             :                               {
    5841                 :           0 :                                 if ((_q81 == _q31 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q31, 0) && types_match (_q81, _q31)))
    5842                 :             :                                   {
    5843                 :           0 :                                     {
    5844                 :           0 :                                       tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q31 };
    5845                 :           0 :                                       tree res = generic_simplify_45 (loc, type, _p0, _p1, captures);
    5846                 :           0 :                                       if (res) return res;
    5847                 :             :                                     }
    5848                 :             :                                   }
    5849                 :             :                               }
    5850                 :           0 :                             if ((_q80 == _q31 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q31, 0) && types_match (_q80, _q31)))
    5851                 :             :                               {
    5852                 :           0 :                                 if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
    5853                 :             :                                   {
    5854                 :           0 :                                     {
    5855                 :           0 :                                       tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q31, _q30 };
    5856                 :           0 :                                       tree res = generic_simplify_45 (loc, type, _p0, _p1, captures);
    5857                 :           0 :                                       if (res) return res;
    5858                 :             :                                     }
    5859                 :             :                                   }
    5860                 :             :                               }
    5861                 :             :                             break;
    5862                 :             :                           }
    5863                 :             :                         default:;
    5864                 :             :                         }
    5865                 :             :                     }
    5866                 :             :                 }
    5867                 :             :                 }
    5868                 :             :               break;
    5869                 :             :             }
    5870                 :     2180231 :           default:;
    5871                 :             :           }
    5872                 :     2180231 :       {
    5873                 :     2180231 :         tree _q20_pops[1];
    5874                 :     2180231 :         if (tree_nop_convert (_q20, _q20_pops))
    5875                 :             :           {
    5876                 :      546305 :             tree _q30 = _q20_pops[0];
    5877                 :      546305 :             switch (TREE_CODE (_q30))
    5878                 :             :               {
    5879                 :           0 :               case BIT_AND_EXPR:
    5880                 :           0 :                 {
    5881                 :           0 :                   tree _q40 = TREE_OPERAND (_q30, 0);
    5882                 :           0 :                   tree _q41 = TREE_OPERAND (_q30, 1);
    5883                 :           0 :                   if (integer_all_onesp (_q21))
    5884                 :             :                     {
    5885                 :           0 :                       switch (TREE_CODE (_p1))
    5886                 :             :                         {
    5887                 :           0 :                         case BIT_IOR_EXPR:
    5888                 :           0 :                           {
    5889                 :           0 :                             tree _q80 = TREE_OPERAND (_p1, 0);
    5890                 :           0 :                             tree _q81 = TREE_OPERAND (_p1, 1);
    5891                 :           0 :                             if ((_q80 == _q40 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q40, 0) && types_match (_q80, _q40)))
    5892                 :             :                               {
    5893                 :           0 :                                 if ((_q81 == _q41 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q41, 0) && types_match (_q81, _q41)))
    5894                 :             :                                   {
    5895                 :           0 :                                     {
    5896                 :           0 :                                       tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q40, _q41 };
    5897                 :           0 :                                       tree res = generic_simplify_45 (loc, type, _p0, _p1, captures);
    5898                 :           0 :                                       if (res) return res;
    5899                 :             :                                     }
    5900                 :             :                                   }
    5901                 :             :                               }
    5902                 :           0 :                             if ((_q80 == _q41 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q41, 0) && types_match (_q80, _q41)))
    5903                 :             :                               {
    5904                 :           0 :                                 if ((_q81 == _q40 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q40, 0) && types_match (_q81, _q40)))
    5905                 :             :                                   {
    5906                 :           0 :                                     {
    5907                 :           0 :                                       tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q41, _q40 };
    5908                 :           0 :                                       tree res = generic_simplify_45 (loc, type, _p0, _p1, captures);
    5909                 :           0 :                                       if (res) return res;
    5910                 :             :                                     }
    5911                 :             :                                   }
    5912                 :             :                               }
    5913                 :             :                             break;
    5914                 :             :                           }
    5915                 :           0 :                         default:;
    5916                 :             :                         }
    5917                 :           0 :                     {
    5918                 :           0 :                       tree _p1_pops[1];
    5919                 :           0 :                       if (tree_nop_convert (_p1, _p1_pops))
    5920                 :             :                         {
    5921                 :           0 :                           tree _q80 = _p1_pops[0];
    5922                 :           0 :                           switch (TREE_CODE (_q80))
    5923                 :             :                             {
    5924                 :           0 :                             case BIT_IOR_EXPR:
    5925                 :           0 :                               {
    5926                 :           0 :                                 tree _q90 = TREE_OPERAND (_q80, 0);
    5927                 :           0 :                                 tree _q91 = TREE_OPERAND (_q80, 1);
    5928                 :           0 :                                 if ((_q90 == _q40 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q40, 0) && types_match (_q90, _q40)))
    5929                 :             :                                   {
    5930                 :           0 :                                     if ((_q91 == _q41 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q41, 0) && types_match (_q91, _q41)))
    5931                 :             :                                       {
    5932                 :           0 :                                         {
    5933                 :           0 :                                           tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q40, _q41 };
    5934                 :           0 :                                           tree res = generic_simplify_45 (loc, type, _p0, _p1, captures);
    5935                 :           0 :                                           if (res) return res;
    5936                 :             :                                         }
    5937                 :             :                                       }
    5938                 :             :                                   }
    5939                 :           0 :                                 if ((_q90 == _q41 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q41, 0) && types_match (_q90, _q41)))
    5940                 :             :                                   {
    5941                 :           0 :                                     if ((_q91 == _q40 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q40, 0) && types_match (_q91, _q40)))
    5942                 :             :                                       {
    5943                 :           0 :                                         {
    5944                 :           0 :                                           tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q41, _q40 };
    5945                 :           0 :                                           tree res = generic_simplify_45 (loc, type, _p0, _p1, captures);
    5946                 :           0 :                                           if (res) return res;
    5947                 :             :                                         }
    5948                 :             :                                       }
    5949                 :             :                                   }
    5950                 :             :                                 break;
    5951                 :             :                               }
    5952                 :             :                             default:;
    5953                 :             :                             }
    5954                 :             :                         }
    5955                 :             :                     }
    5956                 :             :                     }
    5957                 :             :                   break;
    5958                 :             :                 }
    5959                 :             :               default:;
    5960                 :             :               }
    5961                 :             :           }
    5962                 :             :       }
    5963                 :     2180231 :         break;
    5964                 :             :       }
    5965                 :          77 :     case BIT_IOR_EXPR:
    5966                 :          77 :       {
    5967                 :          77 :         tree _q20 = TREE_OPERAND (_p0, 0);
    5968                 :          77 :         tree _q21 = TREE_OPERAND (_p0, 1);
    5969                 :          77 :         if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
    5970                 :             :           {
    5971                 :           5 :             {
    5972                 :           5 :               tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
    5973                 :           5 :               tree res = generic_simplify_46 (loc, type, _p0, _p1, captures);
    5974                 :           5 :               if (res) return res;
    5975                 :             :             }
    5976                 :             :           }
    5977                 :          72 :         if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
    5978                 :             :           {
    5979                 :           0 :             {
    5980                 :           0 :               tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
    5981                 :           0 :               tree res = generic_simplify_46 (loc, type, _p0, _p1, captures);
    5982                 :           0 :               if (res) return res;
    5983                 :             :             }
    5984                 :             :           }
    5985                 :          72 :         switch (TREE_CODE (_p1))
    5986                 :             :           {
    5987                 :           0 :           case BIT_XOR_EXPR:
    5988                 :           0 :             {
    5989                 :           0 :               tree _q50 = TREE_OPERAND (_p1, 0);
    5990                 :           0 :               tree _q51 = TREE_OPERAND (_p1, 1);
    5991                 :           0 :               if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
    5992                 :             :                 {
    5993                 :           0 :                   if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
    5994                 :             :                     {
    5995                 :           0 :                       {
    5996                 :           0 :                         tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
    5997                 :           0 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1365;
    5998                 :           0 :                         {
    5999                 :           0 :                           tree res_op0;
    6000                 :           0 :                           res_op0 = captures[0];
    6001                 :           0 :                           tree res_op1;
    6002                 :           0 :                           res_op1 = captures[1];
    6003                 :           0 :                           tree _r;
    6004                 :           0 :                           _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
    6005                 :           0 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 928, __FILE__, __LINE__, true);
    6006                 :           0 :                           return _r;
    6007                 :             :                         }
    6008                 :           0 : next_after_fail1365:;
    6009                 :             :                       }
    6010                 :             :                     }
    6011                 :             :                 }
    6012                 :             :               break;
    6013                 :             :             }
    6014                 :           0 :           case BIT_AND_EXPR:
    6015                 :           0 :             {
    6016                 :           0 :               tree _q50 = TREE_OPERAND (_p1, 0);
    6017                 :           0 :               tree _q51 = TREE_OPERAND (_p1, 1);
    6018                 :           0 :               if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
    6019                 :             :                 {
    6020                 :           0 :                   if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
    6021                 :             :                     {
    6022                 :           0 :                       {
    6023                 :           0 :                         tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
    6024                 :           0 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1366;
    6025                 :           0 :                         {
    6026                 :           0 :                           tree res_op0;
    6027                 :           0 :                           res_op0 = captures[0];
    6028                 :           0 :                           tree res_op1;
    6029                 :           0 :                           res_op1 = captures[1];
    6030                 :           0 :                           tree _r;
    6031                 :           0 :                           _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
    6032                 :           0 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 929, __FILE__, __LINE__, true);
    6033                 :           0 :                           return _r;
    6034                 :             :                         }
    6035                 :           0 : next_after_fail1366:;
    6036                 :             :                       }
    6037                 :             :                     }
    6038                 :             :                 }
    6039                 :             :               break;
    6040                 :             :             }
    6041                 :             :           default:;
    6042                 :             :           }
    6043                 :             :         break;
    6044                 :             :       }
    6045                 :    29491452 :     default:;
    6046                 :             :     }
    6047                 :    29491452 : {
    6048                 :    29491452 :   tree _p0_pops[1];
    6049                 :    29491452 :   if (tree_nop_convert (_p0, _p0_pops))
    6050                 :             :     {
    6051                 :     6982150 :       tree _q20 = _p0_pops[0];
    6052                 :     6982150 :       switch (TREE_CODE (_q20))
    6053                 :             :         {
    6054                 :      952530 :         case PLUS_EXPR:
    6055                 :      952530 :           {
    6056                 :      952530 :             tree _q30 = TREE_OPERAND (_q20, 0);
    6057                 :      952530 :             tree _q31 = TREE_OPERAND (_q20, 1);
    6058                 :      952530 :             switch (TREE_CODE (_q30))
    6059                 :             :               {
    6060                 :         344 :               case BIT_AND_EXPR:
    6061                 :         344 :                 {
    6062                 :         344 :                   tree _q40 = TREE_OPERAND (_q30, 0);
    6063                 :         344 :                   tree _q41 = TREE_OPERAND (_q30, 1);
    6064                 :         344 :                   if (integer_all_onesp (_q31))
    6065                 :             :                     {
    6066                 :           0 :                       switch (TREE_CODE (_p1))
    6067                 :             :                         {
    6068                 :           0 :                         case BIT_IOR_EXPR:
    6069                 :           0 :                           {
    6070                 :           0 :                             tree _q80 = TREE_OPERAND (_p1, 0);
    6071                 :           0 :                             tree _q81 = TREE_OPERAND (_p1, 1);
    6072                 :           0 :                             if ((_q80 == _q40 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q40, 0) && types_match (_q80, _q40)))
    6073                 :             :                               {
    6074                 :           0 :                                 if ((_q81 == _q41 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q41, 0) && types_match (_q81, _q41)))
    6075                 :             :                                   {
    6076                 :           0 :                                     {
    6077                 :           0 :                                       tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q40, _q41 };
    6078                 :           0 :                                       tree res = generic_simplify_45 (loc, type, _p0, _p1, captures);
    6079                 :           0 :                                       if (res) return res;
    6080                 :             :                                     }
    6081                 :             :                                   }
    6082                 :             :                               }
    6083                 :           0 :                             if ((_q80 == _q41 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q41, 0) && types_match (_q80, _q41)))
    6084                 :             :                               {
    6085                 :           0 :                                 if ((_q81 == _q40 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q40, 0) && types_match (_q81, _q40)))
    6086                 :             :                                   {
    6087                 :           0 :                                     {
    6088                 :           0 :                                       tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q41, _q40 };
    6089                 :           0 :                                       tree res = generic_simplify_45 (loc, type, _p0, _p1, captures);
    6090                 :           0 :                                       if (res) return res;
    6091                 :             :                                     }
    6092                 :             :                                   }
    6093                 :             :                               }
    6094                 :             :                             break;
    6095                 :             :                           }
    6096                 :           0 :                         default:;
    6097                 :             :                         }
    6098                 :           0 :                     {
    6099                 :           0 :                       tree _p1_pops[1];
    6100                 :           0 :                       if (tree_nop_convert (_p1, _p1_pops))
    6101                 :             :                         {
    6102                 :           0 :                           tree _q80 = _p1_pops[0];
    6103                 :           0 :                           switch (TREE_CODE (_q80))
    6104                 :             :                             {
    6105                 :           0 :                             case BIT_IOR_EXPR:
    6106                 :           0 :                               {
    6107                 :           0 :                                 tree _q90 = TREE_OPERAND (_q80, 0);
    6108                 :           0 :                                 tree _q91 = TREE_OPERAND (_q80, 1);
    6109                 :           0 :                                 if ((_q90 == _q40 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q40, 0) && types_match (_q90, _q40)))
    6110                 :             :                                   {
    6111                 :           0 :                                     if ((_q91 == _q41 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q41, 0) && types_match (_q91, _q41)))
    6112                 :             :                                       {
    6113                 :           0 :                                         {
    6114                 :           0 :                                           tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q40, _q41 };
    6115                 :           0 :                                           tree res = generic_simplify_45 (loc, type, _p0, _p1, captures);
    6116                 :           0 :                                           if (res) return res;
    6117                 :             :                                         }
    6118                 :             :                                       }
    6119                 :             :                                   }
    6120                 :           0 :                                 if ((_q90 == _q41 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q41, 0) && types_match (_q90, _q41)))
    6121                 :             :                                   {
    6122                 :           0 :                                     if ((_q91 == _q40 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q40, 0) && types_match (_q91, _q40)))
    6123                 :             :                                       {
    6124                 :           0 :                                         {
    6125                 :           0 :                                           tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q41, _q40 };
    6126                 :           0 :                                           tree res = generic_simplify_45 (loc, type, _p0, _p1, captures);
    6127                 :           0 :                                           if (res) return res;
    6128                 :             :                                         }
    6129                 :             :                                       }
    6130                 :             :                                   }
    6131                 :             :                                 break;
    6132                 :             :                               }
    6133                 :             :                             default:;
    6134                 :             :                             }
    6135                 :             :                         }
    6136                 :             :                     }
    6137                 :             :                     }
    6138                 :             :                   break;
    6139                 :             :                 }
    6140                 :      952530 :               default:;
    6141                 :             :               }
    6142                 :      952530 :           {
    6143                 :      952530 :             tree _q30_pops[1];
    6144                 :      952530 :             if (tree_nop_convert (_q30, _q30_pops))
    6145                 :             :               {
    6146                 :       47911 :                 tree _q40 = _q30_pops[0];
    6147                 :       47911 :                 switch (TREE_CODE (_q40))
    6148                 :             :                   {
    6149                 :           0 :                   case BIT_AND_EXPR:
    6150                 :           0 :                     {
    6151                 :           0 :                       tree _q50 = TREE_OPERAND (_q40, 0);
    6152                 :           0 :                       tree _q51 = TREE_OPERAND (_q40, 1);
    6153                 :           0 :                       if (integer_all_onesp (_q31))
    6154                 :             :                         {
    6155                 :           0 :                           switch (TREE_CODE (_p1))
    6156                 :             :                             {
    6157                 :           0 :                             case BIT_IOR_EXPR:
    6158                 :           0 :                               {
    6159                 :           0 :                                 tree _q90 = TREE_OPERAND (_p1, 0);
    6160                 :           0 :                                 tree _q91 = TREE_OPERAND (_p1, 1);
    6161                 :           0 :                                 if ((_q90 == _q50 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q50, 0) && types_match (_q90, _q50)))
    6162                 :             :                                   {
    6163                 :           0 :                                     if ((_q91 == _q51 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q51, 0) && types_match (_q91, _q51)))
    6164                 :             :                                       {
    6165                 :           0 :                                         {
    6166                 :           0 :                                           tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q50, _q51 };
    6167                 :           0 :                                           tree res = generic_simplify_45 (loc, type, _p0, _p1, captures);
    6168                 :           0 :                                           if (res) return res;
    6169                 :             :                                         }
    6170                 :             :                                       }
    6171                 :             :                                   }
    6172                 :           0 :                                 if ((_q90 == _q51 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q51, 0) && types_match (_q90, _q51)))
    6173                 :             :                                   {
    6174                 :           0 :                                     if ((_q91 == _q50 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q50, 0) && types_match (_q91, _q50)))
    6175                 :             :                                       {
    6176                 :           0 :                                         {
    6177                 :           0 :                                           tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q51, _q50 };
    6178                 :           0 :                                           tree res = generic_simplify_45 (loc, type, _p0, _p1, captures);
    6179                 :           0 :                                           if (res) return res;
    6180                 :             :                                         }
    6181                 :             :                                       }
    6182                 :             :                                   }
    6183                 :             :                                 break;
    6184                 :             :                               }
    6185                 :           0 :                             default:;
    6186                 :             :                             }
    6187                 :           0 :                         {
    6188                 :           0 :                           tree _p1_pops[1];
    6189                 :           0 :                           if (tree_nop_convert (_p1, _p1_pops))
    6190                 :             :                             {
    6191                 :           0 :                               tree _q90 = _p1_pops[0];
    6192                 :           0 :                               switch (TREE_CODE (_q90))
    6193                 :             :                                 {
    6194                 :           0 :                                 case BIT_IOR_EXPR:
    6195                 :           0 :                                   {
    6196                 :           0 :                                     tree _q100 = TREE_OPERAND (_q90, 0);
    6197                 :           0 :                                     tree _q101 = TREE_OPERAND (_q90, 1);
    6198                 :           0 :                                     if ((_q100 == _q50 && ! TREE_SIDE_EFFECTS (_q100)) || (operand_equal_p (_q100, _q50, 0) && types_match (_q100, _q50)))
    6199                 :             :                                       {
    6200                 :           0 :                                         if ((_q101 == _q51 && ! TREE_SIDE_EFFECTS (_q101)) || (operand_equal_p (_q101, _q51, 0) && types_match (_q101, _q51)))
    6201                 :             :                                           {
    6202                 :           0 :                                             {
    6203                 :           0 :                                               tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q50, _q51 };
    6204                 :           0 :                                               tree res = generic_simplify_45 (loc, type, _p0, _p1, captures);
    6205                 :           0 :                                               if (res) return res;
    6206                 :             :                                             }
    6207                 :             :                                           }
    6208                 :             :                                       }
    6209                 :           0 :                                     if ((_q100 == _q51 && ! TREE_SIDE_EFFECTS (_q100)) || (operand_equal_p (_q100, _q51, 0) && types_match (_q100, _q51)))
    6210                 :             :                                       {
    6211                 :           0 :                                         if ((_q101 == _q50 && ! TREE_SIDE_EFFECTS (_q101)) || (operand_equal_p (_q101, _q50, 0) && types_match (_q101, _q50)))
    6212                 :             :                                           {
    6213                 :           0 :                                             {
    6214                 :           0 :                                               tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q51, _q50 };
    6215                 :           0 :                                               tree res = generic_simplify_45 (loc, type, _p0, _p1, captures);
    6216                 :           0 :                                               if (res) return res;
    6217                 :             :                                             }
    6218                 :             :                                           }
    6219                 :             :                                       }
    6220                 :             :                                     break;
    6221                 :             :                                   }
    6222                 :             :                                 default:;
    6223                 :             :                                 }
    6224                 :             :                             }
    6225                 :             :                         }
    6226                 :             :                         }
    6227                 :             :                       break;
    6228                 :             :                     }
    6229                 :             :                   default:;
    6230                 :             :                   }
    6231                 :             :               }
    6232                 :             :           }
    6233                 :      952530 :             break;
    6234                 :             :           }
    6235                 :          14 :         case BIT_AND_EXPR:
    6236                 :          14 :           {
    6237                 :          14 :             tree _q30 = TREE_OPERAND (_q20, 0);
    6238                 :          14 :             tree _q31 = TREE_OPERAND (_q20, 1);
    6239                 :          14 :             switch (TREE_CODE (_p1))
    6240                 :             :               {
    6241                 :           0 :               case PLUS_EXPR:
    6242                 :           0 :                 {
    6243                 :           0 :                   tree _q60 = TREE_OPERAND (_p1, 0);
    6244                 :           0 :                   tree _q61 = TREE_OPERAND (_p1, 1);
    6245                 :           0 :                   switch (TREE_CODE (_q60))
    6246                 :             :                     {
    6247                 :           0 :                     case BIT_IOR_EXPR:
    6248                 :           0 :                       {
    6249                 :           0 :                         tree _q70 = TREE_OPERAND (_q60, 0);
    6250                 :           0 :                         tree _q71 = TREE_OPERAND (_q60, 1);
    6251                 :           0 :                         if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
    6252                 :             :                           {
    6253                 :           0 :                             if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
    6254                 :             :                               {
    6255                 :           0 :                                 if (integer_onep (_q61))
    6256                 :             :                                   {
    6257                 :           0 :                                     {
    6258                 :           0 :                                       tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
    6259                 :           0 :                                       tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
    6260                 :           0 :                                       if (res) return res;
    6261                 :             :                                     }
    6262                 :             :                                   }
    6263                 :             :                               }
    6264                 :             :                           }
    6265                 :           0 :                         if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
    6266                 :             :                           {
    6267                 :           0 :                             if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
    6268                 :             :                               {
    6269                 :           0 :                                 if (integer_onep (_q61))
    6270                 :             :                                   {
    6271                 :           0 :                                     {
    6272                 :           0 :                                       tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
    6273                 :           0 :                                       tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
    6274                 :           0 :                                       if (res) return res;
    6275                 :             :                                     }
    6276                 :             :                                   }
    6277                 :             :                               }
    6278                 :             :                           }
    6279                 :             :                         break;
    6280                 :             :                       }
    6281                 :           0 :                     default:;
    6282                 :             :                     }
    6283                 :           0 :                 {
    6284                 :           0 :                   tree _q60_pops[1];
    6285                 :           0 :                   if (tree_nop_convert (_q60, _q60_pops))
    6286                 :             :                     {
    6287                 :           0 :                       tree _q70 = _q60_pops[0];
    6288                 :           0 :                       switch (TREE_CODE (_q70))
    6289                 :             :                         {
    6290                 :           0 :                         case BIT_IOR_EXPR:
    6291                 :           0 :                           {
    6292                 :           0 :                             tree _q80 = TREE_OPERAND (_q70, 0);
    6293                 :           0 :                             tree _q81 = TREE_OPERAND (_q70, 1);
    6294                 :           0 :                             if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
    6295                 :             :                               {
    6296                 :           0 :                                 if ((_q81 == _q31 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q31, 0) && types_match (_q81, _q31)))
    6297                 :             :                                   {
    6298                 :           0 :                                     if (integer_onep (_q61))
    6299                 :             :                                       {
    6300                 :           0 :                                         {
    6301                 :           0 :                                           tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
    6302                 :           0 :                                           tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
    6303                 :           0 :                                           if (res) return res;
    6304                 :             :                                         }
    6305                 :             :                                       }
    6306                 :             :                                   }
    6307                 :             :                               }
    6308                 :           0 :                             if ((_q80 == _q31 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q31, 0) && types_match (_q80, _q31)))
    6309                 :             :                               {
    6310                 :           0 :                                 if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
    6311                 :             :                                   {
    6312                 :           0 :                                     if (integer_onep (_q61))
    6313                 :             :                                       {
    6314                 :           0 :                                         {
    6315                 :           0 :                                           tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
    6316                 :           0 :                                           tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
    6317                 :           0 :                                           if (res) return res;
    6318                 :             :                                         }
    6319                 :             :                                       }
    6320                 :             :                                   }
    6321                 :             :                               }
    6322                 :             :                             break;
    6323                 :             :                           }
    6324                 :             :                         default:;
    6325                 :             :                         }
    6326                 :             :                     }
    6327                 :             :                 }
    6328                 :           0 :                   break;
    6329                 :             :                 }
    6330                 :          14 :               default:;
    6331                 :             :               }
    6332                 :          14 :           {
    6333                 :          14 :             tree _p1_pops[1];
    6334                 :          14 :             if (tree_nop_convert (_p1, _p1_pops))
    6335                 :             :               {
    6336                 :          14 :                 tree _q60 = _p1_pops[0];
    6337                 :          14 :                 switch (TREE_CODE (_q60))
    6338                 :             :                   {
    6339                 :           0 :                   case PLUS_EXPR:
    6340                 :           0 :                     {
    6341                 :           0 :                       tree _q70 = TREE_OPERAND (_q60, 0);
    6342                 :           0 :                       tree _q71 = TREE_OPERAND (_q60, 1);
    6343                 :           0 :                       switch (TREE_CODE (_q70))
    6344                 :             :                         {
    6345                 :           0 :                         case BIT_IOR_EXPR:
    6346                 :           0 :                           {
    6347                 :           0 :                             tree _q80 = TREE_OPERAND (_q70, 0);
    6348                 :           0 :                             tree _q81 = TREE_OPERAND (_q70, 1);
    6349                 :           0 :                             if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
    6350                 :             :                               {
    6351                 :           0 :                                 if ((_q81 == _q31 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q31, 0) && types_match (_q81, _q31)))
    6352                 :             :                                   {
    6353                 :           0 :                                     if (integer_onep (_q71))
    6354                 :             :                                       {
    6355                 :           0 :                                         {
    6356                 :           0 :                                           tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q60 };
    6357                 :           0 :                                           tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
    6358                 :           0 :                                           if (res) return res;
    6359                 :             :                                         }
    6360                 :             :                                       }
    6361                 :             :                                   }
    6362                 :             :                               }
    6363                 :           0 :                             if ((_q80 == _q31 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q31, 0) && types_match (_q80, _q31)))
    6364                 :             :                               {
    6365                 :           0 :                                 if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
    6366                 :             :                                   {
    6367                 :           0 :                                     if (integer_onep (_q71))
    6368                 :             :                                       {
    6369                 :           0 :                                         {
    6370                 :           0 :                                           tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q60 };
    6371                 :           0 :                                           tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
    6372                 :           0 :                                           if (res) return res;
    6373                 :             :                                         }
    6374                 :             :                                       }
    6375                 :             :                                   }
    6376                 :             :                               }
    6377                 :             :                             break;
    6378                 :             :                           }
    6379                 :           0 :                         default:;
    6380                 :             :                         }
    6381                 :           0 :                     {
    6382                 :           0 :                       tree _q70_pops[1];
    6383                 :           0 :                       if (tree_nop_convert (_q70, _q70_pops))
    6384                 :             :                         {
    6385                 :           0 :                           tree _q80 = _q70_pops[0];
    6386                 :           0 :                           switch (TREE_CODE (_q80))
    6387                 :             :                             {
    6388                 :           0 :                             case BIT_IOR_EXPR:
    6389                 :           0 :                               {
    6390                 :           0 :                                 tree _q90 = TREE_OPERAND (_q80, 0);
    6391                 :           0 :                                 tree _q91 = TREE_OPERAND (_q80, 1);
    6392                 :           0 :                                 if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
    6393                 :             :                                   {
    6394                 :           0 :                                     if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
    6395                 :             :                                       {
    6396                 :           0 :                                         if (integer_onep (_q71))
    6397                 :             :                                           {
    6398                 :           0 :                                             {
    6399                 :           0 :                                               tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q60 };
    6400                 :           0 :                                               tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
    6401                 :           0 :                                               if (res) return res;
    6402                 :             :                                             }
    6403                 :             :                                           }
    6404                 :             :                                       }
    6405                 :             :                                   }
    6406                 :           0 :                                 if ((_q90 == _q31 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q31, 0) && types_match (_q90, _q31)))
    6407                 :             :                                   {
    6408                 :           0 :                                     if ((_q91 == _q30 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q30, 0) && types_match (_q91, _q30)))
    6409                 :             :                                       {
    6410                 :           0 :                                         if (integer_onep (_q71))
    6411                 :             :                                           {
    6412                 :           0 :                                             {
    6413                 :           0 :                                               tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q60 };
    6414                 :           0 :                                               tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
    6415                 :           0 :                                               if (res) return res;
    6416                 :             :                                             }
    6417                 :             :                                           }
    6418                 :             :                                       }
    6419                 :             :                                   }
    6420                 :             :                                 break;
    6421                 :             :                               }
    6422                 :             :                             default:;
    6423                 :             :                             }
    6424                 :             :                         }
    6425                 :             :                     }
    6426                 :           0 :                       break;
    6427                 :             :                     }
    6428                 :             :                   default:;
    6429                 :             :                   }
    6430                 :             :               }
    6431                 :             :           }
    6432                 :          14 :             break;
    6433                 :             :           }
    6434                 :             :         default:;
    6435                 :             :         }
    6436                 :             :     }
    6437                 :             : }
    6438                 :    29491452 :   if (tree_negate_expr_p (_p1))
    6439                 :             :     {
    6440                 :     7230238 :       {
    6441                 :     7230238 :         tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    6442                 :     7230238 :         if (!FIXED_POINT_TYPE_P (type)
    6443                 :             : )
    6444                 :             :           {
    6445                 :     7230238 :             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1367;
    6446                 :     7230238 :             {
    6447                 :     7230238 :               tree res_op0;
    6448                 :     7230238 :               res_op0 = captures[0];
    6449                 :     7230238 :               tree res_op1;
    6450                 :     7230238 :               {
    6451                 :     7230238 :                 tree _o1[1], _r1;
    6452                 :     7230238 :                 _o1[0] = captures[1];
    6453                 :     7230238 :                 _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
    6454                 :     7230238 :                 res_op1 = _r1;
    6455                 :             :               }
    6456                 :     7230238 :               tree _r;
    6457                 :     7230238 :               _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
    6458                 :     7230238 :               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 930, __FILE__, __LINE__, true);
    6459                 :     7230238 :               return _r;
    6460                 :             :             }
    6461                 :           0 : next_after_fail1367:;
    6462                 :             :           }
    6463                 :             :       }
    6464                 :             :     }
    6465                 :    22261214 :   switch (TREE_CODE (_p0))
    6466                 :             :     {
    6467                 :     4631610 :     CASE_CONVERT:
    6468                 :     4631610 :       {
    6469                 :     4631610 :         tree _q20 = TREE_OPERAND (_p0, 0);
    6470                 :     4631610 :         switch (TREE_CODE (_p1))
    6471                 :             :           {
    6472                 :     3851927 :           CASE_CONVERT:
    6473                 :     3851927 :             {
    6474                 :     3851927 :               tree _q40 = TREE_OPERAND (_p1, 0);
    6475                 :     3851927 :               switch (TREE_CODE (_q40))
    6476                 :             :                 {
    6477                 :          15 :                 case BIT_AND_EXPR:
    6478                 :          15 :                   {
    6479                 :          15 :                     tree _q50 = TREE_OPERAND (_q40, 0);
    6480                 :          15 :                     tree _q51 = TREE_OPERAND (_q40, 1);
    6481                 :          15 :                     if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
    6482                 :             :                       {
    6483                 :           0 :                         {
    6484                 :           0 :                           tree captures[5] ATTRIBUTE_UNUSED = { _q50, _p1, _q40, _q51, _q20 };
    6485                 :           0 :                           tree res = generic_simplify_47 (loc, type, _p0, _p1, captures);
    6486                 :           0 :                           if (res) return res;
    6487                 :             :                         }
    6488                 :             :                       }
    6489                 :          15 :                     if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q20, 0))
    6490                 :             :                       {
    6491                 :           1 :                         {
    6492                 :           1 :                           tree captures[5] ATTRIBUTE_UNUSED = { _q51, _p1, _q40, _q50, _q20 };
    6493                 :           1 :                           tree res = generic_simplify_47 (loc, type, _p0, _p1, captures);
    6494                 :           1 :                           if (res) return res;
    6495                 :             :                         }
    6496                 :             :                       }
    6497                 :             :                     break;
    6498                 :             :                   }
    6499                 :             :                 default:;
    6500                 :             :                 }
    6501                 :             :               break;
    6502                 :             :             }
    6503                 :        4843 :           case BIT_AND_EXPR:
    6504                 :        4843 :             {
    6505                 :        4843 :               tree _q40 = TREE_OPERAND (_p1, 0);
    6506                 :        4843 :               tree _q41 = TREE_OPERAND (_p1, 1);
    6507                 :        4843 :               if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _q20, 0))
    6508                 :             :                 {
    6509                 :           0 :                   {
    6510                 :           0 :                     tree captures[5] ATTRIBUTE_UNUSED = { _q40, _p1, _p1, _q41, _q20 };
    6511                 :           0 :                     tree res = generic_simplify_48 (loc, type, _p0, _p1, captures);
    6512                 :           0 :                     if (res) return res;
    6513                 :             :                   }
    6514                 :             :                 }
    6515                 :        4843 :               if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _q20, 0))
    6516                 :             :                 {
    6517                 :          21 :                   {
    6518                 :          21 :                     tree captures[5] ATTRIBUTE_UNUSED = { _q41, _p1, _p1, _q40, _q20 };
    6519                 :          21 :                     tree res = generic_simplify_48 (loc, type, _p0, _p1, captures);
    6520                 :          21 :                     if (res) return res;
    6521                 :             :                   }
    6522                 :             :                 }
    6523                 :             :               break;
    6524                 :             :             }
    6525                 :     4631588 :           default:;
    6526                 :             :           }
    6527                 :     4631588 :         switch (TREE_CODE (_q20))
    6528                 :             :           {
    6529                 :      120167 :           case ADDR_EXPR:
    6530                 :      120167 :             {
    6531                 :      120167 :               switch (TREE_CODE (_p1))
    6532                 :             :                 {
    6533                 :      113359 :                 CASE_CONVERT:
    6534                 :      113359 :                   {
    6535                 :      113359 :                     tree _q40 = TREE_OPERAND (_p1, 0);
    6536                 :      113359 :                     switch (TREE_CODE (_q40))
    6537                 :             :                       {
    6538                 :       30870 :                       case POINTER_PLUS_EXPR:
    6539                 :       30870 :                         {
    6540                 :       30870 :                           tree _q50 = TREE_OPERAND (_q40, 0);
    6541                 :       30870 :                           tree _q51 = TREE_OPERAND (_q40, 1);
    6542                 :       30870 :                           {
    6543                 :       30870 :                             tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q50, _q51 };
    6544                 :       30870 :                             if (tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
    6545                 :             : )
    6546                 :             :                               {
    6547                 :       30870 :                                 {
    6548                 :       30870 :  poly_int64 diff;
    6549                 :       30870 :                                     if (ptr_difference_const (captures[0], captures[1], &diff)
    6550                 :             : )
    6551                 :             :                                       {
    6552                 :       13725 :                                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1368;
    6553                 :       13725 :                                         {
    6554                 :       13725 :                                           tree res_op0;
    6555                 :       13725 :                                           res_op0 =  build_int_cst_type (type, diff);
    6556                 :       13725 :                                           tree res_op1;
    6557                 :       13725 :                                           {
    6558                 :       13725 :                                             tree _o1[1], _r1;
    6559                 :       13725 :                                             _o1[0] = captures[2];
    6560                 :       13725 :                                             if (TREE_TYPE (_o1[0]) != type)
    6561                 :             :                                               {
    6562                 :       13725 :                                                 _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
    6563                 :             :                                               }
    6564                 :             :                                             else
    6565                 :             :                                               _r1 = _o1[0];
    6566                 :       13725 :                                             res_op1 = _r1;
    6567                 :             :                                           }
    6568                 :       13725 :                                           tree _r;
    6569                 :       13725 :                                           _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
    6570                 :       13725 :                                           if (TREE_SIDE_EFFECTS (captures[0]))
    6571                 :           0 :                                             _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    6572                 :       13725 :                                           if (TREE_SIDE_EFFECTS (captures[1]))
    6573                 :           0 :                                             _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    6574                 :       13725 :                                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 931, __FILE__, __LINE__, true);
    6575                 :       13725 :                                           return _r;
    6576                 :             :                                         }
    6577                 :           0 : next_after_fail1368:;
    6578                 :             :                                       }
    6579                 :             :                                 }
    6580                 :             :                               }
    6581                 :             :                           }
    6582                 :       17145 :                           break;
    6583                 :             :                         }
    6584                 :       99634 :                       default:;
    6585                 :             :                       }
    6586                 :       99634 :                     {
    6587                 :       99634 :                       tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
    6588                 :       99634 :                       if (tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
    6589                 :             : )
    6590                 :             :                         {
    6591                 :       99634 :                           {
    6592                 :       99634 :  poly_int64 diff;
    6593                 :       99634 :                               if (ptr_difference_const (captures[0], captures[1], &diff)
    6594                 :             : )
    6595                 :             :                                 {
    6596                 :       58841 :                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1369;
    6597                 :       58841 :                                   {
    6598                 :       58841 :                                     tree _r;
    6599                 :       58841 :                                     _r =  build_int_cst_type (type, diff);
    6600                 :       58841 :                                     if (TREE_SIDE_EFFECTS (captures[0]))
    6601                 :           0 :                                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    6602                 :       58841 :                                     if (TREE_SIDE_EFFECTS (captures[1]))
    6603                 :           0 :                                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    6604                 :       58841 :                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 932, __FILE__, __LINE__, true);
    6605                 :       58841 :                                     return _r;
    6606                 :             :                                   }
    6607                 :           0 : next_after_fail1369:;
    6608                 :             :                                 }
    6609                 :             :                           }
    6610                 :             :                         }
    6611                 :             :                     }
    6612                 :       40793 :                     break;
    6613                 :             :                   }
    6614                 :             :                 default:;
    6615                 :             :                 }
    6616                 :             :               break;
    6617                 :             :             }
    6618                 :       80858 :           case POINTER_PLUS_EXPR:
    6619                 :       80858 :             {
    6620                 :       80858 :               tree _q30 = TREE_OPERAND (_q20, 0);
    6621                 :       80858 :               tree _q31 = TREE_OPERAND (_q20, 1);
    6622                 :       80858 :               switch (TREE_CODE (_p1))
    6623                 :             :                 {
    6624                 :       79707 :                 CASE_CONVERT:
    6625                 :       79707 :                   {
    6626                 :       79707 :                     tree _q60 = TREE_OPERAND (_p1, 0);
    6627                 :       79707 :                     switch (TREE_CODE (_q60))
    6628                 :             :                       {
    6629                 :        3387 :                       case ADDR_EXPR:
    6630                 :        3387 :                         {
    6631                 :        3387 :                           {
    6632                 :        3387 :                             tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q60 };
    6633                 :        3387 :                             if (tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
    6634                 :             : )
    6635                 :             :                               {
    6636                 :        3387 :                                 {
    6637                 :        3387 :  poly_int64 diff;
    6638                 :        3387 :                                     if (ptr_difference_const (captures[0], captures[2], &diff)
    6639                 :             : )
    6640                 :             :                                       {
    6641                 :         744 :                                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1370;
    6642                 :         744 :                                         {
    6643                 :         744 :                                           tree res_op0;
    6644                 :         744 :                                           {
    6645                 :         744 :                                             tree _o1[1], _r1;
    6646                 :         744 :                                             _o1[0] = captures[1];
    6647                 :         744 :                                             if (TREE_TYPE (_o1[0]) != type)
    6648                 :             :                                               {
    6649                 :         491 :                                                 _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
    6650                 :             :                                               }
    6651                 :             :                                             else
    6652                 :             :                                               _r1 = _o1[0];
    6653                 :         744 :                                             res_op0 = _r1;
    6654                 :             :                                           }
    6655                 :         744 :                                           tree res_op1;
    6656                 :         744 :                                           res_op1 =  build_int_cst_type (type, diff);
    6657                 :         744 :                                           tree _r;
    6658                 :         744 :                                           _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
    6659                 :         744 :                                           if (TREE_SIDE_EFFECTS (captures[0]))
    6660                 :           0 :                                             _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    6661                 :         744 :                                           if (TREE_SIDE_EFFECTS (captures[2]))
    6662                 :           0 :                                             _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    6663                 :         744 :                                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 933, __FILE__, __LINE__, true);
    6664                 :         744 :                                           return _r;
    6665                 :             :                                         }
    6666                 :           0 : next_after_fail1370:;
    6667                 :             :                                       }
    6668                 :             :                                 }
    6669                 :             :                               }
    6670                 :             :                           }
    6671                 :        2643 :                           break;
    6672                 :             :                         }
    6673                 :             :                       default:;
    6674                 :             :                       }
    6675                 :             :                     break;
    6676                 :             :                   }
    6677                 :             :                 default:;
    6678                 :             :                 }
    6679                 :             :               break;
    6680                 :             :             }
    6681                 :     4558278 :           default:;
    6682                 :             :           }
    6683                 :     4558278 :         switch (TREE_CODE (_p1))
    6684                 :             :           {
    6685                 :     3778616 :           CASE_CONVERT:
    6686                 :     3778616 :             {
    6687                 :     3778616 :               tree _q40 = TREE_OPERAND (_p1, 0);
    6688                 :     3778616 :               switch (TREE_CODE (_q40))
    6689                 :             :                 {
    6690                 :       53993 :                 case ADDR_EXPR:
    6691                 :       53993 :                   {
    6692                 :       53993 :                     {
    6693                 :       53993 :                       tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
    6694                 :       53993 :                       if (tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
    6695                 :             : )
    6696                 :             :                         {
    6697                 :       53972 :                           {
    6698                 :       53972 :  poly_int64 diff;
    6699                 :       53972 :                               if (ptr_difference_const (captures[0], captures[1], &diff)
    6700                 :             : )
    6701                 :             :                                 {
    6702                 :           0 :                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1371;
    6703                 :           0 :                                   {
    6704                 :           0 :                                     tree _r;
    6705                 :           0 :                                     _r =  build_int_cst_type (type, diff);
    6706                 :           0 :                                     if (TREE_SIDE_EFFECTS (captures[0]))
    6707                 :           0 :                                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    6708                 :           0 :                                     if (TREE_SIDE_EFFECTS (captures[1]))
    6709                 :           0 :                                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    6710                 :           0 :                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 934, __FILE__, __LINE__, true);
    6711                 :           0 :                                     return _r;
    6712                 :             :                                   }
    6713                 :           0 : next_after_fail1371:;
    6714                 :             :                                 }
    6715                 :             :                           }
    6716                 :             :                         }
    6717                 :             :                     }
    6718                 :       53993 :                     break;
    6719                 :             :                   }
    6720                 :             :                 default:;
    6721                 :             :                 }
    6722                 :             :               break;
    6723                 :             :             }
    6724                 :             :           default:;
    6725                 :             :           }
    6726                 :             :         break;
    6727                 :             :       }
    6728                 :    22187882 :     default:;
    6729                 :             :     }
    6730                 :    22187882 : if (integer_onep (_p0))
    6731                 :             :   {
    6732                 :      103731 :     switch (TREE_CODE (_p1))
    6733                 :             :       {
    6734                 :       29092 :       case SSA_NAME:
    6735                 :       29092 :         {
    6736                 :       29092 :           {
    6737                 :       29092 :             tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    6738                 :       29092 :             if (INTEGRAL_TYPE_P (type)
    6739                 :       29092 :  && ssa_name_has_boolean_range (captures[1])
    6740                 :             : )
    6741                 :             :               {
    6742                 :         217 :                 if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1372;
    6743                 :         217 :                 {
    6744                 :         217 :                   tree res_op0;
    6745                 :         217 :                   res_op0 = captures[1];
    6746                 :         217 :                   tree res_op1;
    6747                 :         217 :                   res_op1 = captures[0];
    6748                 :         217 :                   tree _r;
    6749                 :         217 :                   _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
    6750                 :         217 :                   if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 935, __FILE__, __LINE__, true);
    6751                 :         217 :                   return _r;
    6752                 :             :                 }
    6753                 :           0 : next_after_fail1372:;
    6754                 :             :               }
    6755                 :             :           }
    6756                 :       28875 :           break;
    6757                 :             :         }
    6758                 :             :       default:;
    6759                 :             :       }
    6760                 :             :   }
    6761                 :    22187665 :   switch (TREE_CODE (_p1))
    6762                 :             :     {
    6763                 :     6919665 :     CASE_CONVERT:
    6764                 :     6919665 :       {
    6765                 :     6919665 :         tree _q30 = TREE_OPERAND (_p1, 0);
    6766                 :     6919665 :         switch (TREE_CODE (_q30))
    6767                 :             :           {
    6768                 :          14 :           case BIT_AND_EXPR:
    6769                 :          14 :             {
    6770                 :          14 :               tree _q40 = TREE_OPERAND (_q30, 0);
    6771                 :          14 :               tree _q41 = TREE_OPERAND (_q30, 1);
    6772                 :          14 :               if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _p0, 0))
    6773                 :             :                 {
    6774                 :           0 :                   {
    6775                 :           0 :                     tree captures[5] ATTRIBUTE_UNUSED = { _q40, _p1, _q30, _q41, _p0 };
    6776                 :           0 :                     tree res = generic_simplify_47 (loc, type, _p0, _p1, captures);
    6777                 :           0 :                     if (res) return res;
    6778                 :             :                   }
    6779                 :             :                 }
    6780                 :          14 :               if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _p0, 0))
    6781                 :             :                 {
    6782                 :           0 :                   {
    6783                 :           0 :                     tree captures[5] ATTRIBUTE_UNUSED = { _q41, _p1, _q30, _q40, _p0 };
    6784                 :           0 :                     tree res = generic_simplify_47 (loc, type, _p0, _p1, captures);
    6785                 :           0 :                     if (res) return res;
    6786                 :             :                   }
    6787                 :             :                 }
    6788                 :             :               break;
    6789                 :             :             }
    6790                 :             :           default:;
    6791                 :             :           }
    6792                 :             :         break;
    6793                 :             :       }
    6794                 :        6843 :     case BIT_AND_EXPR:
    6795                 :        6843 :       {
    6796                 :        6843 :         tree _q30 = TREE_OPERAND (_p1, 0);
    6797                 :        6843 :         tree _q31 = TREE_OPERAND (_p1, 1);
    6798                 :        6843 :         if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || operand_equal_p (_q30, _p0, 0))
    6799                 :             :           {
    6800                 :         217 :             {
    6801                 :         217 :               tree captures[5] ATTRIBUTE_UNUSED = { _q30, _p1, _p1, _q31, _p0 };
    6802                 :         217 :               tree res = generic_simplify_48 (loc, type, _p0, _p1, captures);
    6803                 :         217 :               if (res) return res;
    6804                 :             :             }
    6805                 :             :           }
    6806                 :        6626 :         if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || operand_equal_p (_q31, _p0, 0))
    6807                 :             :           {
    6808                 :          38 :             {
    6809                 :          38 :               tree captures[5] ATTRIBUTE_UNUSED = { _q31, _p1, _p1, _q30, _p0 };
    6810                 :          38 :               tree res = generic_simplify_48 (loc, type, _p0, _p1, captures);
    6811                 :          38 :               if (res) return res;
    6812                 :             :             }
    6813                 :             :           }
    6814                 :             :         break;
    6815                 :             :       }
    6816                 :    22187410 :     default:;
    6817                 :             :     }
    6818                 :    22187410 :   switch (TREE_CODE (_p0))
    6819                 :             :     {
    6820                 :     1666793 :     case PLUS_EXPR:
    6821                 :     1666793 :       {
    6822                 :     1666793 :         tree _q20 = TREE_OPERAND (_p0, 0);
    6823                 :     1666793 :         tree _q21 = TREE_OPERAND (_p0, 1);
    6824                 :     1666793 :         switch (TREE_CODE (_p1))
    6825                 :             :           {
    6826                 :      463754 :           case PLUS_EXPR:
    6827                 :      463754 :             {
    6828                 :      463754 :               tree _q50 = TREE_OPERAND (_p1, 0);
    6829                 :      463754 :               tree _q51 = TREE_OPERAND (_p1, 1);
    6830                 :      463754 :               if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
    6831                 :             :                 {
    6832                 :      160810 :                   {
    6833                 :      160810 :                     tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
    6834                 :      321620 :                     if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
    6835                 :      321620 :  && (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
    6836                 :       39170 :  || TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[0])))
    6837                 :             : )
    6838                 :             :                       {
    6839                 :      160804 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1373;
    6840                 :      160804 :                         {
    6841                 :      160804 :                           tree res_op0;
    6842                 :      160804 :                           res_op0 = captures[0];
    6843                 :      160804 :                           tree res_op1;
    6844                 :      160804 :                           res_op1 = captures[2];
    6845                 :      160804 :                           tree _r;
    6846                 :      160804 :                           _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
    6847                 :      160804 :                           if (TREE_SIDE_EFFECTS (captures[1]))
    6848                 :           0 :                             _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    6849                 :      160804 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 936, __FILE__, __LINE__, true);
    6850                 :      160804 :                           return _r;
    6851                 :             :                         }
    6852                 :           0 : next_after_fail1373:;
    6853                 :             :                       }
    6854                 :             :                   }
    6855                 :             :                 }
    6856                 :      302950 :               if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
    6857                 :             :                 {
    6858                 :         437 :                   {
    6859                 :         437 :                     tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
    6860                 :         874 :                     if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
    6861                 :         874 :  && (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
    6862                 :         324 :  || TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[0])))
    6863                 :             : )
    6864                 :             :                       {
    6865                 :         437 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1374;
    6866                 :         437 :                         {
    6867                 :         437 :                           tree res_op0;
    6868                 :         437 :                           res_op0 = captures[0];
    6869                 :         437 :                           tree res_op1;
    6870                 :         437 :                           res_op1 = captures[2];
    6871                 :         437 :                           tree _r;
    6872                 :         437 :                           _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
    6873                 :         437 :                           if (TREE_SIDE_EFFECTS (captures[1]))
    6874                 :           0 :                             _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    6875                 :         437 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 936, __FILE__, __LINE__, true);
    6876                 :         437 :                           return _r;
    6877                 :             :                         }
    6878                 :           0 : next_after_fail1374:;
    6879                 :             :                       }
    6880                 :             :                   }
    6881                 :             :                 }
    6882                 :      302513 :               if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
    6883                 :             :                 {
    6884                 :         251 :                   {
    6885                 :         251 :                     tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q50 };
    6886                 :         502 :                     if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
    6887                 :         502 :  && (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
    6888                 :         162 :  || TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[0])))
    6889                 :             : )
    6890                 :             :                       {
    6891                 :         251 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1375;
    6892                 :         251 :                         {
    6893                 :         251 :                           tree res_op0;
    6894                 :         251 :                           res_op0 = captures[0];
    6895                 :         251 :                           tree res_op1;
    6896                 :         251 :                           res_op1 = captures[2];
    6897                 :         251 :                           tree _r;
    6898                 :         251 :                           _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
    6899                 :         251 :                           if (TREE_SIDE_EFFECTS (captures[1]))
    6900                 :           0 :                             _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    6901                 :         251 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 936, __FILE__, __LINE__, true);
    6902                 :         251 :                           return _r;
    6903                 :             :                         }
    6904                 :           0 : next_after_fail1375:;
    6905                 :             :                       }
    6906                 :             :                   }
    6907                 :             :                 }
    6908                 :      302262 :               if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
    6909                 :             :                 {
    6910                 :      177529 :                   {
    6911                 :      177529 :                     tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
    6912                 :      355058 :                     if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
    6913                 :      355058 :  && (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
    6914                 :      137037 :  || TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[0])))
    6915                 :             : )
    6916                 :             :                       {
    6917                 :      177529 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1376;
    6918                 :      177529 :                         {
    6919                 :      177529 :                           tree res_op0;
    6920                 :      177529 :                           res_op0 = captures[0];
    6921                 :      177529 :                           tree res_op1;
    6922                 :      177529 :                           res_op1 = captures[2];
    6923                 :      177529 :                           tree _r;
    6924                 :      177529 :                           _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
    6925                 :      177529 :                           if (TREE_SIDE_EFFECTS (captures[1]))
    6926                 :           2 :                             _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    6927                 :      177529 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 936, __FILE__, __LINE__, true);
    6928                 :      177529 :                           return _r;
    6929                 :             :                         }
    6930                 :           0 : next_after_fail1376:;
    6931                 :             :                       }
    6932                 :             :                   }
    6933                 :             :                 }
    6934                 :             :               break;
    6935                 :             :             }
    6936                 :             :           default:;
    6937                 :             :           }
    6938                 :             :         break;
    6939                 :             :       }
    6940                 :      897940 :     case MINUS_EXPR:
    6941                 :      897940 :       {
    6942                 :      897940 :         tree _q20 = TREE_OPERAND (_p0, 0);
    6943                 :      897940 :         tree _q21 = TREE_OPERAND (_p0, 1);
    6944                 :      897940 :         switch (TREE_CODE (_p1))
    6945                 :             :           {
    6946                 :        3919 :           case MINUS_EXPR:
    6947                 :        3919 :             {
    6948                 :        3919 :               tree _q50 = TREE_OPERAND (_p1, 0);
    6949                 :        3919 :               tree _q51 = TREE_OPERAND (_p1, 1);
    6950                 :        3919 :               if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
    6951                 :             :                 {
    6952                 :        3877 :                   {
    6953                 :        3877 :                     tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
    6954                 :        7754 :                     if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
    6955                 :        7754 :  && (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
    6956                 :           0 :  || TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[0])))
    6957                 :             : )
    6958                 :             :                       {
    6959                 :        3877 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1377;
    6960                 :        3877 :                         {
    6961                 :        3877 :                           tree res_op0;
    6962                 :        3877 :                           res_op0 = captures[0];
    6963                 :        3877 :                           tree res_op1;
    6964                 :        3877 :                           res_op1 = captures[2];
    6965                 :        3877 :                           tree _r;
    6966                 :        3877 :                           _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
    6967                 :        3877 :                           if (TREE_SIDE_EFFECTS (captures[1]))
    6968                 :           0 :                             _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    6969                 :        3877 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 937, __FILE__, __LINE__, true);
    6970                 :        3877 :                           return _r;
    6971                 :             :                         }
    6972                 :           0 : next_after_fail1377:;
    6973                 :             :                       }
    6974                 :             :                   }
    6975                 :             :                 }
    6976                 :          42 :               if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
    6977                 :             :                 {
    6978                 :           0 :                   {
    6979                 :           0 :                     tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
    6980                 :           0 :                     if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
    6981                 :           0 :  && (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[1]))
    6982                 :           0 :  || TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[1])))
    6983                 :             : )
    6984                 :             :                       {
    6985                 :           0 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1378;
    6986                 :           0 :                         {
    6987                 :           0 :                           tree res_op0;
    6988                 :           0 :                           res_op0 = captures[2];
    6989                 :           0 :                           tree res_op1;
    6990                 :           0 :                           res_op1 = captures[1];
    6991                 :           0 :                           tree _r;
    6992                 :           0 :                           _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
    6993                 :           0 :                           if (TREE_SIDE_EFFECTS (captures[0]))
    6994                 :           0 :                             _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    6995                 :           0 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 938, __FILE__, __LINE__, true);
    6996                 :           0 :                           return _r;
    6997                 :             :                         }
    6998                 :           0 : next_after_fail1378:;
    6999                 :             :                       }
    7000                 :             :                   }
    7001                 :             :                 }
    7002                 :             :               break;
    7003                 :             :             }
    7004                 :             :           default:;
    7005                 :             :           }
    7006                 :             :         break;
    7007                 :             :       }
    7008                 :          59 :     case POINTER_DIFF_EXPR:
    7009                 :          59 :       {
    7010                 :          59 :         tree _q20 = TREE_OPERAND (_p0, 0);
    7011                 :          59 :         tree _q21 = TREE_OPERAND (_p0, 1);
    7012                 :          59 :         switch (TREE_CODE (_p1))
    7013                 :             :           {
    7014                 :           0 :           case POINTER_DIFF_EXPR:
    7015                 :           0 :             {
    7016                 :           0 :               tree _q50 = TREE_OPERAND (_p1, 0);
    7017                 :           0 :               tree _q51 = TREE_OPERAND (_p1, 1);
    7018                 :           0 :               if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
    7019                 :             :                 {
    7020                 :           0 :                   {
    7021                 :           0 :                     tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q50 };
    7022                 :           0 :                     if (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
    7023                 :           0 :  && !TYPE_OVERFLOW_SANITIZED (TREE_TYPE (captures[2]))
    7024                 :             : )
    7025                 :             :                       {
    7026                 :           0 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1379;
    7027                 :           0 :                         {
    7028                 :           0 :                           tree res_op0;
    7029                 :           0 :                           res_op0 = captures[1];
    7030                 :           0 :                           tree res_op1;
    7031                 :           0 :                           res_op1 = captures[3];
    7032                 :           0 :                           tree _r;
    7033                 :           0 :                           _r = fold_build2_loc (loc, POINTER_DIFF_EXPR, type, res_op0, res_op1);
    7034                 :           0 :                           if (TREE_SIDE_EFFECTS (captures[2]))
    7035                 :           0 :                             _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    7036                 :           0 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 939, __FILE__, __LINE__, true);
    7037                 :           0 :                           return _r;
    7038                 :             :                         }
    7039                 :           0 : next_after_fail1379:;
    7040                 :             :                       }
    7041                 :             :                   }
    7042                 :             :                 }
    7043                 :           0 :               if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
    7044                 :             :                 {
    7045                 :           0 :                   {
    7046                 :           0 :                     tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q51 };
    7047                 :           0 :                     if (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
    7048                 :           0 :  && !TYPE_OVERFLOW_SANITIZED (TREE_TYPE (captures[1]))
    7049                 :             : )
    7050                 :             :                       {
    7051                 :           0 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1380;
    7052                 :           0 :                         {
    7053                 :           0 :                           tree res_op0;
    7054                 :           0 :                           res_op0 = captures[3];
    7055                 :           0 :                           tree res_op1;
    7056                 :           0 :                           res_op1 = captures[2];
    7057                 :           0 :                           tree _r;
    7058                 :           0 :                           _r = fold_build2_loc (loc, POINTER_DIFF_EXPR, type, res_op0, res_op1);
    7059                 :           0 :                           if (TREE_SIDE_EFFECTS (captures[1]))
    7060                 :           0 :                             _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    7061                 :           0 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 940, __FILE__, __LINE__, true);
    7062                 :           0 :                           return _r;
    7063                 :             :                         }
    7064                 :           0 : next_after_fail1380:;
    7065                 :             :                       }
    7066                 :             :                   }
    7067                 :             :                 }
    7068                 :             :               break;
    7069                 :             :             }
    7070                 :             :           default:;
    7071                 :             :           }
    7072                 :             :         break;
    7073                 :             :       }
    7074                 :    21844512 :     default:;
    7075                 :             :     }
    7076                 :    21844512 :   switch (TREE_CODE (_p1))
    7077                 :             :     {
    7078                 :     6919665 :     CASE_CONVERT:
    7079                 :     6919665 :       {
    7080                 :     6919665 :         tree _q30 = TREE_OPERAND (_p1, 0);
    7081                 :     6919665 :         switch (TREE_CODE (_q30))
    7082                 :             :           {
    7083                 :        1403 :           case NEGATE_EXPR:
    7084                 :        1403 :             {
    7085                 :        1403 :               tree _q40 = TREE_OPERAND (_q30, 0);
    7086                 :        1403 :               {
    7087                 :        1403 :                 tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q40 };
    7088                 :        1403 :                 tree res = generic_simplify_49 (loc, type, _p0, _p1, captures);
    7089                 :        1403 :                 if (res) return res;
    7090                 :             :               }
    7091                 :        1403 :               break;
    7092                 :             :             }
    7093                 :             :           default:;
    7094                 :             :           }
    7095                 :             :         break;
    7096                 :             :       }
    7097                 :          45 :     case NEGATE_EXPR:
    7098                 :          45 :       {
    7099                 :          45 :         tree _q30 = TREE_OPERAND (_p1, 0);
    7100                 :          45 :         {
    7101                 :          45 :           tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
    7102                 :          45 :           tree res = generic_simplify_49 (loc, type, _p0, _p1, captures);
    7103                 :          45 :           if (res) return res;
    7104                 :             :         }
    7105                 :          40 :         break;
    7106                 :             :       }
    7107                 :    21844507 :     default:;
    7108                 :             :     }
    7109                 :    21844507 :   switch (TREE_CODE (_p0))
    7110                 :             :     {
    7111                 :     1327772 :     case PLUS_EXPR:
    7112                 :     1327772 :       {
    7113                 :     1327772 :         tree _q20 = TREE_OPERAND (_p0, 0);
    7114                 :     1327772 :         tree _q21 = TREE_OPERAND (_p0, 1);
    7115                 :     1327772 :         {
    7116                 :     1327772 :           tree _q20_pops[1];
    7117                 :     1327772 :           if (tree_nop_convert (_q20, _q20_pops))
    7118                 :             :             {
    7119                 :      323222 :               tree _q30 = _q20_pops[0];
    7120                 :      323222 :               if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
    7121                 :             :                 {
    7122                 :         357 :                   {
    7123                 :         357 :                     tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q21 };
    7124                 :         357 :                     tree res = generic_simplify_50 (loc, type, _p0, _p1, captures);
    7125                 :         357 :                     if (res) return res;
    7126                 :             :                   }
    7127                 :             :                 }
    7128                 :             :             }
    7129                 :             :         }
    7130                 :     1327415 :         {
    7131                 :     1327415 :           tree _q21_pops[1];
    7132                 :     1327415 :           if (tree_nop_convert (_q21, _q21_pops))
    7133                 :             :             {
    7134                 :      428024 :               tree _q40 = _q21_pops[0];
    7135                 :      428024 :               if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
    7136                 :             :                 {
    7137                 :         190 :                   {
    7138                 :         190 :                     tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q20 };
    7139                 :         190 :                     tree res = generic_simplify_50 (loc, type, _p0, _p1, captures);
    7140                 :         190 :                     if (res) return res;
    7141                 :             :                   }
    7142                 :             :                 }
    7143                 :             :             }
    7144                 :             :         }
    7145                 :     1327225 :         if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
    7146                 :             :           {
    7147                 :       53687 :             {
    7148                 :       53687 :               tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
    7149                 :       53687 :               tree res = generic_simplify_50 (loc, type, _p0, _p1, captures);
    7150                 :       53687 :               if (res) return res;
    7151                 :             :             }
    7152                 :             :           }
    7153                 :     1273538 :         if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
    7154                 :             :           {
    7155                 :        1669 :             {
    7156                 :        1669 :               tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
    7157                 :        1669 :               tree res = generic_simplify_50 (loc, type, _p0, _p1, captures);
    7158                 :        1669 :               if (res) return res;
    7159                 :             :             }
    7160                 :             :           }
    7161                 :             :         break;
    7162                 :             :       }
    7163                 :      894063 :     case MINUS_EXPR:
    7164                 :      894063 :       {
    7165                 :      894063 :         tree _q20 = TREE_OPERAND (_p0, 0);
    7166                 :      894063 :         tree _q21 = TREE_OPERAND (_p0, 1);
    7167                 :      894063 :         {
    7168                 :      894063 :           tree _q20_pops[1];
    7169                 :      894063 :           if (tree_nop_convert (_q20, _q20_pops))
    7170                 :             :             {
    7171                 :       64718 :               tree _q30 = _q20_pops[0];
    7172                 :       64718 :               if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
    7173                 :             :                 {
    7174                 :           0 :                   {
    7175                 :           0 :                     tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q21 };
    7176                 :           0 :                     tree res = generic_simplify_51 (loc, type, _p0, _p1, captures);
    7177                 :           0 :                     if (res) return res;
    7178                 :             :                   }
    7179                 :             :                 }
    7180                 :             :             }
    7181                 :             :         }
    7182                 :      894063 :         if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
    7183                 :             :           {
    7184                 :         173 :             {
    7185                 :         173 :               tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
    7186                 :         173 :               tree res = generic_simplify_51 (loc, type, _p0, _p1, captures);
    7187                 :         173 :               if (res) return res;
    7188                 :             :             }
    7189                 :             :           }
    7190                 :             :         break;
    7191                 :             :       }
    7192                 :    21788442 :     default:;
    7193                 :             :     }
    7194                 :    21788442 : {
    7195                 :    21788442 :   tree _p0_pops[1];
    7196                 :    21788442 :   if (tree_nop_convert (_p0, _p0_pops))
    7197                 :             :     {
    7198                 :     4157179 :       tree _q20 = _p0_pops[0];
    7199                 :     4157179 :       switch (TREE_CODE (_q20))
    7200                 :             :         {
    7201                 :      331700 :         case PLUS_EXPR:
    7202                 :      331700 :           {
    7203                 :      331700 :             tree _q30 = TREE_OPERAND (_q20, 0);
    7204                 :      331700 :             tree _q31 = TREE_OPERAND (_q20, 1);
    7205                 :      331700 :             {
    7206                 :      331700 :               tree _q30_pops[1];
    7207                 :      331700 :               if (tree_nop_convert (_q30, _q30_pops))
    7208                 :             :                 {
    7209                 :       30829 :                   tree _q40 = _q30_pops[0];
    7210                 :       30829 :                   if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
    7211                 :             :                     {
    7212                 :         602 :                       {
    7213                 :         602 :                         tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q31 };
    7214                 :         602 :                         tree res = generic_simplify_50 (loc, type, _p0, _p1, captures);
    7215                 :         602 :                         if (res) return res;
    7216                 :             :                       }
    7217                 :             :                     }
    7218                 :             :                 }
    7219                 :             :             }
    7220                 :      331098 :             {
    7221                 :      331098 :               tree _q31_pops[1];
    7222                 :      331098 :               if (tree_nop_convert (_q31, _q31_pops))
    7223                 :             :                 {
    7224                 :        2147 :                   tree _q50 = _q31_pops[0];
    7225                 :        2147 :                   if ((_p1 == _q50 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q50, 0) && types_match (_p1, _q50)))
    7226                 :             :                     {
    7227                 :          52 :                       {
    7228                 :          52 :                         tree captures[2] ATTRIBUTE_UNUSED = { _q50, _q30 };
    7229                 :          52 :                         tree res = generic_simplify_50 (loc, type, _p0, _p1, captures);
    7230                 :          52 :                         if (res) return res;
    7231                 :             :                       }
    7232                 :             :                     }
    7233                 :             :                 }
    7234                 :             :             }
    7235                 :      331046 :             if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
    7236                 :             :               {
    7237                 :          16 :                 {
    7238                 :          16 :                   tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
    7239                 :          16 :                   tree res = generic_simplify_50 (loc, type, _p0, _p1, captures);
    7240                 :          16 :                   if (res) return res;
    7241                 :             :                 }
    7242                 :             :               }
    7243                 :      331030 :             if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
    7244                 :             :               {
    7245                 :           0 :                 {
    7246                 :           0 :                   tree captures[2] ATTRIBUTE_UNUSED = { _q31, _q30 };
    7247                 :           0 :                   tree res = generic_simplify_50 (loc, type, _p0, _p1, captures);
    7248                 :           0 :                   if (res) return res;
    7249                 :             :                 }
    7250                 :             :               }
    7251                 :             :             break;
    7252                 :             :           }
    7253                 :         871 :         case MINUS_EXPR:
    7254                 :         871 :           {
    7255                 :         871 :             tree _q30 = TREE_OPERAND (_q20, 0);
    7256                 :         871 :             tree _q31 = TREE_OPERAND (_q20, 1);
    7257                 :         871 :             {
    7258                 :         871 :               tree _q30_pops[1];
    7259                 :         871 :               if (tree_nop_convert (_q30, _q30_pops))
    7260                 :             :                 {
    7261                 :         396 :                   tree _q40 = _q30_pops[0];
    7262                 :         396 :                   if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
    7263                 :             :                     {
    7264                 :           0 :                       {
    7265                 :           0 :                         tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q31 };
    7266                 :           0 :                         tree res = generic_simplify_51 (loc, type, _p0, _p1, captures);
    7267                 :           0 :                         if (res) return res;
    7268                 :             :                       }
    7269                 :             :                     }
    7270                 :             :                 }
    7271                 :             :             }
    7272                 :         871 :             if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
    7273                 :             :               {
    7274                 :           0 :                 {
    7275                 :           0 :                   tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
    7276                 :           0 :                   tree res = generic_simplify_51 (loc, type, _p0, _p1, captures);
    7277                 :           0 :                   if (res) return res;
    7278                 :             :                 }
    7279                 :             :               }
    7280                 :             :             break;
    7281                 :             :           }
    7282                 :             :         default:;
    7283                 :             :         }
    7284                 :             :     }
    7285                 :             : }
    7286                 :    21787772 :   switch (TREE_CODE (_p1))
    7287                 :             :     {
    7288                 :     1236458 :     case PLUS_EXPR:
    7289                 :     1236458 :       {
    7290                 :     1236458 :         tree _q30 = TREE_OPERAND (_p1, 0);
    7291                 :     1236458 :         tree _q31 = TREE_OPERAND (_p1, 1);
    7292                 :     1236458 :         {
    7293                 :     1236458 :           tree _q30_pops[1];
    7294                 :     1236458 :           if (tree_nop_convert (_q30, _q30_pops))
    7295                 :             :             {
    7296                 :      312458 :               tree _q40 = _q30_pops[0];
    7297                 :      312458 :               if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
    7298                 :             :                 {
    7299                 :          71 :                   {
    7300                 :          71 :                     tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
    7301                 :          71 :                     tree res = generic_simplify_52 (loc, type, _p0, _p1, captures);
    7302                 :          71 :                     if (res) return res;
    7303                 :             :                   }
    7304                 :             :                 }
    7305                 :             :             }
    7306                 :             :         }
    7307                 :     1236387 :         {
    7308                 :     1236387 :           tree _q31_pops[1];
    7309                 :     1236387 :           if (tree_nop_convert (_q31, _q31_pops))
    7310                 :             :             {
    7311                 :       57841 :               tree _q50 = _q31_pops[0];
    7312                 :       57841 :               if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
    7313                 :             :                 {
    7314                 :           0 :                   {
    7315                 :           0 :                     tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
    7316                 :           0 :                     tree res = generic_simplify_52 (loc, type, _p0, _p1, captures);
    7317                 :           0 :                     if (res) return res;
    7318                 :             :                   }
    7319                 :             :                 }
    7320                 :             :             }
    7321                 :             :         }
    7322                 :     1236387 :         if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
    7323                 :             :           {
    7324                 :       38001 :             {
    7325                 :       38001 :               tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
    7326                 :       38001 :               tree res = generic_simplify_52 (loc, type, _p0, _p1, captures);
    7327                 :       38001 :               if (res) return res;
    7328                 :             :             }
    7329                 :             :           }
    7330                 :     1198386 :         if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
    7331                 :             :           {
    7332                 :        2661 :             {
    7333                 :        2661 :               tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
    7334                 :        2661 :               tree res = generic_simplify_52 (loc, type, _p0, _p1, captures);
    7335                 :        2661 :               if (res) return res;
    7336                 :             :             }
    7337                 :             :           }
    7338                 :             :         break;
    7339                 :             :       }
    7340                 :       68927 :     case MINUS_EXPR:
    7341                 :       68927 :       {
    7342                 :       68927 :         tree _q30 = TREE_OPERAND (_p1, 0);
    7343                 :       68927 :         tree _q31 = TREE_OPERAND (_p1, 1);
    7344                 :       68927 :         {
    7345                 :       68927 :           tree _q30_pops[1];
    7346                 :       68927 :           if (tree_nop_convert (_q30, _q30_pops))
    7347                 :             :             {
    7348                 :          61 :               tree _q40 = _q30_pops[0];
    7349                 :          61 :               if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
    7350                 :             :                 {
    7351                 :           0 :                   {
    7352                 :           0 :                     tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
    7353                 :           0 :                     tree res = generic_simplify_53 (loc, type, _p0, _p1, captures);
    7354                 :           0 :                     if (res) return res;
    7355                 :             :                   }
    7356                 :             :                 }
    7357                 :             :             }
    7358                 :             :         }
    7359                 :       68927 :         if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
    7360                 :             :           {
    7361                 :         134 :             {
    7362                 :         134 :               tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
    7363                 :         134 :               tree res = generic_simplify_53 (loc, type, _p0, _p1, captures);
    7364                 :         134 :               if (res) return res;
    7365                 :             :             }
    7366                 :             :           }
    7367                 :             :         break;
    7368                 :             :       }
    7369                 :    21746905 :     default:;
    7370                 :             :     }
    7371                 :    21746905 : {
    7372                 :    21746905 :   tree _p1_pops[1];
    7373                 :    21746905 :   if (tree_nop_convert (_p1, _p1_pops))
    7374                 :             :     {
    7375                 :     6241040 :       tree _q30 = _p1_pops[0];
    7376                 :     6241040 :       switch (TREE_CODE (_q30))
    7377                 :             :         {
    7378                 :      654752 :         case PLUS_EXPR:
    7379                 :      654752 :           {
    7380                 :      654752 :             tree _q40 = TREE_OPERAND (_q30, 0);
    7381                 :      654752 :             tree _q41 = TREE_OPERAND (_q30, 1);
    7382                 :      654752 :             {
    7383                 :      654752 :               tree _q40_pops[1];
    7384                 :      654752 :               if (tree_nop_convert (_q40, _q40_pops))
    7385                 :             :                 {
    7386                 :       70565 :                   tree _q50 = _q40_pops[0];
    7387                 :       70565 :                   if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
    7388                 :             :                     {
    7389                 :         105 :                       {
    7390                 :         105 :                         tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q41 };
    7391                 :         105 :                         tree res = generic_simplify_52 (loc, type, _p0, _p1, captures);
    7392                 :         105 :                         if (res) return res;
    7393                 :             :                       }
    7394                 :             :                     }
    7395                 :             :                 }
    7396                 :             :             }
    7397                 :      654647 :             {
    7398                 :      654647 :               tree _q41_pops[1];
    7399                 :      654647 :               if (tree_nop_convert (_q41, _q41_pops))
    7400                 :             :                 {
    7401                 :       17485 :                   tree _q60 = _q41_pops[0];
    7402                 :       17485 :                   if ((_q60 == _p0 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _p0, 0) && types_match (_q60, _p0)))
    7403                 :             :                     {
    7404                 :           0 :                       {
    7405                 :           0 :                         tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q40 };
    7406                 :           0 :                         tree res = generic_simplify_52 (loc, type, _p0, _p1, captures);
    7407                 :           0 :                         if (res) return res;
    7408                 :             :                       }
    7409                 :             :                     }
    7410                 :             :                 }
    7411                 :             :             }
    7412                 :      654647 :             if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
    7413                 :             :               {
    7414                 :           6 :                 {
    7415                 :           6 :                   tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q41 };
    7416                 :           6 :                   tree res = generic_simplify_52 (loc, type, _p0, _p1, captures);
    7417                 :           6 :                   if (res) return res;
    7418                 :             :                 }
    7419                 :             :               }
    7420                 :      654641 :             if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
    7421                 :             :               {
    7422                 :           4 :                 {
    7423                 :           4 :                   tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q40 };
    7424                 :           4 :                   tree res = generic_simplify_52 (loc, type, _p0, _p1, captures);
    7425                 :           4 :                   if (res) return res;
    7426                 :             :                 }
    7427                 :             :               }
    7428                 :             :             break;
    7429                 :             :           }
    7430                 :        7399 :         case MINUS_EXPR:
    7431                 :        7399 :           {
    7432                 :        7399 :             tree _q40 = TREE_OPERAND (_q30, 0);
    7433                 :        7399 :             tree _q41 = TREE_OPERAND (_q30, 1);
    7434                 :        7399 :             {
    7435                 :        7399 :               tree _q40_pops[1];
    7436                 :        7399 :               if (tree_nop_convert (_q40, _q40_pops))
    7437                 :             :                 {
    7438                 :        6706 :                   tree _q50 = _q40_pops[0];
    7439                 :        6706 :                   if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
    7440                 :             :                     {
    7441                 :           0 :                       {
    7442                 :           0 :                         tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q41 };
    7443                 :           0 :                         tree res = generic_simplify_53 (loc, type, _p0, _p1, captures);
    7444                 :           0 :                         if (res) return res;
    7445                 :             :                       }
    7446                 :             :                     }
    7447                 :             :                 }
    7448                 :             :             }
    7449                 :        7399 :             if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
    7450                 :             :               {
    7451                 :           2 :                 {
    7452                 :           2 :                   tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q41 };
    7453                 :           2 :                   tree res = generic_simplify_53 (loc, type, _p0, _p1, captures);
    7454                 :           2 :                   if (res) return res;
    7455                 :             :                 }
    7456                 :             :               }
    7457                 :             :             break;
    7458                 :             :           }
    7459                 :             :         default:;
    7460                 :             :         }
    7461                 :             :     }
    7462                 :             : }
    7463                 :    21746788 :   switch (TREE_CODE (_p0))
    7464                 :             :     {
    7465                 :     1271880 :     case PLUS_EXPR:
    7466                 :     1271880 :       {
    7467                 :     1271880 :         tree _q20 = TREE_OPERAND (_p0, 0);
    7468                 :     1271880 :         tree _q21 = TREE_OPERAND (_p0, 1);
    7469                 :     1271880 :         switch (TREE_CODE (_p1))
    7470                 :             :           {
    7471                 :           0 :           case MINUS_EXPR:
    7472                 :           0 :             {
    7473                 :           0 :               tree _q50 = TREE_OPERAND (_p1, 0);
    7474                 :           0 :               tree _q51 = TREE_OPERAND (_p1, 1);
    7475                 :           0 :               if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
    7476                 :             :                 {
    7477                 :           0 :                   {
    7478                 :           0 :                     tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
    7479                 :           0 :                     tree res = generic_simplify_54 (loc, type, _p0, _p1, captures);
    7480                 :           0 :                     if (res) return res;
    7481                 :             :                   }
    7482                 :             :                 }
    7483                 :           0 :               if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
    7484                 :             :                 {
    7485                 :           0 :                   {
    7486                 :           0 :                     tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
    7487                 :           0 :                     tree res = generic_simplify_54 (loc, type, _p0, _p1, captures);
    7488                 :           0 :                     if (res) return res;
    7489                 :             :                   }
    7490                 :             :                 }
    7491                 :             :               break;
    7492                 :             :             }
    7493                 :     1271880 :           default:;
    7494                 :             :           }
    7495                 :     1271880 :         if (CONSTANT_CLASS_P (_q21))
    7496                 :             :           {
    7497                 :      559144 :             if (CONSTANT_CLASS_P (_p1))
    7498                 :             :               {
    7499                 :          13 :                 {
    7500                 :          13 :                   tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
    7501                 :          13 :                   tree res = generic_simplify_17 (loc, type, _p0, _p1, captures, PLUS_EXPR, MINUS_EXPR, MINUS_EXPR);
    7502                 :          13 :                   if (res) return res;
    7503                 :             :                 }
    7504                 :             :               }
    7505                 :             :           }
    7506                 :             :         break;
    7507                 :             :       }
    7508                 :      893890 :     case MINUS_EXPR:
    7509                 :      893890 :       {
    7510                 :      893890 :         tree _q20 = TREE_OPERAND (_p0, 0);
    7511                 :      893890 :         tree _q21 = TREE_OPERAND (_p0, 1);
    7512                 :      893890 :         if (CONSTANT_CLASS_P (_q21))
    7513                 :             :           {
    7514                 :      100376 :             if (CONSTANT_CLASS_P (_p1))
    7515                 :             :               {
    7516                 :          12 :                 {
    7517                 :          12 :                   tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
    7518                 :          12 :                   tree res = generic_simplify_17 (loc, type, _p0, _p1, captures, MINUS_EXPR, PLUS_EXPR, MINUS_EXPR);
    7519                 :          12 :                   if (res) return res;
    7520                 :             :                 }
    7521                 :             :               }
    7522                 :             :           }
    7523                 :      893890 :         if (CONSTANT_CLASS_P (_q20))
    7524                 :             :           {
    7525                 :        2858 :             if (CONSTANT_CLASS_P (_p1))
    7526                 :             :               {
    7527                 :           1 :                 {
    7528                 :           1 :                   tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
    7529                 :           1 :                   tree res = generic_simplify_18 (loc, type, _p0, _p1, captures, MINUS_EXPR);
    7530                 :           1 :                   if (res) return res;
    7531                 :             :                 }
    7532                 :             :               }
    7533                 :             :           }
    7534                 :             :         break;
    7535                 :             :       }
    7536                 :     4543353 :     CASE_CONVERT:
    7537                 :     4543353 :       {
    7538                 :     4543353 :         tree _q20 = TREE_OPERAND (_p0, 0);
    7539                 :     4543353 :         switch (TREE_CODE (_p1))
    7540                 :             :           {
    7541                 :     3778600 :           CASE_CONVERT:
    7542                 :     3778600 :             {
    7543                 :     3778600 :               tree _q40 = TREE_OPERAND (_p1, 0);
    7544                 :     3778600 :               {
    7545                 :     3778600 :                 tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
    7546                 :     3778600 :                 tree res = generic_simplify_22 (loc, type, _p0, _p1, captures, MINUS_EXPR);
    7547                 :     3778600 :                 if (res) return res;
    7548                 :             :               }
    7549                 :     3765477 :               break;
    7550                 :             :             }
    7551                 :     4530230 :           default:;
    7552                 :             :           }
    7553                 :     4530230 :         switch (TREE_CODE (_q20))
    7554                 :             :           {
    7555                 :         223 :           case NEGATE_EXPR:
    7556                 :         223 :             {
    7557                 :         223 :               tree _q30 = TREE_OPERAND (_q20, 0);
    7558                 :         223 :               if (integer_each_onep (_p1))
    7559                 :             :                 {
    7560                 :           0 :                   {
    7561                 :           0 :                     tree captures[1] ATTRIBUTE_UNUSED = { _q30 };
    7562                 :           0 :                     tree res = generic_simplify_56 (loc, type, _p0, _p1, captures);
    7563                 :           0 :                     if (res) return res;
    7564                 :             :                   }
    7565                 :             :                 }
    7566                 :             :               break;
    7567                 :             :             }
    7568                 :      380942 :           case PLUS_EXPR:
    7569                 :      380942 :             {
    7570                 :      380942 :               tree _q30 = TREE_OPERAND (_q20, 0);
    7571                 :      380942 :               tree _q31 = TREE_OPERAND (_q20, 1);
    7572                 :      380942 :               switch (TREE_CODE (_p1))
    7573                 :             :                 {
    7574                 :      364742 :                 CASE_CONVERT:
    7575                 :      364742 :                   {
    7576                 :      364742 :                     tree _q60 = TREE_OPERAND (_p1, 0);
    7577                 :      364742 :                     if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q30, 0))
    7578                 :             :                       {
    7579                 :        5479 :                         {
    7580                 :        5479 :                           tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q30 };
    7581                 :        5479 :                           tree res = generic_simplify_57 (loc, type, _p0, _p1, captures);
    7582                 :        5479 :                           if (res) return res;
    7583                 :             :                         }
    7584                 :             :                       }
    7585                 :      359377 :                     if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q31, 0))
    7586                 :             :                       {
    7587                 :          30 :                         {
    7588                 :          30 :                           tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q31 };
    7589                 :          30 :                           tree res = generic_simplify_57 (loc, type, _p0, _p1, captures);
    7590                 :          30 :                           if (res) return res;
    7591                 :             :                         }
    7592                 :             :                       }
    7593                 :             :                     break;
    7594                 :             :                   }
    7595                 :      375547 :                 default:;
    7596                 :             :                 }
    7597                 :      375547 :               if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q30, 0))
    7598                 :             :                 {
    7599                 :        3853 :                   {
    7600                 :        3853 :                     tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q30 };
    7601                 :        3853 :                     tree res = generic_simplify_57 (loc, type, _p0, _p1, captures);
    7602                 :        3853 :                     if (res) return res;
    7603                 :             :                   }
    7604                 :             :                 }
    7605                 :      371694 :               if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q31, 0))
    7606                 :             :                 {
    7607                 :         960 :                   {
    7608                 :         960 :                     tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q31 };
    7609                 :         960 :                     tree res = generic_simplify_57 (loc, type, _p0, _p1, captures);
    7610                 :         960 :                     if (res) return res;
    7611                 :             :                   }
    7612                 :             :                 }
    7613                 :             :               break;
    7614                 :             :             }
    7615                 :       80114 :           case POINTER_PLUS_EXPR:
    7616                 :       80114 :             {
    7617                 :       80114 :               tree _q30 = TREE_OPERAND (_q20, 0);
    7618                 :       80114 :               tree _q31 = TREE_OPERAND (_q20, 1);
    7619                 :       80114 :               switch (TREE_CODE (_p1))
    7620                 :             :                 {
    7621                 :       78963 :                 CASE_CONVERT:
    7622                 :       78963 :                   {
    7623                 :       78963 :                     tree _q60 = TREE_OPERAND (_p1, 0);
    7624                 :       78963 :                     if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q30, 0))
    7625                 :             :                       {
    7626                 :        8181 :                         {
    7627                 :        8181 :                           tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q30 };
    7628                 :        8181 :                           if (!TYPE_SATURATING (type)
    7629                 :             : )
    7630                 :             :                             {
    7631                 :        8181 :                               if ((!FLOAT_TYPE_P (type) || flag_associative_math)
    7632                 :       16362 :  && !FIXED_POINT_TYPE_P (type)
    7633                 :             : )
    7634                 :             :                                 {
    7635                 :        8181 :                                   if (element_precision (type) <= element_precision (TREE_TYPE (captures[1]))
    7636                 :        8181 :  || (POINTER_TYPE_P (TREE_TYPE (captures[0]))
    7637                 :           0 :  && TREE_CODE (captures[1]) == INTEGER_CST
    7638                 :           0 :  && tree_int_cst_sign_bit (captures[1]) == 0)
    7639                 :             : )
    7640                 :             :                                     {
    7641                 :        8181 :                                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1381;
    7642                 :        8181 :                                       {
    7643                 :        8181 :                                         tree res_op0;
    7644                 :        8181 :                                         res_op0 = captures[1];
    7645                 :        8181 :                                         tree _r;
    7646                 :        8181 :                                         _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
    7647                 :        8181 :                                         if (TREE_SIDE_EFFECTS (captures[2]))
    7648                 :          11 :                                           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    7649                 :        8181 :                                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 941, __FILE__, __LINE__, true);
    7650                 :        8181 :                                         return _r;
    7651                 :             :                                       }
    7652                 :           0 : next_after_fail1381:;
    7653                 :             :                                     }
    7654                 :             :                                 }
    7655                 :             :                             }
    7656                 :             :                         }
    7657                 :             :                       }
    7658                 :             :                     break;
    7659                 :             :                   }
    7660                 :             :                 default:;
    7661                 :             :                 }
    7662                 :             :               break;
    7663                 :             :             }
    7664                 :     4511841 :           default:;
    7665                 :             :           }
    7666                 :     4511841 :         switch (TREE_CODE (_p1))
    7667                 :             :           {
    7668                 :     3747216 :           CASE_CONVERT:
    7669                 :     3747216 :             {
    7670                 :     3747216 :               tree _q40 = TREE_OPERAND (_p1, 0);
    7671                 :     3747216 :               switch (TREE_CODE (_q40))
    7672                 :             :                 {
    7673                 :      476350 :                 case PLUS_EXPR:
    7674                 :      476350 :                   {
    7675                 :      476350 :                     tree _q50 = TREE_OPERAND (_q40, 0);
    7676                 :      476350 :                     tree _q51 = TREE_OPERAND (_q40, 1);
    7677                 :      476350 :                     if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
    7678                 :             :                       {
    7679                 :        1948 :                         {
    7680                 :        1948 :                           tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q51, _q20 };
    7681                 :        1948 :                           tree res = generic_simplify_58 (loc, type, _p0, _p1, captures);
    7682                 :        1948 :                           if (res) return res;
    7683                 :             :                         }
    7684                 :             :                       }
    7685                 :      474474 :                     if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q20, 0))
    7686                 :             :                       {
    7687                 :          18 :                         {
    7688                 :          18 :                           tree captures[3] ATTRIBUTE_UNUSED = { _q51, _q50, _q20 };
    7689                 :          18 :                           tree res = generic_simplify_58 (loc, type, _p0, _p1, captures);
    7690                 :          18 :                           if (res) return res;
    7691                 :             :                         }
    7692                 :             :                       }
    7693                 :             :                     break;
    7694                 :             :                   }
    7695                 :             :                 default:;
    7696                 :             :                 }
    7697                 :             :               break;
    7698                 :             :             }
    7699                 :             :           default:;
    7700                 :             :           }
    7701                 :             :         break;
    7702                 :             :       }
    7703                 :      148955 :     case NEGATE_EXPR:
    7704                 :      148955 :       {
    7705                 :      148955 :         tree _q20 = TREE_OPERAND (_p0, 0);
    7706                 :      148955 :         if (integer_each_onep (_p1))
    7707                 :             :           {
    7708                 :          41 :             {
    7709                 :          41 :               tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
    7710                 :          41 :               tree res = generic_simplify_56 (loc, type, _p0, _p1, captures);
    7711                 :          41 :               if (res) return res;
    7712                 :             :             }
    7713                 :             :           }
    7714                 :             :         break;
    7715                 :             :       }
    7716                 :    21713341 :     default:;
    7717                 :             :     }
    7718                 :    21713341 : {
    7719                 :    21713341 :   tree _p0_pops[1];
    7720                 :    21713341 :   if (tree_nop_convert (_p0, _p0_pops))
    7721                 :             :     {
    7722                 :     4114120 :       tree _q20 = _p0_pops[0];
    7723                 :     4114120 :       switch (TREE_CODE (_q20))
    7724                 :             :         {
    7725                 :      313573 :         case PLUS_EXPR:
    7726                 :      313573 :           {
    7727                 :      313573 :             tree _q30 = TREE_OPERAND (_q20, 0);
    7728                 :      313573 :             tree _q31 = TREE_OPERAND (_q20, 1);
    7729                 :      313573 :             if (CONSTANT_CLASS_P (_q31))
    7730                 :             :               {
    7731                 :      307034 :                 if (CONSTANT_CLASS_P (_p1))
    7732                 :             :                   {
    7733                 :           0 :                     {
    7734                 :           0 :                       tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
    7735                 :           0 :                       tree res = generic_simplify_17 (loc, type, _p0, _p1, captures, PLUS_EXPR, MINUS_EXPR, MINUS_EXPR);
    7736                 :           0 :                       if (res) return res;
    7737                 :             :                     }
    7738                 :             :                   }
    7739                 :             :               }
    7740                 :             :             break;
    7741                 :             :           }
    7742                 :         871 :         case MINUS_EXPR:
    7743                 :         871 :           {
    7744                 :         871 :             tree _q30 = TREE_OPERAND (_q20, 0);
    7745                 :         871 :             tree _q31 = TREE_OPERAND (_q20, 1);
    7746                 :         871 :             if (CONSTANT_CLASS_P (_q31))
    7747                 :             :               {
    7748                 :           0 :                 if (CONSTANT_CLASS_P (_p1))
    7749                 :             :                   {
    7750                 :           0 :                     {
    7751                 :           0 :                       tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
    7752                 :           0 :                       tree res = generic_simplify_17 (loc, type, _p0, _p1, captures, MINUS_EXPR, PLUS_EXPR, MINUS_EXPR);
    7753                 :           0 :                       if (res) return res;
    7754                 :             :                     }
    7755                 :             :                   }
    7756                 :             :               }
    7757                 :         871 :             if (CONSTANT_CLASS_P (_q30))
    7758                 :             :               {
    7759                 :          18 :                 if (CONSTANT_CLASS_P (_p1))
    7760                 :             :                   {
    7761                 :           0 :                     {
    7762                 :           0 :                       tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
    7763                 :           0 :                       tree res = generic_simplify_18 (loc, type, _p0, _p1, captures, MINUS_EXPR);
    7764                 :           0 :                       if (res) return res;
    7765                 :             :                     }
    7766                 :             :                   }
    7767                 :             :               }
    7768                 :             :             break;
    7769                 :             :           }
    7770                 :             :         default:;
    7771                 :             :         }
    7772                 :             :     }
    7773                 :             : }
    7774                 :    21713341 : if (CONSTANT_CLASS_P (_p0))
    7775                 :             :   {
    7776                 :     5506115 :     switch (TREE_CODE (_p1))
    7777                 :             :       {
    7778                 :         823 :       case MINUS_EXPR:
    7779                 :         823 :         {
    7780                 :         823 :           tree _q30 = TREE_OPERAND (_p1, 0);
    7781                 :         823 :           tree _q31 = TREE_OPERAND (_p1, 1);
    7782                 :         823 :           if (CONSTANT_CLASS_P (_q30))
    7783                 :             :             {
    7784                 :         639 :               {
    7785                 :         639 :                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q31 };
    7786                 :         639 :                 tree res = generic_simplify_55 (loc, type, _p0, _p1, captures);
    7787                 :         639 :                 if (res) return res;
    7788                 :             :               }
    7789                 :             :             }
    7790                 :             :           break;
    7791                 :             :         }
    7792                 :     5505485 :       default:;
    7793                 :             :       }
    7794                 :     5505485 :   {
    7795                 :     5505485 :     tree _p1_pops[1];
    7796                 :     5505485 :     if (tree_nop_convert (_p1, _p1_pops))
    7797                 :             :       {
    7798                 :     1750314 :         tree _q30 = _p1_pops[0];
    7799                 :     1750314 :         switch (TREE_CODE (_q30))
    7800                 :             :           {
    7801                 :        7194 :           case MINUS_EXPR:
    7802                 :        7194 :             {
    7803                 :        7194 :               tree _q40 = TREE_OPERAND (_q30, 0);
    7804                 :        7194 :               tree _q41 = TREE_OPERAND (_q30, 1);
    7805                 :        7194 :               if (CONSTANT_CLASS_P (_q40))
    7806                 :             :                 {
    7807                 :          25 :                   {
    7808                 :          25 :                     tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q40, _q41 };
    7809                 :          25 :                     tree res = generic_simplify_55 (loc, type, _p0, _p1, captures);
    7810                 :          25 :                     if (res) return res;
    7811                 :             :                   }
    7812                 :             :                 }
    7813                 :             :               break;
    7814                 :             :             }
    7815                 :             :           default:;
    7816                 :             :           }
    7817                 :             :       }
    7818                 :             :   }
    7819                 :             :   }
    7820                 :    21712686 : if (integer_all_onesp (_p0))
    7821                 :             :   {
    7822                 :     1266306 :     {
    7823                 :     1266306 :       tree captures[1] ATTRIBUTE_UNUSED = { _p1 };
    7824                 :     1266306 :       if (!TYPE_SATURATING (type)
    7825                 :             : )
    7826                 :             :         {
    7827                 :     1266306 :           if ((!FLOAT_TYPE_P (type) || flag_associative_math)
    7828                 :     2532612 :  && !FIXED_POINT_TYPE_P (type)
    7829                 :             : )
    7830                 :             :             {
    7831                 :     1266306 :               if (TREE_CODE (type) != COMPLEX_TYPE
    7832                 :             : )
    7833                 :             :                 {
    7834                 :     1266304 :                   if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1382;
    7835                 :     1266304 :                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1382;
    7836                 :     1266304 :                   {
    7837                 :     1266304 :                     tree res_op0;
    7838                 :     1266304 :                     res_op0 = captures[0];
    7839                 :     1266304 :                     tree _r;
    7840                 :     1266304 :                     _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
    7841                 :     1266304 :                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 942, __FILE__, __LINE__, true);
    7842                 :     1266304 :                     return _r;
    7843                 :             :                   }
    7844                 :             : next_after_fail1382:;
    7845                 :             :                 }
    7846                 :             :             }
    7847                 :             :         }
    7848                 :             :     }
    7849                 :             :   }
    7850                 :    20446382 :   switch (TREE_CODE (_p1))
    7851                 :             :     {
    7852                 :     6560948 :     CASE_CONVERT:
    7853                 :     6560948 :       {
    7854                 :     6560948 :         tree _q30 = TREE_OPERAND (_p1, 0);
    7855                 :     6560948 :         switch (TREE_CODE (_q30))
    7856                 :             :           {
    7857                 :      665288 :           case PLUS_EXPR:
    7858                 :      665288 :             {
    7859                 :      665288 :               tree _q40 = TREE_OPERAND (_q30, 0);
    7860                 :      665288 :               tree _q41 = TREE_OPERAND (_q30, 1);
    7861                 :      665288 :               if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _p0, 0))
    7862                 :             :                 {
    7863                 :           0 :                   {
    7864                 :           0 :                     tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _p0 };
    7865                 :           0 :                     tree res = generic_simplify_58 (loc, type, _p0, _p1, captures);
    7866                 :           0 :                     if (res) return res;
    7867                 :             :                   }
    7868                 :             :                 }
    7869                 :      665288 :               if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _p0, 0))
    7870                 :             :                 {
    7871                 :        8000 :                   {
    7872                 :        8000 :                     tree captures[3] ATTRIBUTE_UNUSED = { _q41, _q40, _p0 };
    7873                 :        8000 :                     tree res = generic_simplify_58 (loc, type, _p0, _p1, captures);
    7874                 :        8000 :                     if (res) return res;
    7875                 :             :                   }
    7876                 :             :                 }
    7877                 :             :               break;
    7878                 :             :             }
    7879                 :             :           default:;
    7880                 :             :           }
    7881                 :             :         break;
    7882                 :             :       }
    7883                 :    20438553 :     default:;
    7884                 :             :     }
    7885                 :    20438553 :   switch (TREE_CODE (_p0))
    7886                 :             :     {
    7887                 :     4509947 :     CASE_CONVERT:
    7888                 :     4509947 :       {
    7889                 :     4509947 :         tree _q20 = TREE_OPERAND (_p0, 0);
    7890                 :     4509947 :         switch (TREE_CODE (_p1))
    7891                 :             :           {
    7892                 :     3745322 :           CASE_CONVERT:
    7893                 :     3745322 :             {
    7894                 :     3745322 :               tree _q40 = TREE_OPERAND (_p1, 0);
    7895                 :     3745322 :               switch (TREE_CODE (_q40))
    7896                 :             :                 {
    7897                 :      350054 :                 case POINTER_PLUS_EXPR:
    7898                 :      350054 :                   {
    7899                 :      350054 :                     tree _q50 = TREE_OPERAND (_q40, 0);
    7900                 :      350054 :                     tree _q51 = TREE_OPERAND (_q40, 1);
    7901                 :      350054 :                     if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
    7902                 :             :                       {
    7903                 :         251 :                         {
    7904                 :         251 :                           tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q51, _q20 };
    7905                 :         251 :                           if (!TYPE_SATURATING (type)
    7906                 :             : )
    7907                 :             :                             {
    7908                 :         251 :                               if ((!FLOAT_TYPE_P (type) || flag_associative_math)
    7909                 :         502 :  && !FIXED_POINT_TYPE_P (type)
    7910                 :             : )
    7911                 :             :                                 {
    7912                 :         251 :                                   if (INTEGRAL_TYPE_P (type)
    7913                 :         251 :  && TYPE_OVERFLOW_UNDEFINED (type)
    7914                 :           0 :  && TREE_CODE (captures[1]) != INTEGER_CST
    7915                 :         251 :  && element_precision (type) <= element_precision (TREE_TYPE (captures[1]))
    7916                 :             : )
    7917                 :             :                                     {
    7918                 :           0 :                                       {
    7919                 :           0 :  tree utype = unsigned_type_for (type);
    7920                 :           0 :                                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1383;
    7921                 :           0 :                                           {
    7922                 :           0 :                                             tree res_op0;
    7923                 :           0 :                                             {
    7924                 :           0 :                                               tree _o1[1], _r1;
    7925                 :           0 :                                               {
    7926                 :           0 :                                                 tree _o2[1], _r2;
    7927                 :           0 :                                                 _o2[0] = captures[1];
    7928                 :           0 :                                                 if (TREE_TYPE (_o2[0]) != utype)
    7929                 :             :                                                   {
    7930                 :           0 :                                                     _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
    7931                 :             :                                                   }
    7932                 :             :                                                 else
    7933                 :             :                                                   _r2 = _o2[0];
    7934                 :           0 :                                                 _o1[0] = _r2;
    7935                 :             :                                               }
    7936                 :           0 :                                               _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
    7937                 :           0 :                                               res_op0 = _r1;
    7938                 :             :                                             }
    7939                 :           0 :                                             tree _r;
    7940                 :           0 :                                             _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
    7941                 :           0 :                                             if (TREE_SIDE_EFFECTS (captures[2]))
    7942                 :           0 :                                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    7943                 :           0 :                                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 943, __FILE__, __LINE__, true);
    7944                 :           0 :                                             return _r;
    7945                 :             :                                           }
    7946                 :           0 : next_after_fail1383:;
    7947                 :             :                                       }
    7948                 :             :                                     }
    7949                 :             :                                   else
    7950                 :             :                                     {
    7951                 :         251 :                                       if (element_precision (type) <= element_precision (TREE_TYPE (captures[1]))
    7952                 :         251 :  || (POINTER_TYPE_P (TREE_TYPE (captures[0]))
    7953                 :           0 :  && TREE_CODE (captures[1]) == INTEGER_CST
    7954                 :           0 :  && tree_int_cst_sign_bit (captures[1]) == 0)
    7955                 :             : )
    7956                 :             :                                         {
    7957                 :         251 :                                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1384;
    7958                 :         251 :                                           {
    7959                 :         251 :                                             tree res_op0;
    7960                 :         251 :                                             {
    7961                 :         251 :                                               tree _o1[1], _r1;
    7962                 :         251 :                                               _o1[0] = captures[1];
    7963                 :         251 :                                               if (TREE_TYPE (_o1[0]) != type)
    7964                 :             :                                                 {
    7965                 :         247 :                                                   _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
    7966                 :             :                                                 }
    7967                 :             :                                               else
    7968                 :             :                                                 _r1 = _o1[0];
    7969                 :         251 :                                               res_op0 = _r1;
    7970                 :             :                                             }
    7971                 :         251 :                                             tree _r;
    7972                 :         251 :                                             _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
    7973                 :         251 :                                             if (TREE_SIDE_EFFECTS (captures[2]))
    7974                 :           0 :                                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    7975                 :         251 :                                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 944, __FILE__, __LINE__, true);
    7976                 :         251 :                                             return _r;
    7977                 :             :                                           }
    7978                 :           0 : next_after_fail1384:;
    7979                 :             :                                         }
    7980                 :             :                                     }
    7981                 :             :                                 }
    7982                 :             :                             }
    7983                 :             :                         }
    7984                 :             :                       }
    7985                 :             :                     break;
    7986                 :             :                   }
    7987                 :             :                 default:;
    7988                 :             :                 }
    7989                 :             :               break;
    7990                 :             :             }
    7991                 :     4509696 :           default:;
    7992                 :             :           }
    7993                 :     4509696 :         switch (TREE_CODE (_q20))
    7994                 :             :           {
    7995                 :      370734 :           case PLUS_EXPR:
    7996                 :      370734 :             {
    7997                 :      370734 :               tree _q30 = TREE_OPERAND (_q20, 0);
    7998                 :      370734 :               tree _q31 = TREE_OPERAND (_q20, 1);
    7999                 :      370734 :               switch (TREE_CODE (_p1))
    8000                 :             :                 {
    8001                 :      354662 :                 CASE_CONVERT:
    8002                 :      354662 :                   {
    8003                 :      354662 :                     tree _q60 = TREE_OPERAND (_p1, 0);
    8004                 :      354662 :                     switch (TREE_CODE (_q60))
    8005                 :             :                       {
    8006                 :      191730 :                       case PLUS_EXPR:
    8007                 :      191730 :                         {
    8008                 :      191730 :                           tree _q70 = TREE_OPERAND (_q60, 0);
    8009                 :      191730 :                           tree _q71 = TREE_OPERAND (_q60, 1);
    8010                 :      191730 :                           if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || operand_equal_p (_q70, _q30, 0))
    8011                 :             :                             {
    8012                 :        5485 :                               {
    8013                 :        5485 :                                 tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q31, _q71, _q30 };
    8014                 :        5485 :                                 tree res = generic_simplify_59 (loc, type, _p0, _p1, captures);
    8015                 :        5485 :                                 if (res) return res;
    8016                 :             :                               }
    8017                 :             :                             }
    8018                 :      186245 :                           if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || operand_equal_p (_q71, _q30, 0))
    8019                 :             :                             {
    8020                 :          70 :                               {
    8021                 :          70 :                                 tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q31, _q70, _q30 };
    8022                 :          70 :                                 tree res = generic_simplify_59 (loc, type, _p0, _p1, captures);
    8023                 :          70 :                                 if (res) return res;
    8024                 :             :                               }
    8025                 :             :                             }
    8026                 :      186175 :                           if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || operand_equal_p (_q70, _q31, 0))
    8027                 :             :                             {
    8028                 :          90 :                               {
    8029                 :          90 :                                 tree captures[4] ATTRIBUTE_UNUSED = { _q31, _q30, _q71, _q31 };
    8030                 :          90 :                                 tree res = generic_simplify_59 (loc, type, _p0, _p1, captures);
    8031                 :          90 :                                 if (res) return res;
    8032                 :             :                               }
    8033                 :             :                             }
    8034                 :      186085 :                           if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || operand_equal_p (_q71, _q31, 0))
    8035                 :             :                             {
    8036                 :      137364 :                               {
    8037                 :      137364 :                                 tree captures[4] ATTRIBUTE_UNUSED = { _q31, _q30, _q70, _q31 };
    8038                 :      137364 :                                 tree res = generic_simplify_59 (loc, type, _p0, _p1, captures);
    8039                 :      137364 :                                 if (res) return res;
    8040                 :             :                               }
    8041                 :             :                             }
    8042                 :             :                           break;
    8043                 :             :                         }
    8044                 :             :                       default:;
    8045                 :             :                       }
    8046                 :             :                     break;
    8047                 :             :                   }
    8048                 :             :                 default:;
    8049                 :             :                 }
    8050                 :             :               break;
    8051                 :             :             }
    8052                 :       71933 :           case POINTER_PLUS_EXPR:
    8053                 :       71933 :             {
    8054                 :       71933 :               tree _q30 = TREE_OPERAND (_q20, 0);
    8055                 :       71933 :               tree _q31 = TREE_OPERAND (_q20, 1);
    8056                 :       71933 :               switch (TREE_CODE (_p1))
    8057                 :             :                 {
    8058                 :       70782 :                 CASE_CONVERT:
    8059                 :       70782 :                   {
    8060                 :       70782 :                     tree _q60 = TREE_OPERAND (_p1, 0);
    8061                 :       70782 :                     switch (TREE_CODE (_q60))
    8062                 :             :                       {
    8063                 :       38184 :                       case POINTER_PLUS_EXPR:
    8064                 :       38184 :                         {
    8065                 :       38184 :                           tree _q70 = TREE_OPERAND (_q60, 0);
    8066                 :       38184 :                           tree _q71 = TREE_OPERAND (_q60, 1);
    8067                 :       38184 :                           if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || operand_equal_p (_q70, _q30, 0))
    8068                 :             :                             {
    8069                 :        6066 :                               {
    8070                 :        6066 :                                 tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q31, _q71, _q30 };
    8071                 :        6066 :                                 if (!TYPE_SATURATING (type)
    8072                 :             : )
    8073                 :             :                                   {
    8074                 :        6066 :                                     if ((!FLOAT_TYPE_P (type) || flag_associative_math)
    8075                 :       12132 :  && !FIXED_POINT_TYPE_P (type)
    8076                 :             : )
    8077                 :             :                                       {
    8078                 :        6066 :                                         if (INTEGRAL_TYPE_P (type)
    8079                 :        6066 :  && TYPE_OVERFLOW_UNDEFINED (type)
    8080                 :        6066 :  && element_precision (type) <= element_precision (TREE_TYPE (captures[1]))
    8081                 :             : )
    8082                 :             :                                           {
    8083                 :           0 :                                             {
    8084                 :           0 :  tree utype = unsigned_type_for (type);
    8085                 :           0 :                                                 if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1385;
    8086                 :           0 :                                                 {
    8087                 :           0 :                                                   tree res_op0;
    8088                 :           0 :                                                   {
    8089                 :           0 :                                                     tree _o1[2], _r1;
    8090                 :           0 :                                                     {
    8091                 :           0 :                                                       tree _o2[1], _r2;
    8092                 :           0 :                                                       _o2[0] = captures[1];
    8093                 :           0 :                                                       if (TREE_TYPE (_o2[0]) != utype)
    8094                 :             :                                                         {
    8095                 :           0 :                                                           _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
    8096                 :             :                                                         }
    8097                 :             :                                                       else
    8098                 :             :                                                         _r2 = _o2[0];
    8099                 :           0 :                                                       _o1[0] = _r2;
    8100                 :             :                                                     }
    8101                 :           0 :                                                     {
    8102                 :           0 :                                                       tree _o2[1], _r2;
    8103                 :           0 :                                                       _o2[0] = captures[2];
    8104                 :           0 :                                                       if (TREE_TYPE (_o2[0]) != utype)
    8105                 :             :                                                         {
    8106                 :           0 :                                                           _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
    8107                 :             :                                                         }
    8108                 :             :                                                       else
    8109                 :             :                                                         _r2 = _o2[0];
    8110                 :           0 :                                                       _o1[1] = _r2;
    8111                 :             :                                                     }
    8112                 :           0 :                                                     _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    8113                 :           0 :                                                     res_op0 = _r1;
    8114                 :             :                                                   }
    8115                 :           0 :                                                   tree _r;
    8116                 :           0 :                                                   _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
    8117                 :           0 :                                                   if (TREE_SIDE_EFFECTS (captures[3]))
    8118                 :           0 :                                                     _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
    8119                 :           0 :                                                   if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 945, __FILE__, __LINE__, true);
    8120                 :           0 :                                                   return _r;
    8121                 :             :                                                 }
    8122                 :           0 : next_after_fail1385:;
    8123                 :             :                                             }
    8124                 :             :                                           }
    8125                 :             :                                         else
    8126                 :             :                                           {
    8127                 :        6066 :                                             if (element_precision (type) <= element_precision (TREE_TYPE (captures[1]))
    8128                 :        6066 :  || (POINTER_TYPE_P (TREE_TYPE (captures[0]))
    8129                 :           0 :  && TREE_CODE (captures[1]) == INTEGER_CST
    8130                 :           0 :  && tree_int_cst_sign_bit (captures[1]) == 0
    8131                 :           0 :  && TREE_CODE (captures[2]) == INTEGER_CST
    8132                 :           0 :  && tree_int_cst_sign_bit (captures[2]) == 0)
    8133                 :             : )
    8134                 :             :                                               {
    8135                 :        6066 :                                                 if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1386;
    8136                 :        6066 :                                                 {
    8137                 :        6066 :                                                   tree res_op0;
    8138                 :        6066 :                                                   {
    8139                 :        6066 :                                                     tree _o1[1], _r1;
    8140                 :        6066 :                                                     _o1[0] = captures[1];
    8141                 :        6066 :                                                     if (TREE_TYPE (_o1[0]) != type)
    8142                 :             :                                                       {
    8143                 :        5998 :                                                         _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
    8144                 :             :                                                       }
    8145                 :             :                                                     else
    8146                 :             :                                                       _r1 = _o1[0];
    8147                 :        6066 :                                                     res_op0 = _r1;
    8148                 :             :                                                   }
    8149                 :        6066 :                                                   tree res_op1;
    8150                 :        6066 :                                                   {
    8151                 :        6066 :                                                     tree _o1[1], _r1;
    8152                 :        6066 :                                                     _o1[0] = captures[2];
    8153                 :        6066 :                                                     if (TREE_TYPE (_o1[0]) != type)
    8154                 :             :                                                       {
    8155                 :        6013 :                                                         _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
    8156                 :             :                                                       }
    8157                 :             :                                                     else
    8158                 :             :                                                       _r1 = _o1[0];
    8159                 :        6066 :                                                     res_op1 = _r1;
    8160                 :             :                                                   }
    8161                 :        6066 :                                                   tree _r;
    8162                 :        6066 :                                                   _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
    8163                 :        6066 :                                                   if (TREE_SIDE_EFFECTS (captures[3]))
    8164                 :           0 :                                                     _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
    8165                 :        6066 :                                                   if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 946, __FILE__, __LINE__, true);
    8166                 :        6066 :                                                   return _r;
    8167                 :             :                                                 }
    8168                 :           0 : next_after_fail1386:;
    8169                 :             :                                               }
    8170                 :             :                                           }
    8171                 :             :                                       }
    8172                 :             :                                   }
    8173                 :             :                               }
    8174                 :             :                             }
    8175                 :             :                           break;
    8176                 :             :                         }
    8177                 :             :                       default:;
    8178                 :             :                       }
    8179                 :             :                     break;
    8180                 :             :                   }
    8181                 :             :                 default:;
    8182                 :             :                 }
    8183                 :             :               break;
    8184                 :             :             }
    8185                 :             :           default:;
    8186                 :             :           }
    8187                 :             :         break;
    8188                 :             :       }
    8189                 :     1506077 :     case MULT_EXPR:
    8190                 :     1506077 :       {
    8191                 :     1506077 :         tree _q20 = TREE_OPERAND (_p0, 0);
    8192                 :     1506077 :         tree _q21 = TREE_OPERAND (_p0, 1);
    8193                 :     1506077 :         switch (TREE_CODE (_p1))
    8194                 :             :           {
    8195                 :      714312 :           case MULT_EXPR:
    8196                 :      714312 :             {
    8197                 :      714312 :               tree _q50 = TREE_OPERAND (_p1, 0);
    8198                 :      714312 :               tree _q51 = TREE_OPERAND (_p1, 1);
    8199                 :      714312 :               if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
    8200                 :             :                 {
    8201                 :        3901 :                   {
    8202                 :        3901 :                     tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
    8203                 :        3901 :                     tree res = generic_simplify_25 (loc, type, _p0, _p1, captures, MINUS_EXPR);
    8204                 :        3901 :                     if (res) return res;
    8205                 :             :                   }
    8206                 :             :                 }
    8207                 :      713105 :               if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
    8208                 :             :                 {
    8209                 :       13951 :                   {
    8210                 :       13951 :                     tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
    8211                 :       13951 :                     tree res = generic_simplify_25 (loc, type, _p0, _p1, captures, MINUS_EXPR);
    8212                 :       13951 :                     if (res) return res;
    8213                 :             :                   }
    8214                 :             :                 }
    8215                 :      699154 :               if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
    8216                 :             :                 {
    8217                 :       34240 :                   {
    8218                 :       34240 :                     tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
    8219                 :       34240 :                     tree res = generic_simplify_25 (loc, type, _p0, _p1, captures, MINUS_EXPR);
    8220                 :       34240 :                     if (res) return res;
    8221                 :             :                   }
    8222                 :             :                 }
    8223                 :      664996 :               if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
    8224                 :             :                 {
    8225                 :      202828 :                   {
    8226                 :      202828 :                     tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
    8227                 :      202828 :                     tree res = generic_simplify_25 (loc, type, _p0, _p1, captures, MINUS_EXPR);
    8228                 :      202828 :                     if (res) return res;
    8229                 :             :                   }
    8230                 :             :                 }
    8231                 :             :               break;
    8232                 :             :             }
    8233                 :             :           default:;
    8234                 :             :           }
    8235                 :             :         break;
    8236                 :             :       }
    8237                 :    20059123 :     default:;
    8238                 :             :     }
    8239                 :    20059123 :   switch (TREE_CODE (_p1))
    8240                 :             :     {
    8241                 :     1832253 :     case MULT_EXPR:
    8242                 :     1832253 :       {
    8243                 :     1832253 :         tree _q30 = TREE_OPERAND (_p1, 0);
    8244                 :     1832253 :         tree _q31 = TREE_OPERAND (_p1, 1);
    8245                 :     1832253 :         if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
    8246                 :             :           {
    8247                 :        3673 :             {
    8248                 :        3673 :               tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q31 };
    8249                 :        3673 :               tree res = generic_simplify_26 (loc, type, _p0, _p1, captures, MINUS_EXPR);
    8250                 :        3673 :               if (res) return res;
    8251                 :             :             }
    8252                 :             :           }
    8253                 :     1828654 :         if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
    8254                 :             :           {
    8255                 :        1324 :             {
    8256                 :        1324 :               tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q30 };
    8257                 :        1324 :               tree res = generic_simplify_26 (loc, type, _p0, _p1, captures, MINUS_EXPR);
    8258                 :        1324 :               if (res) return res;
    8259                 :             :             }
    8260                 :             :           }
    8261                 :             :         break;
    8262                 :             :       }
    8263                 :    20054299 :     default:;
    8264                 :             :     }
    8265                 :    20054299 :   switch (TREE_CODE (_p0))
    8266                 :             :     {
    8267                 :     1259308 :     case MULT_EXPR:
    8268                 :     1259308 :       {
    8269                 :     1259308 :         tree _q20 = TREE_OPERAND (_p0, 0);
    8270                 :     1259308 :         tree _q21 = TREE_OPERAND (_p0, 1);
    8271                 :     1259308 :         if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
    8272                 :             :           {
    8273                 :       34899 :             {
    8274                 :       34899 :               tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
    8275                 :       34899 :               tree res = generic_simplify_27 (loc, type, _p0, _p1, captures, MINUS_EXPR);
    8276                 :       34899 :               if (res) return res;
    8277                 :             :             }
    8278                 :             :           }
    8279                 :     1224495 :         if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
    8280                 :             :           {
    8281                 :         644 :             {
    8282                 :         644 :               tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
    8283                 :         644 :               tree res = generic_simplify_27 (loc, type, _p0, _p1, captures, MINUS_EXPR);
    8284                 :         644 :               if (res) return res;
    8285                 :             :             }
    8286                 :             :           }
    8287                 :             :         break;
    8288                 :             :       }
    8289                 :    20019387 :     default:;
    8290                 :             :     }
    8291                 :    20019387 :   switch (TREE_CODE (_p1))
    8292                 :             :     {
    8293                 :     1827429 :     case MULT_EXPR:
    8294                 :     1827429 :       {
    8295                 :     1827429 :         tree _q30 = TREE_OPERAND (_p1, 0);
    8296                 :     1827429 :         tree _q31 = TREE_OPERAND (_p1, 1);
    8297                 :     1827429 :         switch (TREE_CODE (_q30))
    8298                 :             :           {
    8299                 :       81136 :           case MINUS_EXPR:
    8300                 :       81136 :             {
    8301                 :       81136 :               tree _q40 = TREE_OPERAND (_q30, 0);
    8302                 :       81136 :               tree _q41 = TREE_OPERAND (_q30, 1);
    8303                 :       81136 :               if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
    8304                 :             :                 {
    8305                 :          19 :                   if (tree_zero_one_valued_p (_q31))
    8306                 :             :                     {
    8307                 :           0 :                       {
    8308                 :           0 :                         tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q41, _q31 };
    8309                 :           0 :                         tree res = generic_simplify_60 (loc, type, _p0, _p1, captures);
    8310                 :           0 :                         if (res) return res;
    8311                 :             :                       }
    8312                 :             :                     }
    8313                 :             :                 }
    8314                 :             :               break;
    8315                 :             :             }
    8316                 :     1827429 :           default:;
    8317                 :             :           }
    8318                 :     1827429 :       if (tree_zero_one_valued_p (_q30))
    8319                 :             :         {
    8320                 :        1144 :           switch (TREE_CODE (_q31))
    8321                 :             :             {
    8322                 :           9 :             case MINUS_EXPR:
    8323                 :           9 :               {
    8324                 :           9 :                 tree _q50 = TREE_OPERAND (_q31, 0);
    8325                 :           9 :                 tree _q51 = TREE_OPERAND (_q31, 1);
    8326                 :           9 :                 if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
    8327                 :             :                   {
    8328                 :           9 :                     {
    8329                 :           9 :                       tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q51, _q30 };
    8330                 :           9 :                       tree res = generic_simplify_60 (loc, type, _p0, _p1, captures);
    8331                 :           9 :                       if (res) return res;
    8332                 :             :                     }
    8333                 :             :                   }
    8334                 :             :                 break;
    8335                 :             :               }
    8336                 :             :             default:;
    8337                 :             :             }
    8338                 :             :         }
    8339                 :             :         break;
    8340                 :             :       }
    8341                 :    20019385 :     default:;
    8342                 :             :     }
    8343                 :    20019385 :   switch (TREE_CODE (_p0))
    8344                 :             :     {
    8345                 :           0 :     case VEC_COND_EXPR:
    8346                 :           0 :       {
    8347                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
    8348                 :           0 :         tree _q21 = TREE_OPERAND (_p0, 1);
    8349                 :           0 :         tree _q22 = TREE_OPERAND (_p0, 2);
    8350                 :           0 :         switch (TREE_CODE (_p1))
    8351                 :             :           {
    8352                 :           0 :           case VEC_COND_EXPR:
    8353                 :           0 :             {
    8354                 :           0 :               tree _q60 = TREE_OPERAND (_p1, 0);
    8355                 :           0 :               tree _q61 = TREE_OPERAND (_p1, 1);
    8356                 :           0 :               tree _q62 = TREE_OPERAND (_p1, 2);
    8357                 :           0 :               if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
    8358                 :             :                 {
    8359                 :           0 :                   {
    8360                 :           0 :                     tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
    8361                 :           0 :                     if (VECTOR_TYPE_P (type)
    8362                 :           0 :  && (TREE_CODE_CLASS (MINUS_EXPR) != tcc_comparison
    8363                 :             :  || types_match (type, TREE_TYPE (captures[2]))
    8364                 :             :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
    8365                 :             :  || (optimize_vectors_before_lowering_p ()
    8366                 :             :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
    8367                 :             : )
    8368                 :             :                       {
    8369                 :           0 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1387;
    8370                 :           0 :                         {
    8371                 :           0 :                           tree res_op0;
    8372                 :           0 :                           res_op0 = captures[1];
    8373                 :           0 :                           tree res_op1;
    8374                 :           0 :                           {
    8375                 :           0 :                             tree _o1[2], _r1;
    8376                 :           0 :                             _o1[0] = captures[2];
    8377                 :           0 :                             _o1[1] = captures[5];
    8378                 :           0 :                             _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    8379                 :           0 :                             if (EXPR_P (_r1))
    8380                 :           0 :                               goto next_after_fail1387;
    8381                 :           0 :                             res_op1 = _r1;
    8382                 :             :                           }
    8383                 :           0 :                           tree res_op2;
    8384                 :           0 :                           {
    8385                 :           0 :                             tree _o1[2], _r1;
    8386                 :           0 :                             _o1[0] = captures[3];
    8387                 :           0 :                             _o1[1] = captures[6];
    8388                 :           0 :                             _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    8389                 :           0 :                             if (EXPR_P (_r1))
    8390                 :           0 :                               goto next_after_fail1387;
    8391                 :           0 :                             res_op2 = _r1;
    8392                 :             :                           }
    8393                 :           0 :                           tree _r;
    8394                 :           0 :                           _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    8395                 :           0 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 909, __FILE__, __LINE__, true);
    8396                 :           0 :                           return _r;
    8397                 :             :                         }
    8398                 :           0 : next_after_fail1387:;
    8399                 :             :                       }
    8400                 :             :                   }
    8401                 :             :                 }
    8402                 :             :               break;
    8403                 :             :             }
    8404                 :           0 :           default:;
    8405                 :             :           }
    8406                 :           0 :         {
    8407                 :           0 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
    8408                 :           0 :           if (VECTOR_TYPE_P (type)
    8409                 :           0 :  && (TREE_CODE_CLASS (MINUS_EXPR) != tcc_comparison
    8410                 :             :  || types_match (type, TREE_TYPE (captures[2]))
    8411                 :             :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
    8412                 :             :  || (optimize_vectors_before_lowering_p ()
    8413                 :             :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
    8414                 :             : )
    8415                 :             :             {
    8416                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1388;
    8417                 :           0 :               {
    8418                 :           0 :                 if (! tree_invariant_p (captures[4])) goto next_after_fail1388;
    8419                 :           0 :                 tree res_op0;
    8420                 :           0 :                 res_op0 = captures[1];
    8421                 :           0 :                 tree res_op1;
    8422                 :           0 :                 {
    8423                 :           0 :                   tree _o1[2], _r1;
    8424                 :           0 :                   _o1[0] = captures[2];
    8425                 :           0 :                   _o1[1] = unshare_expr (captures[4]);
    8426                 :           0 :                   _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    8427                 :           0 :                   if (EXPR_P (_r1))
    8428                 :           0 :                     goto next_after_fail1388;
    8429                 :           0 :                   res_op1 = _r1;
    8430                 :             :                 }
    8431                 :           0 :                 tree res_op2;
    8432                 :           0 :                 {
    8433                 :           0 :                   tree _o1[2], _r1;
    8434                 :           0 :                   _o1[0] = captures[3];
    8435                 :           0 :                   _o1[1] = captures[4];
    8436                 :           0 :                   _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    8437                 :           0 :                   if (EXPR_P (_r1))
    8438                 :           0 :                     goto next_after_fail1388;
    8439                 :           0 :                   res_op2 = _r1;
    8440                 :             :                 }
    8441                 :           0 :                 tree _r;
    8442                 :           0 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    8443                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 910, __FILE__, __LINE__, true);
    8444                 :           0 :                 return _r;
    8445                 :             :               }
    8446                 :           0 : next_after_fail1388:;
    8447                 :             :             }
    8448                 :             :         }
    8449                 :           0 :         break;
    8450                 :             :       }
    8451                 :    20019385 :     default:;
    8452                 :             :     }
    8453                 :    20019385 : if (integer_zerop (_p0))
    8454                 :             :   {
    8455                 :      291172 :     {
    8456                 :      291172 :       tree captures[1] ATTRIBUTE_UNUSED = { _p1 };
    8457                 :      291172 :       if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1389;
    8458                 :      291172 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1389;
    8459                 :      291172 :       {
    8460                 :      291172 :         tree res_op0;
    8461                 :      291172 :         res_op0 = captures[0];
    8462                 :      291172 :         tree _r;
    8463                 :      291172 :         _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
    8464                 :      291172 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 947, __FILE__, __LINE__, true);
    8465                 :      291172 :         return _r;
    8466                 :             :       }
    8467                 :             : next_after_fail1389:;
    8468                 :             :     }
    8469                 :             :   }
    8470                 :    19728213 : if (real_zerop (_p0))
    8471                 :             :   {
    8472                 :         130 :     {
    8473                 :         130 :       tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    8474                 :         130 :       if (fold_real_zero_addition_p (type, captures[1], captures[0], 0)
    8475                 :             : )
    8476                 :             :         {
    8477                 :          56 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1390;
    8478                 :          56 :           {
    8479                 :          56 :             tree res_op0;
    8480                 :          56 :             res_op0 = captures[1];
    8481                 :          56 :             tree _r;
    8482                 :          56 :             _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
    8483                 :          56 :             if (TREE_SIDE_EFFECTS (captures[0]))
    8484                 :           0 :               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    8485                 :          56 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 948, __FILE__, __LINE__, true);
    8486                 :          56 :             return _r;
    8487                 :             :           }
    8488                 :           0 : next_after_fail1390:;
    8489                 :             :         }
    8490                 :             :     }
    8491                 :             :   }
    8492                 :    19728157 :   switch (TREE_CODE (_p1))
    8493                 :             :     {
    8494                 :           4 :     case VEC_COND_EXPR:
    8495                 :           4 :       {
    8496                 :           4 :         tree _q30 = TREE_OPERAND (_p1, 0);
    8497                 :           4 :         tree _q31 = TREE_OPERAND (_p1, 1);
    8498                 :           4 :         tree _q32 = TREE_OPERAND (_p1, 2);
    8499                 :           4 :         {
    8500                 :           4 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
    8501                 :           4 :           if (VECTOR_TYPE_P (type)
    8502                 :           4 :  && (TREE_CODE_CLASS (MINUS_EXPR) != tcc_comparison
    8503                 :             :  || types_match (type, TREE_TYPE (captures[3]))
    8504                 :             :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
    8505                 :             :  || (optimize_vectors_before_lowering_p ()
    8506                 :             :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
    8507                 :             : )
    8508                 :             :             {
    8509                 :           4 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1391;
    8510                 :           4 :               {
    8511                 :           4 :                 if (! tree_invariant_p (captures[0])) goto next_after_fail1391;
    8512                 :           0 :                 tree res_op0;
    8513                 :           0 :                 res_op0 = captures[2];
    8514                 :           0 :                 tree res_op1;
    8515                 :           0 :                 {
    8516                 :           0 :                   tree _o1[2], _r1;
    8517                 :           0 :                   _o1[0] = unshare_expr (captures[0]);
    8518                 :           0 :                   _o1[1] = captures[3];
    8519                 :           0 :                   _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    8520                 :           0 :                   if (EXPR_P (_r1))
    8521                 :           0 :                     goto next_after_fail1391;
    8522                 :           0 :                   res_op1 = _r1;
    8523                 :             :                 }
    8524                 :           0 :                 tree res_op2;
    8525                 :           0 :                 {
    8526                 :           0 :                   tree _o1[2], _r1;
    8527                 :           0 :                   _o1[0] = captures[0];
    8528                 :           0 :                   _o1[1] = captures[4];
    8529                 :           0 :                   _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    8530                 :           0 :                   if (EXPR_P (_r1))
    8531                 :           0 :                     goto next_after_fail1391;
    8532                 :           0 :                   res_op2 = _r1;
    8533                 :             :                 }
    8534                 :           0 :                 tree _r;
    8535                 :           0 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    8536                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 911, __FILE__, __LINE__, true);
    8537                 :           0 :                 return _r;
    8538                 :             :               }
    8539                 :           4 : next_after_fail1391:;
    8540                 :             :             }
    8541                 :             :         }
    8542                 :           4 :         if (integer_each_onep (_q31))
    8543                 :             :           {
    8544                 :           0 :             if (integer_zerop (_q32))
    8545                 :             :               {
    8546                 :           0 :                 {
    8547                 :           0 :                   tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
    8548                 :           0 :                   tree res = generic_simplify_61 (loc, type, _p0, _p1, captures);
    8549                 :           0 :                   if (res) return res;
    8550                 :             :                 }
    8551                 :             :               }
    8552                 :             :           }
    8553                 :             :         break;
    8554                 :             :       }
    8555                 :      108636 :     case VIEW_CONVERT_EXPR:
    8556                 :      108636 :       {
    8557                 :      108636 :         tree _q30 = TREE_OPERAND (_p1, 0);
    8558                 :      108636 :         switch (TREE_CODE (_q30))
    8559                 :             :           {
    8560                 :           0 :           case VEC_COND_EXPR:
    8561                 :           0 :             {
    8562                 :           0 :               tree _q40 = TREE_OPERAND (_q30, 0);
    8563                 :           0 :               tree _q41 = TREE_OPERAND (_q30, 1);
    8564                 :           0 :               tree _q42 = TREE_OPERAND (_q30, 2);
    8565                 :           0 :               if (integer_each_onep (_q41))
    8566                 :             :                 {
    8567                 :           0 :                   if (integer_zerop (_q42))
    8568                 :             :                     {
    8569                 :           0 :                       {
    8570                 :           0 :                         tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q30, _q40, _q41, _q42 };
    8571                 :           0 :                         tree res = generic_simplify_61 (loc, type, _p0, _p1, captures);
    8572                 :           0 :                         if (res) return res;
    8573                 :             :                       }
    8574                 :             :                     }
    8575                 :             :                 }
    8576                 :             :               break;
    8577                 :             :             }
    8578                 :             :           default:;
    8579                 :             :           }
    8580                 :             :         break;
    8581                 :             :       }
    8582                 :    19728157 :     default:;
    8583                 :             :     }
    8584                 :    19728157 :   switch (TREE_CODE (_p0))
    8585                 :             :     {
    8586                 :      120537 :     case RDIV_EXPR:
    8587                 :      120537 :       {
    8588                 :      120537 :         tree _q20 = TREE_OPERAND (_p0, 0);
    8589                 :      120537 :         tree _q21 = TREE_OPERAND (_p0, 1);
    8590                 :      120537 :         switch (TREE_CODE (_p1))
    8591                 :             :           {
    8592                 :       20169 :           case RDIV_EXPR:
    8593                 :       20169 :             {
    8594                 :       20169 :               tree _q50 = TREE_OPERAND (_p1, 0);
    8595                 :       20169 :               tree _q51 = TREE_OPERAND (_p1, 1);
    8596                 :       20169 :               if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
    8597                 :             :                 {
    8598                 :       20149 :                   {
    8599                 :       20149 :                     tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
    8600                 :       20149 :                     tree res = generic_simplify_33 (loc, type, _p0, _p1, captures, MINUS_EXPR);
    8601                 :       20149 :                     if (res) return res;
    8602                 :             :                   }
    8603                 :             :                 }
    8604                 :             :               break;
    8605                 :             :             }
    8606                 :             :           default:;
    8607                 :             :           }
    8608                 :             :         break;
    8609                 :             :       }
    8610                 :     1271880 :     case PLUS_EXPR:
    8611                 :     1271880 :       {
    8612                 :     1271880 :         tree _q20 = TREE_OPERAND (_p0, 0);
    8613                 :     1271880 :         tree _q21 = TREE_OPERAND (_p0, 1);
    8614                 :     1271880 :         switch (TREE_CODE (_q20))
    8615                 :             :           {
    8616                 :       45427 :           case CALL_EXPR:
    8617                 :       45427 :             switch (get_call_combined_fn (_q20))
    8618                 :             :               {
    8619                 :           4 :               case CFN_BUILT_IN_POPCOUNT:
    8620                 :           4 :                 if (call_expr_nargs (_q20) == 1)
    8621                 :             :     {
    8622                 :           4 :                     tree _q30 = CALL_EXPR_ARG (_q20, 0);
    8623                 :           4 :                     switch (TREE_CODE (_q21))
    8624                 :             :                       {
    8625                 :           4 :                       case CALL_EXPR:
    8626                 :           4 :                         switch (get_call_combined_fn (_q21))
    8627                 :             :                           {
    8628                 :           4 :                           case CFN_BUILT_IN_POPCOUNT:
    8629                 :           4 :                             if (call_expr_nargs (_q21) == 1)
    8630                 :             :     {
    8631                 :           4 :                                 tree _q50 = CALL_EXPR_ARG (_q21, 0);
    8632                 :           4 :                                 switch (TREE_CODE (_p1))
    8633                 :             :                                   {
    8634                 :           4 :                                   case CALL_EXPR:
    8635                 :           4 :                                     switch (get_call_combined_fn (_p1))
    8636                 :             :                                       {
    8637                 :           4 :                                       case CFN_BUILT_IN_POPCOUNT:
    8638                 :           4 :                                         if (call_expr_nargs (_p1) == 1)
    8639                 :             :     {
    8640                 :           4 :                                             tree _q70 = CALL_EXPR_ARG (_p1, 0);
    8641                 :           4 :                                             switch (TREE_CODE (_q70))
    8642                 :             :                                               {
    8643                 :           2 :                                               case BIT_AND_EXPR:
    8644                 :           2 :                                                 {
    8645                 :           2 :                                                   tree _q80 = TREE_OPERAND (_q70, 0);
    8646                 :           2 :                                                   tree _q81 = TREE_OPERAND (_q70, 1);
    8647                 :           2 :                                                   if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
    8648                 :             :                                                     {
    8649                 :           1 :                                                       if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
    8650                 :             :                                                         {
    8651                 :           1 :                                                           {
    8652                 :           1 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    8653                 :           1 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNT);
    8654                 :           1 :                                                             if (res) return res;
    8655                 :             :                                                           }
    8656                 :             :                                                         }
    8657                 :             :                                                     }
    8658                 :           1 :                                                   if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
    8659                 :             :                                                     {
    8660                 :           1 :                                                       if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
    8661                 :             :                                                         {
    8662                 :           1 :                                                           {
    8663                 :           1 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    8664                 :           1 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNT);
    8665                 :           1 :                                                             if (res) return res;
    8666                 :             :                                                           }
    8667                 :             :                                                         }
    8668                 :             :                                                     }
    8669                 :             :                                                   break;
    8670                 :             :                                                 }
    8671                 :           2 :                                               case BIT_IOR_EXPR:
    8672                 :           2 :                                                 {
    8673                 :           2 :                                                   tree _q80 = TREE_OPERAND (_q70, 0);
    8674                 :           2 :                                                   tree _q81 = TREE_OPERAND (_q70, 1);
    8675                 :           2 :                                                   if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
    8676                 :             :                                                     {
    8677                 :           1 :                                                       if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
    8678                 :             :                                                         {
    8679                 :           1 :                                                           {
    8680                 :           1 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    8681                 :           1 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNT);
    8682                 :           1 :                                                             if (res) return res;
    8683                 :             :                                                           }
    8684                 :             :                                                         }
    8685                 :             :                                                     }
    8686                 :           1 :                                                   if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
    8687                 :             :                                                     {
    8688                 :           1 :                                                       if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
    8689                 :             :                                                         {
    8690                 :           1 :                                                           {
    8691                 :           1 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    8692                 :           1 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNT);
    8693                 :           1 :                                                             if (res) return res;
    8694                 :             :                                                           }
    8695                 :             :                                                         }
    8696                 :             :                                                     }
    8697                 :             :                                                   break;
    8698                 :             :                                                 }
    8699                 :             :                                               default:;
    8700                 :             :                                               }
    8701                 :             :                                           }
    8702                 :             :                                         break;
    8703                 :             :                                       default:;
    8704                 :             :                                       }
    8705                 :             :                                     break;
    8706                 :             :                                   default:;
    8707                 :             :                                   }
    8708                 :             :                               }
    8709                 :             :                             break;
    8710                 :             :                           default:;
    8711                 :             :                           }
    8712                 :             :                         break;
    8713                 :             :                       default:;
    8714                 :             :                       }
    8715                 :             :                   }
    8716                 :             :                 break;
    8717                 :           0 :               case CFN_BUILT_IN_POPCOUNTLL:
    8718                 :           0 :                 if (call_expr_nargs (_q20) == 1)
    8719                 :             :     {
    8720                 :           0 :                     tree _q30 = CALL_EXPR_ARG (_q20, 0);
    8721                 :           0 :                     switch (TREE_CODE (_q21))
    8722                 :             :                       {
    8723                 :           0 :                       case CALL_EXPR:
    8724                 :           0 :                         switch (get_call_combined_fn (_q21))
    8725                 :             :                           {
    8726                 :           0 :                           case CFN_BUILT_IN_POPCOUNTLL:
    8727                 :           0 :                             if (call_expr_nargs (_q21) == 1)
    8728                 :             :     {
    8729                 :           0 :                                 tree _q50 = CALL_EXPR_ARG (_q21, 0);
    8730                 :           0 :                                 switch (TREE_CODE (_p1))
    8731                 :             :                                   {
    8732                 :           0 :                                   case CALL_EXPR:
    8733                 :           0 :                                     switch (get_call_combined_fn (_p1))
    8734                 :             :                                       {
    8735                 :           0 :                                       case CFN_BUILT_IN_POPCOUNTLL:
    8736                 :           0 :                                         if (call_expr_nargs (_p1) == 1)
    8737                 :             :     {
    8738                 :           0 :                                             tree _q70 = CALL_EXPR_ARG (_p1, 0);
    8739                 :           0 :                                             switch (TREE_CODE (_q70))
    8740                 :             :                                               {
    8741                 :           0 :                                               case BIT_AND_EXPR:
    8742                 :           0 :                                                 {
    8743                 :           0 :                                                   tree _q80 = TREE_OPERAND (_q70, 0);
    8744                 :           0 :                                                   tree _q81 = TREE_OPERAND (_q70, 1);
    8745                 :           0 :                                                   if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
    8746                 :             :                                                     {
    8747                 :           0 :                                                       if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
    8748                 :             :                                                         {
    8749                 :           0 :                                                           {
    8750                 :           0 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    8751                 :           0 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTLL);
    8752                 :           0 :                                                             if (res) return res;
    8753                 :             :                                                           }
    8754                 :             :                                                         }
    8755                 :             :                                                     }
    8756                 :           0 :                                                   if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
    8757                 :             :                                                     {
    8758                 :           0 :                                                       if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
    8759                 :             :                                                         {
    8760                 :           0 :                                                           {
    8761                 :           0 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    8762                 :           0 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTLL);
    8763                 :           0 :                                                             if (res) return res;
    8764                 :             :                                                           }
    8765                 :             :                                                         }
    8766                 :             :                                                     }
    8767                 :             :                                                   break;
    8768                 :             :                                                 }
    8769                 :           0 :                                               case BIT_IOR_EXPR:
    8770                 :           0 :                                                 {
    8771                 :           0 :                                                   tree _q80 = TREE_OPERAND (_q70, 0);
    8772                 :           0 :                                                   tree _q81 = TREE_OPERAND (_q70, 1);
    8773                 :           0 :                                                   if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
    8774                 :             :                                                     {
    8775                 :           0 :                                                       if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
    8776                 :             :                                                         {
    8777                 :           0 :                                                           {
    8778                 :           0 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    8779                 :           0 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTLL);
    8780                 :           0 :                                                             if (res) return res;
    8781                 :             :                                                           }
    8782                 :             :                                                         }
    8783                 :             :                                                     }
    8784                 :           0 :                                                   if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
    8785                 :             :                                                     {
    8786                 :           0 :                                                       if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
    8787                 :             :                                                         {
    8788                 :           0 :                                                           {
    8789                 :           0 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    8790                 :           0 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTLL);
    8791                 :           0 :                                                             if (res) return res;
    8792                 :             :                                                           }
    8793                 :             :                                                         }
    8794                 :             :                                                     }
    8795                 :             :                                                   break;
    8796                 :             :                                                 }
    8797                 :             :                                               default:;
    8798                 :             :                                               }
    8799                 :             :                                           }
    8800                 :             :                                         break;
    8801                 :             :                                       default:;
    8802                 :             :                                       }
    8803                 :             :                                     break;
    8804                 :             :                                   default:;
    8805                 :             :                                   }
    8806                 :             :                               }
    8807                 :             :                             break;
    8808                 :             :                           default:;
    8809                 :             :                           }
    8810                 :             :                         break;
    8811                 :             :                       default:;
    8812                 :             :                       }
    8813                 :             :                   }
    8814                 :             :                 break;
    8815                 :           0 :               case CFN_POPCOUNT:
    8816                 :           0 :                 if (call_expr_nargs (_q20) == 1)
    8817                 :             :     {
    8818                 :           0 :                     tree _q30 = CALL_EXPR_ARG (_q20, 0);
    8819                 :           0 :                     switch (TREE_CODE (_q21))
    8820                 :             :                       {
    8821                 :           0 :                       case CALL_EXPR:
    8822                 :           0 :                         switch (get_call_combined_fn (_q21))
    8823                 :             :                           {
    8824                 :           0 :                           case CFN_POPCOUNT:
    8825                 :           0 :                             if (call_expr_nargs (_q21) == 1)
    8826                 :             :     {
    8827                 :           0 :                                 tree _q50 = CALL_EXPR_ARG (_q21, 0);
    8828                 :           0 :                                 switch (TREE_CODE (_p1))
    8829                 :             :                                   {
    8830                 :           0 :                                   case CALL_EXPR:
    8831                 :           0 :                                     switch (get_call_combined_fn (_p1))
    8832                 :             :                                       {
    8833                 :           0 :                                       case CFN_POPCOUNT:
    8834                 :           0 :                                         if (call_expr_nargs (_p1) == 1)
    8835                 :             :     {
    8836                 :           0 :                                             tree _q70 = CALL_EXPR_ARG (_p1, 0);
    8837                 :           0 :                                             switch (TREE_CODE (_q70))
    8838                 :             :                                               {
    8839                 :           0 :                                               case BIT_AND_EXPR:
    8840                 :           0 :                                                 {
    8841                 :           0 :                                                   tree _q80 = TREE_OPERAND (_q70, 0);
    8842                 :           0 :                                                   tree _q81 = TREE_OPERAND (_q70, 1);
    8843                 :           0 :                                                   if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
    8844                 :             :                                                     {
    8845                 :           0 :                                                       if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
    8846                 :             :                                                         {
    8847                 :           0 :                                                           {
    8848                 :           0 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    8849                 :           0 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_POPCOUNT);
    8850                 :           0 :                                                             if (res) return res;
    8851                 :             :                                                           }
    8852                 :             :                                                         }
    8853                 :             :                                                     }
    8854                 :           0 :                                                   if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
    8855                 :             :                                                     {
    8856                 :           0 :                                                       if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
    8857                 :             :                                                         {
    8858                 :           0 :                                                           {
    8859                 :           0 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    8860                 :           0 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_POPCOUNT);
    8861                 :           0 :                                                             if (res) return res;
    8862                 :             :                                                           }
    8863                 :             :                                                         }
    8864                 :             :                                                     }
    8865                 :             :                                                   break;
    8866                 :             :                                                 }
    8867                 :           0 :                                               case BIT_IOR_EXPR:
    8868                 :           0 :                                                 {
    8869                 :           0 :                                                   tree _q80 = TREE_OPERAND (_q70, 0);
    8870                 :           0 :                                                   tree _q81 = TREE_OPERAND (_q70, 1);
    8871                 :           0 :                                                   if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
    8872                 :             :                                                     {
    8873                 :           0 :                                                       if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
    8874                 :             :                                                         {
    8875                 :           0 :                                                           {
    8876                 :           0 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    8877                 :           0 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_POPCOUNT);
    8878                 :           0 :                                                             if (res) return res;
    8879                 :             :                                                           }
    8880                 :             :                                                         }
    8881                 :             :                                                     }
    8882                 :           0 :                                                   if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
    8883                 :             :                                                     {
    8884                 :           0 :                                                       if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
    8885                 :             :                                                         {
    8886                 :           0 :                                                           {
    8887                 :           0 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    8888                 :           0 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_POPCOUNT);
    8889                 :           0 :                                                             if (res) return res;
    8890                 :             :                                                           }
    8891                 :             :                                                         }
    8892                 :             :                                                     }
    8893                 :             :                                                   break;
    8894                 :             :                                                 }
    8895                 :             :                                               default:;
    8896                 :             :                                               }
    8897                 :             :                                           }
    8898                 :             :                                         break;
    8899                 :             :                                       default:;
    8900                 :             :                                       }
    8901                 :             :                                     break;
    8902                 :             :                                   default:;
    8903                 :             :                                   }
    8904                 :             :                               }
    8905                 :             :                             break;
    8906                 :             :                           default:;
    8907                 :             :                           }
    8908                 :             :                         break;
    8909                 :             :                       default:;
    8910                 :             :                       }
    8911                 :             :                   }
    8912                 :             :                 break;
    8913                 :           0 :               case CFN_BUILT_IN_POPCOUNTIMAX:
    8914                 :           0 :                 if (call_expr_nargs (_q20) == 1)
    8915                 :             :     {
    8916                 :           0 :                     tree _q30 = CALL_EXPR_ARG (_q20, 0);
    8917                 :           0 :                     switch (TREE_CODE (_q21))
    8918                 :             :                       {
    8919                 :           0 :                       case CALL_EXPR:
    8920                 :           0 :                         switch (get_call_combined_fn (_q21))
    8921                 :             :                           {
    8922                 :           0 :                           case CFN_BUILT_IN_POPCOUNTIMAX:
    8923                 :           0 :                             if (call_expr_nargs (_q21) == 1)
    8924                 :             :     {
    8925                 :           0 :                                 tree _q50 = CALL_EXPR_ARG (_q21, 0);
    8926                 :           0 :                                 switch (TREE_CODE (_p1))
    8927                 :             :                                   {
    8928                 :           0 :                                   case CALL_EXPR:
    8929                 :           0 :                                     switch (get_call_combined_fn (_p1))
    8930                 :             :                                       {
    8931                 :           0 :                                       case CFN_BUILT_IN_POPCOUNTIMAX:
    8932                 :           0 :                                         if (call_expr_nargs (_p1) == 1)
    8933                 :             :     {
    8934                 :           0 :                                             tree _q70 = CALL_EXPR_ARG (_p1, 0);
    8935                 :           0 :                                             switch (TREE_CODE (_q70))
    8936                 :             :                                               {
    8937                 :           0 :                                               case BIT_AND_EXPR:
    8938                 :           0 :                                                 {
    8939                 :           0 :                                                   tree _q80 = TREE_OPERAND (_q70, 0);
    8940                 :           0 :                                                   tree _q81 = TREE_OPERAND (_q70, 1);
    8941                 :           0 :                                                   if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
    8942                 :             :                                                     {
    8943                 :           0 :                                                       if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
    8944                 :             :                                                         {
    8945                 :           0 :                                                           {
    8946                 :           0 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    8947                 :           0 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTIMAX);
    8948                 :           0 :                                                             if (res) return res;
    8949                 :             :                                                           }
    8950                 :             :                                                         }
    8951                 :             :                                                     }
    8952                 :           0 :                                                   if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
    8953                 :             :                                                     {
    8954                 :           0 :                                                       if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
    8955                 :             :                                                         {
    8956                 :           0 :                                                           {
    8957                 :           0 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    8958                 :           0 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTIMAX);
    8959                 :           0 :                                                             if (res) return res;
    8960                 :             :                                                           }
    8961                 :             :                                                         }
    8962                 :             :                                                     }
    8963                 :             :                                                   break;
    8964                 :             :                                                 }
    8965                 :           0 :                                               case BIT_IOR_EXPR:
    8966                 :           0 :                                                 {
    8967                 :           0 :                                                   tree _q80 = TREE_OPERAND (_q70, 0);
    8968                 :           0 :                                                   tree _q81 = TREE_OPERAND (_q70, 1);
    8969                 :           0 :                                                   if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
    8970                 :             :                                                     {
    8971                 :           0 :                                                       if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
    8972                 :             :                                                         {
    8973                 :           0 :                                                           {
    8974                 :           0 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    8975                 :           0 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTIMAX);
    8976                 :           0 :                                                             if (res) return res;
    8977                 :             :                                                           }
    8978                 :             :                                                         }
    8979                 :             :                                                     }
    8980                 :           0 :                                                   if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
    8981                 :             :                                                     {
    8982                 :           0 :                                                       if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
    8983                 :             :                                                         {
    8984                 :           0 :                                                           {
    8985                 :           0 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    8986                 :           0 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTIMAX);
    8987                 :           0 :                                                             if (res) return res;
    8988                 :             :                                                           }
    8989                 :             :                                                         }
    8990                 :             :                                                     }
    8991                 :             :                                                   break;
    8992                 :             :                                                 }
    8993                 :             :                                               default:;
    8994                 :             :                                               }
    8995                 :             :                                           }
    8996                 :             :                                         break;
    8997                 :             :                                       default:;
    8998                 :             :                                       }
    8999                 :             :                                     break;
    9000                 :             :                                   default:;
    9001                 :             :                                   }
    9002                 :             :                               }
    9003                 :             :                             break;
    9004                 :             :                           default:;
    9005                 :             :                           }
    9006                 :             :                         break;
    9007                 :             :                       default:;
    9008                 :             :                       }
    9009                 :             :                   }
    9010                 :             :                 break;
    9011                 :           0 :               case CFN_BUILT_IN_POPCOUNTL:
    9012                 :           0 :                 if (call_expr_nargs (_q20) == 1)
    9013                 :             :     {
    9014                 :           0 :                     tree _q30 = CALL_EXPR_ARG (_q20, 0);
    9015                 :           0 :                     switch (TREE_CODE (_q21))
    9016                 :             :                       {
    9017                 :           0 :                       case CALL_EXPR:
    9018                 :           0 :                         switch (get_call_combined_fn (_q21))
    9019                 :             :                           {
    9020                 :           0 :                           case CFN_BUILT_IN_POPCOUNTL:
    9021                 :           0 :                             if (call_expr_nargs (_q21) == 1)
    9022                 :             :     {
    9023                 :           0 :                                 tree _q50 = CALL_EXPR_ARG (_q21, 0);
    9024                 :           0 :                                 switch (TREE_CODE (_p1))
    9025                 :             :                                   {
    9026                 :           0 :                                   case CALL_EXPR:
    9027                 :           0 :                                     switch (get_call_combined_fn (_p1))
    9028                 :             :                                       {
    9029                 :           0 :                                       case CFN_BUILT_IN_POPCOUNTL:
    9030                 :           0 :                                         if (call_expr_nargs (_p1) == 1)
    9031                 :             :     {
    9032                 :           0 :                                             tree _q70 = CALL_EXPR_ARG (_p1, 0);
    9033                 :           0 :                                             switch (TREE_CODE (_q70))
    9034                 :             :                                               {
    9035                 :           0 :                                               case BIT_AND_EXPR:
    9036                 :           0 :                                                 {
    9037                 :           0 :                                                   tree _q80 = TREE_OPERAND (_q70, 0);
    9038                 :           0 :                                                   tree _q81 = TREE_OPERAND (_q70, 1);
    9039                 :           0 :                                                   if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
    9040                 :             :                                                     {
    9041                 :           0 :                                                       if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
    9042                 :             :                                                         {
    9043                 :           0 :                                                           {
    9044                 :           0 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    9045                 :           0 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTL);
    9046                 :           0 :                                                             if (res) return res;
    9047                 :             :                                                           }
    9048                 :             :                                                         }
    9049                 :             :                                                     }
    9050                 :           0 :                                                   if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
    9051                 :             :                                                     {
    9052                 :           0 :                                                       if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
    9053                 :             :                                                         {
    9054                 :           0 :                                                           {
    9055                 :           0 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    9056                 :           0 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTL);
    9057                 :           0 :                                                             if (res) return res;
    9058                 :             :                                                           }
    9059                 :             :                                                         }
    9060                 :             :                                                     }
    9061                 :             :                                                   break;
    9062                 :             :                                                 }
    9063                 :           0 :                                               case BIT_IOR_EXPR:
    9064                 :           0 :                                                 {
    9065                 :           0 :                                                   tree _q80 = TREE_OPERAND (_q70, 0);
    9066                 :           0 :                                                   tree _q81 = TREE_OPERAND (_q70, 1);
    9067                 :           0 :                                                   if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
    9068                 :             :                                                     {
    9069                 :           0 :                                                       if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
    9070                 :             :                                                         {
    9071                 :           0 :                                                           {
    9072                 :           0 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    9073                 :           0 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTL);
    9074                 :           0 :                                                             if (res) return res;
    9075                 :             :                                                           }
    9076                 :             :                                                         }
    9077                 :             :                                                     }
    9078                 :           0 :                                                   if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
    9079                 :             :                                                     {
    9080                 :           0 :                                                       if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
    9081                 :             :                                                         {
    9082                 :           0 :                                                           {
    9083                 :           0 :                                                             tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
    9084                 :           0 :                                                             tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTL);
    9085                 :           0 :                                                             if (res) return res;
    9086                 :             :                                                           }
    9087                 :             :                                                         }
    9088                 :             :                                                     }
    9089                 :             :                                                   break;
    9090                 :             :                                                 }
    9091                 :             :                                               default:;
    9092                 :             :                                               }
    9093                 :             :                                           }
    9094                 :             :                                         break;
    9095                 :             :                                       default:;
    9096                 :             :                                       }
    9097                 :             :                                     break;
    9098                 :             :                                   default:;
    9099                 :             :                                   }
    9100                 :             :                               }
    9101                 :             :                             break;
    9102                 :             :                           default:;
    9103                 :             :                           }
    9104                 :             :                         break;
    9105                 :             :                       default:;
    9106                 :             :                       }
    9107                 :             :                   }
    9108                 :             :                 break;
    9109                 :             :               default:;
    9110                 :             :               }
    9111                 :             :             break;
    9112                 :             :           default:;
    9113                 :             :           }
    9114                 :             :         break;
    9115                 :             :       }
    9116                 :           0 :     case VEC_PERM_EXPR:
    9117                 :           0 :       {
    9118                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
    9119                 :           0 :         tree _q21 = TREE_OPERAND (_p0, 1);
    9120                 :           0 :         tree _q22 = TREE_OPERAND (_p0, 2);
    9121                 :           0 :         switch (TREE_CODE (_q20))
    9122                 :             :           {
    9123                 :           0 :           case MULT_EXPR:
    9124                 :           0 :             {
    9125                 :           0 :               tree _q30 = TREE_OPERAND (_q20, 0);
    9126                 :           0 :               tree _q31 = TREE_OPERAND (_q20, 1);
    9127                 :           0 :               if (tree_vec_same_elem_p (_q31))
    9128                 :             :                 {
    9129                 :           0 :                   if ((_q21 == _q20 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q20, 0) && types_match (_q21, _q20)))
    9130                 :             :                     {
    9131                 :           0 :                       {
    9132                 :           0 :                         tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q22, _p1 };
    9133                 :           0 :                         tree res = generic_simplify_64 (loc, type, _p0, _p1, captures);
    9134                 :           0 :                         if (res) return res;
    9135                 :             :                       }
    9136                 :             :                     }
    9137                 :             :                 }
    9138                 :           0 :               if (tree_vec_same_elem_p (_q30))
    9139                 :             :                 {
    9140                 :           0 :                   if ((_q21 == _q20 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q20, 0) && types_match (_q21, _q20)))
    9141                 :             :                     {
    9142                 :           0 :                       {
    9143                 :           0 :                         tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q31, _q30, _q22, _p1 };
    9144                 :           0 :                         tree res = generic_simplify_64 (loc, type, _p0, _p1, captures);
    9145                 :           0 :                         if (res) return res;
    9146                 :             :                       }
    9147                 :             :                     }
    9148                 :             :                 }
    9149                 :             :               break;
    9150                 :             :             }
    9151                 :             :           default:;
    9152                 :             :           }
    9153                 :             :         break;
    9154                 :             :       }
    9155                 :      621086 :     case CALL_EXPR:
    9156                 :      621086 :       switch (get_call_combined_fn (_p0))
    9157                 :             :         {
    9158                 :          18 :         case CFN_BUILT_IN_LOG:
    9159                 :          18 :           if (call_expr_nargs (_p0) == 1)
    9160                 :             :     {
    9161                 :          18 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    9162                 :          18 :               switch (TREE_CODE (_p1))
    9163                 :             :                 {
    9164                 :           0 :                 case CALL_EXPR:
    9165                 :           0 :                   switch (get_call_combined_fn (_p1))
    9166                 :             :                     {
    9167                 :           0 :                     case CFN_BUILT_IN_LOG:
    9168                 :           0 :                       if (call_expr_nargs (_p1) == 1)
    9169                 :             :     {
    9170                 :           0 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    9171                 :           0 :                           {
    9172                 :           0 :                             tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
    9173                 :           0 :                             tree res = generic_simplify_62 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LOG);
    9174                 :           0 :                             if (res) return res;
    9175                 :             :                           }
    9176                 :             :                         }
    9177                 :             :                       break;
    9178                 :             :                     default:;
    9179                 :             :                     }
    9180                 :             :                   break;
    9181                 :             :                 default:;
    9182                 :             :                 }
    9183                 :             :             }
    9184                 :             :           break;
    9185                 :           2 :         case CFN_BUILT_IN_LOG2:
    9186                 :           2 :           if (call_expr_nargs (_p0) == 1)
    9187                 :             :     {
    9188                 :           2 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    9189                 :           2 :               switch (TREE_CODE (_p1))
    9190                 :             :                 {
    9191                 :           0 :                 case CALL_EXPR:
    9192                 :           0 :                   switch (get_call_combined_fn (_p1))
    9193                 :             :                     {
    9194                 :           0 :                     case CFN_BUILT_IN_LOG2:
    9195                 :           0 :                       if (call_expr_nargs (_p1) == 1)
    9196                 :             :     {
    9197                 :           0 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    9198                 :           0 :                           {
    9199                 :           0 :                             tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
    9200                 :           0 :                             tree res = generic_simplify_62 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LOG2);
    9201                 :           0 :                             if (res) return res;
    9202                 :             :                           }
    9203                 :             :                         }
    9204                 :             :                       break;
    9205                 :             :                     default:;
    9206                 :             :                     }
    9207                 :             :                   break;
    9208                 :             :                 default:;
    9209                 :             :                 }
    9210                 :             :             }
    9211                 :             :           break;
    9212                 :           0 :         case CFN_BUILT_IN_LOGF:
    9213                 :           0 :           if (call_expr_nargs (_p0) == 1)
    9214                 :             :     {
    9215                 :           0 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    9216                 :           0 :               switch (TREE_CODE (_p1))
    9217                 :             :                 {
    9218                 :           0 :                 case CALL_EXPR:
    9219                 :           0 :                   switch (get_call_combined_fn (_p1))
    9220                 :             :                     {
    9221                 :           0 :                     case CFN_BUILT_IN_LOGF:
    9222                 :           0 :                       if (call_expr_nargs (_p1) == 1)
    9223                 :             :     {
    9224                 :           0 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    9225                 :           0 :                           {
    9226                 :           0 :                             tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
    9227                 :           0 :                             tree res = generic_simplify_62 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LOGF);
    9228                 :           0 :                             if (res) return res;
    9229                 :             :                           }
    9230                 :             :                         }
    9231                 :             :                       break;
    9232                 :             :                     default:;
    9233                 :             :                     }
    9234                 :             :                   break;
    9235                 :             :                 default:;
    9236                 :             :                 }
    9237                 :             :             }
    9238                 :             :           break;
    9239                 :           0 :         case CFN_BUILT_IN_LOGL:
    9240                 :           0 :           if (call_expr_nargs (_p0) == 1)
    9241                 :             :     {
    9242                 :           0 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    9243                 :           0 :               switch (TREE_CODE (_p1))
    9244                 :             :                 {
    9245                 :           0 :                 case CALL_EXPR:
    9246                 :           0 :                   switch (get_call_combined_fn (_p1))
    9247                 :             :                     {
    9248                 :           0 :                     case CFN_BUILT_IN_LOGL:
    9249                 :           0 :                       if (call_expr_nargs (_p1) == 1)
    9250                 :             :     {
    9251                 :           0 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    9252                 :           0 :                           {
    9253                 :           0 :                             tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
    9254                 :           0 :                             tree res = generic_simplify_62 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LOGL);
    9255                 :           0 :                             if (res) return res;
    9256                 :             :                           }
    9257                 :             :                         }
    9258                 :             :                       break;
    9259                 :             :                     default:;
    9260                 :             :                     }
    9261                 :             :                   break;
    9262                 :             :                 default:;
    9263                 :             :                 }
    9264                 :             :             }
    9265                 :             :           break;
    9266                 :           0 :         case CFN_BUILT_IN_LOG10F:
    9267                 :           0 :           if (call_expr_nargs (_p0) == 1)
    9268                 :             :     {
    9269                 :           0 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    9270                 :           0 :               switch (TREE_CODE (_p1))
    9271                 :             :                 {
    9272                 :           0 :                 case CALL_EXPR:
    9273                 :           0 :                   switch (get_call_combined_fn (_p1))
    9274                 :             :                     {
    9275                 :           0 :                     case CFN_BUILT_IN_LOG10F:
    9276                 :           0 :                       if (call_expr_nargs (_p1) == 1)
    9277                 :             :     {
    9278                 :           0 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    9279                 :           0 :                           {
    9280                 :           0 :                             tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
    9281                 :           0 :                             tree res = generic_simplify_62 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LOG10F);
    9282                 :           0 :                             if (res) return res;
    9283                 :             :                           }
    9284                 :             :                         }
    9285                 :             :                       break;
    9286                 :             :                     default:;
    9287                 :             :                     }
    9288                 :             :                   break;
    9289                 :             :                 default:;
    9290                 :             :                 }
    9291                 :             :             }
    9292                 :             :           break;
    9293                 :           0 :         case CFN_BUILT_IN_LOG10L:
    9294                 :           0 :           if (call_expr_nargs (_p0) == 1)
    9295                 :             :     {
    9296                 :           0 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    9297                 :           0 :               switch (TREE_CODE (_p1))
    9298                 :             :                 {
    9299                 :           0 :                 case CALL_EXPR:
    9300                 :           0 :                   switch (get_call_combined_fn (_p1))
    9301                 :             :                     {
    9302                 :           0 :                     case CFN_BUILT_IN_LOG10L:
    9303                 :           0 :                       if (call_expr_nargs (_p1) == 1)
    9304                 :             :     {
    9305                 :           0 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    9306                 :           0 :                           {
    9307                 :           0 :                             tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
    9308                 :           0 :                             tree res = generic_simplify_62 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LOG10L);
    9309                 :           0 :                             if (res) return res;
    9310                 :             :                           }
    9311                 :             :                         }
    9312                 :             :                       break;
    9313                 :             :                     default:;
    9314                 :             :                     }
    9315                 :             :                   break;
    9316                 :             :                 default:;
    9317                 :             :                 }
    9318                 :             :             }
    9319                 :             :           break;
    9320                 :           0 :         case CFN_LOG:
    9321                 :           0 :           if (call_expr_nargs (_p0) == 1)
    9322                 :             :     {
    9323                 :           0 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    9324                 :           0 :               switch (TREE_CODE (_p1))
    9325                 :             :                 {
    9326                 :           0 :                 case CALL_EXPR:
    9327                 :           0 :                   switch (get_call_combined_fn (_p1))
    9328                 :             :                     {
    9329                 :           0 :                     case CFN_LOG:
    9330                 :           0 :                       if (call_expr_nargs (_p1) == 1)
    9331                 :             :     {
    9332                 :           0 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    9333                 :           0 :                           {
    9334                 :           0 :                             tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
    9335                 :           0 :                             tree res = generic_simplify_62 (loc, type, _p0, _p1, captures, CFN_LOG);
    9336                 :           0 :                             if (res) return res;
    9337                 :             :                           }
    9338                 :             :                         }
    9339                 :             :                       break;
    9340                 :             :                     default:;
    9341                 :             :                     }
    9342                 :             :                   break;
    9343                 :             :                 default:;
    9344                 :             :                 }
    9345                 :             :             }
    9346                 :             :           break;
    9347                 :           0 :         case CFN_LOG2:
    9348                 :           0 :           if (call_expr_nargs (_p0) == 1)
    9349                 :             :     {
    9350                 :           0 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    9351                 :           0 :               switch (TREE_CODE (_p1))
    9352                 :             :                 {
    9353                 :           0 :                 case CALL_EXPR:
    9354                 :           0 :                   switch (get_call_combined_fn (_p1))
    9355                 :             :                     {
    9356                 :           0 :                     case CFN_LOG2:
    9357                 :           0 :                       if (call_expr_nargs (_p1) == 1)
    9358                 :             :     {
    9359                 :           0 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    9360                 :           0 :                           {
    9361                 :           0 :                             tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
    9362                 :           0 :                             tree res = generic_simplify_62 (loc, type, _p0, _p1, captures, CFN_LOG2);
    9363                 :           0 :                             if (res) return res;
    9364                 :             :                           }
    9365                 :             :                         }
    9366                 :             :                       break;
    9367                 :             :                     default:;
    9368                 :             :                     }
    9369                 :             :                   break;
    9370                 :             :                 default:;
    9371                 :             :                 }
    9372                 :             :             }
    9373                 :             :           break;
    9374                 :           0 :         case CFN_LOG10:
    9375                 :           0 :           if (call_expr_nargs (_p0) == 1)
    9376                 :             :     {
    9377                 :           0 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    9378                 :           0 :               switch (TREE_CODE (_p1))
    9379                 :             :                 {
    9380                 :           0 :                 case CALL_EXPR:
    9381                 :           0 :                   switch (get_call_combined_fn (_p1))
    9382                 :             :                     {
    9383                 :           0 :                     case CFN_LOG10:
    9384                 :           0 :                       if (call_expr_nargs (_p1) == 1)
    9385                 :             :     {
    9386                 :           0 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    9387                 :           0 :                           {
    9388                 :           0 :                             tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
    9389                 :           0 :                             tree res = generic_simplify_62 (loc, type, _p0, _p1, captures, CFN_LOG10);
    9390                 :           0 :                             if (res) return res;
    9391                 :             :                           }
    9392                 :             :                         }
    9393                 :             :                       break;
    9394                 :             :                     default:;
    9395                 :             :                     }
    9396                 :             :                   break;
    9397                 :             :                 default:;
    9398                 :             :                 }
    9399                 :             :             }
    9400                 :             :           break;
    9401                 :           6 :         case CFN_BUILT_IN_LOG10:
    9402                 :           6 :           if (call_expr_nargs (_p0) == 1)
    9403                 :             :     {
    9404                 :           6 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    9405                 :           6 :               switch (TREE_CODE (_p1))
    9406                 :             :                 {
    9407                 :           2 :                 case CALL_EXPR:
    9408                 :           2 :                   switch (get_call_combined_fn (_p1))
    9409                 :             :                     {
    9410                 :           2 :                     case CFN_BUILT_IN_LOG10:
    9411                 :           2 :                       if (call_expr_nargs (_p1) == 1)
    9412                 :             :     {
    9413                 :           2 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    9414                 :           2 :                           {
    9415                 :           2 :                             tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
    9416                 :           2 :                             tree res = generic_simplify_62 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LOG10);
    9417                 :           2 :                             if (res) return res;
    9418                 :             :                           }
    9419                 :             :                         }
    9420                 :             :                       break;
    9421                 :             :                     default:;
    9422                 :             :                     }
    9423                 :             :                   break;
    9424                 :             :                 default:;
    9425                 :             :                 }
    9426                 :             :             }
    9427                 :             :           break;
    9428                 :           0 :         case CFN_BUILT_IN_LOG2F:
    9429                 :           0 :           if (call_expr_nargs (_p0) == 1)
    9430                 :             :     {
    9431                 :           0 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    9432                 :           0 :               switch (TREE_CODE (_p1))
    9433                 :             :                 {
    9434                 :           0 :                 case CALL_EXPR:
    9435                 :           0 :                   switch (get_call_combined_fn (_p1))
    9436                 :             :                     {
    9437                 :           0 :                     case CFN_BUILT_IN_LOG2F:
    9438                 :           0 :                       if (call_expr_nargs (_p1) == 1)
    9439                 :             :     {
    9440                 :           0 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    9441                 :           0 :                           {
    9442                 :           0 :                             tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
    9443                 :           0 :                             tree res = generic_simplify_62 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LOG2F);
    9444                 :           0 :                             if (res) return res;
    9445                 :             :                           }
    9446                 :             :                         }
    9447                 :             :                       break;
    9448                 :             :                     default:;
    9449                 :             :                     }
    9450                 :             :                   break;
    9451                 :             :                 default:;
    9452                 :             :                 }
    9453                 :             :             }
    9454                 :             :           break;
    9455                 :           0 :         case CFN_BUILT_IN_LOG2L:
    9456                 :           0 :           if (call_expr_nargs (_p0) == 1)
    9457                 :             :     {
    9458                 :           0 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    9459                 :           0 :               switch (TREE_CODE (_p1))
    9460                 :             :                 {
    9461                 :           0 :                 case CALL_EXPR:
    9462                 :           0 :                   switch (get_call_combined_fn (_p1))
    9463                 :             :                     {
    9464                 :           0 :                     case CFN_BUILT_IN_LOG2L:
    9465                 :           0 :                       if (call_expr_nargs (_p1) == 1)
    9466                 :             :     {
    9467                 :           0 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    9468                 :           0 :                           {
    9469                 :           0 :                             tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
    9470                 :           0 :                             tree res = generic_simplify_62 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LOG2L);
    9471                 :           0 :                             if (res) return res;
    9472                 :             :                           }
    9473                 :             :                         }
    9474                 :             :                       break;
    9475                 :             :                     default:;
    9476                 :             :                     }
    9477                 :             :                   break;
    9478                 :             :                 default:;
    9479                 :             :                 }
    9480                 :             :             }
    9481                 :             :           break;
    9482                 :             :         default:;
    9483                 :             :         }
    9484                 :             :       break;
    9485                 :    19728140 :     default:;
    9486                 :             :     }
    9487                 :    19728140 :   switch (TREE_CODE (_p1))
    9488                 :             :     {
    9489                 :        6575 :     case BIT_AND_EXPR:
    9490                 :        6575 :       {
    9491                 :        6575 :         tree _q30 = TREE_OPERAND (_p1, 0);
    9492                 :        6575 :         tree _q31 = TREE_OPERAND (_p1, 1);
    9493                 :        6575 :         switch (TREE_CODE (_q30))
    9494                 :             :           {
    9495                 :          80 :           case MAX_EXPR:
    9496                 :          80 :             {
    9497                 :          80 :               tree _q40 = TREE_OPERAND (_q30, 0);
    9498                 :          80 :               tree _q41 = TREE_OPERAND (_q30, 1);
    9499                 :          80 :               if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
    9500                 :             :                 {
    9501                 :          80 :                   switch (TREE_CODE (_q41))
    9502                 :             :                     {
    9503                 :          80 :                     case INTEGER_CST:
    9504                 :          80 :                       {
    9505                 :          80 :                         switch (TREE_CODE (_q31))
    9506                 :             :                           {
    9507                 :          72 :                           case INTEGER_CST:
    9508                 :          72 :                             {
    9509                 :          72 :                               {
    9510                 :          72 :                                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q41, _q31 };
    9511                 :          72 :                                 {
    9512                 :          72 :  auto i = wi::neg (wi::to_wide (captures[2]));
    9513                 :          72 :                                     if (wi::popcount (i) == 1
    9514                 :         200 :  && (wi::to_wide (captures[1])) == (i - 1)
    9515                 :             : )
    9516                 :             :                                       {
    9517                 :          40 :                                         if (TYPE_UNSIGNED (TREE_TYPE (captures[0]))
    9518                 :             : )
    9519                 :             :                                           {
    9520                 :           8 :                                             if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1392;
    9521                 :           8 :                                             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1392;
    9522                 :           8 :                                             {
    9523                 :           8 :                                               tree res_op0;
    9524                 :           8 :                                               res_op0 = captures[0];
    9525                 :           8 :                                               tree res_op1;
    9526                 :           8 :                                               res_op1 = captures[1];
    9527                 :           8 :                                               tree _r;
    9528                 :           8 :                                               _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
    9529                 :           8 :                                               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 949, __FILE__, __LINE__, true);
    9530                 :           8 :                                               return _r;
    9531                 :             :                                             }
    9532                 :          64 : next_after_fail1392:;
    9533                 :             :                                           }
    9534                 :             :                                         else
    9535                 :             :                                           {
    9536                 :          32 :                                             if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1393;
    9537                 :          32 :                                             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1393;
    9538                 :          32 :                                             {
    9539                 :          32 :                                               if (! tree_invariant_p (captures[0])) goto next_after_fail1393;
    9540                 :           0 :                                               if (! tree_invariant_p (captures[1])) goto next_after_fail1393;
    9541                 :           0 :                                               tree res_op0;
    9542                 :           0 :                                               {
    9543                 :           0 :                                                 tree _o1[2], _r1;
    9544                 :           0 :                                                 _o1[0] = unshare_expr (captures[0]);
    9545                 :           0 :                                                 _o1[1] = unshare_expr (captures[1]);
    9546                 :           0 :                                                 _r1 = fold_build2_loc (loc, LE_EXPR, boolean_type_node, _o1[0], _o1[1]);
    9547                 :           0 :                                                 res_op0 = _r1;
    9548                 :             :                                               }
    9549                 :           0 :                                               tree res_op1;
    9550                 :           0 :                                               res_op1 = unshare_expr (captures[0]);
    9551                 :           0 :                                               tree res_op2;
    9552                 :           0 :                                               {
    9553                 :           0 :                                                 tree _o1[2], _r1;
    9554                 :           0 :                                                 _o1[0] = captures[0];
    9555                 :           0 :                                                 _o1[1] = captures[1];
    9556                 :           0 :                                                 _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    9557                 :           0 :                                                 res_op2 = _r1;
    9558                 :             :                                               }
    9559                 :           0 :                                               tree _r;
    9560                 :           0 :                                               _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
    9561                 :           0 :                                               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 950, __FILE__, __LINE__, true);
    9562                 :           0 :                                               return _r;
    9563                 :             :                                             }
    9564                 :          64 : next_after_fail1393:;
    9565                 :             :                                           }
    9566                 :             :                                       }
    9567                 :           8 :                                 }
    9568                 :             :                               }
    9569                 :          64 :                               break;
    9570                 :             :                             }
    9571                 :             :                           default:;
    9572                 :             :                           }
    9573                 :             :                         break;
    9574                 :             :                       }
    9575                 :             :                     default:;
    9576                 :             :                     }
    9577                 :             :                 }
    9578                 :             :               break;
    9579                 :             :             }
    9580                 :             :           default:;
    9581                 :             :           }
    9582                 :             :         break;
    9583                 :             :       }
    9584                 :    19728132 :     default:;
    9585                 :             :     }
    9586                 :    19728132 :   switch (TREE_CODE (_p0))
    9587                 :             :     {
    9588                 :           0 :     case VEC_PERM_EXPR:
    9589                 :           0 :       {
    9590                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
    9591                 :           0 :         tree _q21 = TREE_OPERAND (_p0, 1);
    9592                 :           0 :         tree _q22 = TREE_OPERAND (_p0, 2);
    9593                 :           0 :         if ((_q21 == _q20 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q20, 0) && types_match (_q21, _q20)))
    9594                 :             :           {
    9595                 :           0 :             switch (TREE_CODE (_p1))
    9596                 :             :               {
    9597                 :           0 :               case VEC_PERM_EXPR:
    9598                 :           0 :                 {
    9599                 :           0 :                   tree _q60 = TREE_OPERAND (_p1, 0);
    9600                 :           0 :                   tree _q61 = TREE_OPERAND (_p1, 1);
    9601                 :           0 :                   tree _q62 = TREE_OPERAND (_p1, 2);
    9602                 :           0 :                   if ((_q61 == _q60 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q60, 0) && types_match (_q61, _q60)))
    9603                 :             :                     {
    9604                 :           0 :                       if ((_q62 == _q22 && ! TREE_SIDE_EFFECTS (_q62)) || (operand_equal_p (_q62, _q22, 0) && types_match (_q62, _q22)))
    9605                 :             :                         {
    9606                 :           0 :                           {
    9607                 :           0 :                             tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q22, _q60 };
    9608                 :           0 :                             if (VECTOR_INTEGER_TYPE_P (type)
    9609                 :             : )
    9610                 :             :                               {
    9611                 :           0 :                                 if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1394;
    9612                 :           0 :                                 {
    9613                 :           0 :                                   tree res_op0;
    9614                 :           0 :                                   {
    9615                 :           0 :                                     tree _o1[2], _r1;
    9616                 :           0 :                                     _o1[0] = captures[0];
    9617                 :           0 :                                     _o1[1] = captures[2];
    9618                 :           0 :                                     _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    9619                 :           0 :                                     captures[3] = _r1;
    9620                 :             :                                   }
    9621                 :           0 :                                   res_op0 = unshare_expr (captures[3]);
    9622                 :           0 :                                   tree res_op1;
    9623                 :           0 :                                   res_op1 = captures[3];
    9624                 :           0 :                                   tree res_op2;
    9625                 :           0 :                                   res_op2 = captures[1];
    9626                 :           0 :                                   tree _r;
    9627                 :           0 :                                   _r = fold_build3_loc (loc, VEC_PERM_EXPR, type, res_op0, res_op1, res_op2);
    9628                 :           0 :                                   if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 912, __FILE__, __LINE__, true);
    9629                 :           0 :                                   return _r;
    9630                 :             :                                 }
    9631                 :           0 : next_after_fail1394:;
    9632                 :             :                               }
    9633                 :             :                           }
    9634                 :             :                         }
    9635                 :             :                     }
    9636                 :             :                   break;
    9637                 :             :                 }
    9638                 :           0 :               default:;
    9639                 :             :               }
    9640                 :           0 :             switch (TREE_CODE (_q22))
    9641                 :             :               {
    9642                 :           0 :               case VECTOR_CST:
    9643                 :           0 :                 {
    9644                 :           0 :                   switch (TREE_CODE (_p1))
    9645                 :             :                     {
    9646                 :           0 :                     case VEC_PERM_EXPR:
    9647                 :           0 :                       {
    9648                 :           0 :                         tree _q60 = TREE_OPERAND (_p1, 0);
    9649                 :           0 :                         tree _q61 = TREE_OPERAND (_p1, 1);
    9650                 :           0 :                         tree _q62 = TREE_OPERAND (_p1, 2);
    9651                 :           0 :                         if ((_q61 == _q60 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q60, 0) && types_match (_q61, _q60)))
    9652                 :             :                           {
    9653                 :           0 :                             if ((_q62 == _q22 && ! TREE_SIDE_EFFECTS (_q62)) || (operand_equal_p (_q62, _q22, 0) && types_match (_q62, _q22)))
    9654                 :             :                               {
    9655                 :           0 :                                 switch (TREE_CODE (_q62))
    9656                 :             :                                   {
    9657                 :           0 :                                   case VECTOR_CST:
    9658                 :           0 :                                     {
    9659                 :           0 :                                       {
    9660                 :           0 :                                         tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q22, _q60 };
    9661                 :           0 :                                         tree res = generic_simplify_39 (loc, type, _p0, _p1, captures, MINUS_EXPR);
    9662                 :           0 :                                         if (res) return res;
    9663                 :             :                                       }
    9664                 :           0 :                                       break;
    9665                 :             :                                     }
    9666                 :             :                                   default:;
    9667                 :             :                                   }
    9668                 :             :                               }
    9669                 :             :                           }
    9670                 :             :                         break;
    9671                 :             :                       }
    9672                 :             :                     default:;
    9673                 :             :                     }
    9674                 :             :                   break;
    9675                 :             :                 }
    9676                 :             :               default:;
    9677                 :             :               }
    9678                 :             :           }
    9679                 :             :         break;
    9680                 :             :       }
    9681                 :             :     default:;
    9682                 :             :     }
    9683                 :             :   return NULL_TREE;
    9684                 :             : }
    9685                 :             : 
    9686                 :             : tree
    9687                 :     1201685 : generic_simplify_LSHIFT_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
    9688                 :             : {
    9689                 :     1201685 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    9690                 :     1201685 :   switch (TREE_CODE (_p1))
    9691                 :             :     {
    9692                 :         254 :     case TRUNC_MOD_EXPR:
    9693                 :         254 :       {
    9694                 :         254 :         tree _q30 = TREE_OPERAND (_p1, 0);
    9695                 :         254 :         tree _q31 = TREE_OPERAND (_p1, 1);
    9696                 :         254 :         {
    9697                 :         254 :           tree _q31_pops[1];
    9698                 :         254 :           if (tree_power_of_two_cand (_q31, _q31_pops))
    9699                 :             :             {
    9700                 :         248 :               tree _q50 = _q31_pops[0];
    9701                 :         248 :               {
    9702                 :         248 :                 tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q31, _q50 };
    9703                 :         248 :                 tree res = generic_simplify_371 (loc, type, _p0, _p1, captures, LSHIFT_EXPR, TRUNC_MOD_EXPR);
    9704                 :         248 :                 if (res) return res;
    9705                 :             :               }
    9706                 :             :             }
    9707                 :             :         }
    9708                 :          24 :         break;
    9709                 :             :       }
    9710                 :           0 :     case FLOOR_MOD_EXPR:
    9711                 :           0 :       {
    9712                 :           0 :         tree _q30 = TREE_OPERAND (_p1, 0);
    9713                 :           0 :         tree _q31 = TREE_OPERAND (_p1, 1);
    9714                 :           0 :         {
    9715                 :           0 :           tree _q31_pops[1];
    9716                 :           0 :           if (tree_power_of_two_cand (_q31, _q31_pops))
    9717                 :             :             {
    9718                 :           0 :               tree _q50 = _q31_pops[0];
    9719                 :           0 :               {
    9720                 :           0 :                 tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q31, _q50 };
    9721                 :           0 :                 tree res = generic_simplify_371 (loc, type, _p0, _p1, captures, LSHIFT_EXPR, FLOOR_MOD_EXPR);
    9722                 :           0 :                 if (res) return res;
    9723                 :             :               }
    9724                 :             :             }
    9725                 :             :         }
    9726                 :           0 :         break;
    9727                 :             :       }
    9728                 :     1201455 :     default:;
    9729                 :             :     }
    9730                 :     1201455 : if (uniform_integer_cst_p (_p1))
    9731                 :             :   {
    9732                 :      810178 :     {
    9733                 :      810178 :       tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    9734                 :      810178 :       tree res = generic_simplify_372 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
    9735                 :      810178 :       if (res) return res;
    9736                 :             :     }
    9737                 :             :   }
    9738                 :     1200990 :   switch (TREE_CODE (_p0))
    9739                 :             :     {
    9740                 :      660541 :     CASE_CONVERT:
    9741                 :      660541 :       {
    9742                 :      660541 :         tree _q20 = TREE_OPERAND (_p0, 0);
    9743                 :      660541 :         switch (TREE_CODE (_q20))
    9744                 :             :           {
    9745                 :           4 :           case LT_EXPR:
    9746                 :           4 :             {
    9747                 :           4 :               tree _q30 = TREE_OPERAND (_q20, 0);
    9748                 :           4 :               tree _q31 = TREE_OPERAND (_q20, 1);
    9749                 :           4 :               if (integer_zerop (_q31))
    9750                 :             :                 {
    9751                 :           4 :                   switch (TREE_CODE (_p1))
    9752                 :             :                     {
    9753                 :           4 :                     case INTEGER_CST:
    9754                 :           4 :                       {
    9755                 :           4 :                         {
    9756                 :           4 :                           tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
    9757                 :           4 :                           if (TYPE_SIGN (TREE_TYPE (captures[0])) == SIGNED
    9758                 :           4 :  && wi::eq_p (wi::to_wide (captures[2]), TYPE_PRECISION (TREE_TYPE (captures[0])) - 1)
    9759                 :             : )
    9760                 :             :                             {
    9761                 :           0 :                               {
    9762                 :           0 :  wide_int wone = wi::one (TYPE_PRECISION (type));
    9763                 :           0 :                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1822;
    9764                 :           0 :                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1822;
    9765                 :           0 :                                   {
    9766                 :           0 :                                     tree res_op0;
    9767                 :           0 :                                     {
    9768                 :           0 :                                       tree _o1[1], _r1;
    9769                 :           0 :                                       _o1[0] = captures[0];
    9770                 :           0 :                                       if (TREE_TYPE (_o1[0]) != type)
    9771                 :             :                                         {
    9772                 :           0 :                                           _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
    9773                 :             :                                         }
    9774                 :             :                                       else
    9775                 :             :                                         _r1 = _o1[0];
    9776                 :           0 :                                       res_op0 = _r1;
    9777                 :             :                                     }
    9778                 :           0 :                                     tree res_op1;
    9779                 :           0 :                                     res_op1 =  wide_int_to_tree (type,
    9780                 :           0 :  wi::lshift (wone, wi::to_wide (captures[2])));
    9781                 :           0 :                                     tree _r;
    9782                 :           0 :                                     _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
    9783                 :           0 :                                     if (TREE_SIDE_EFFECTS (captures[1]))
    9784                 :           0 :                                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    9785                 :           0 :                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1020, __FILE__, __LINE__, true);
    9786                 :           0 :                                     return _r;
    9787                 :             :                                   }
    9788                 :           0 : next_after_fail1822:;
    9789                 :           0 :                               }
    9790                 :             :                             }
    9791                 :             :                         }
    9792                 :           4 :                         break;
    9793                 :             :                       }
    9794                 :             :                     default:;
    9795                 :             :                     }
    9796                 :             :                 }
    9797                 :             :               break;
    9798                 :             :             }
    9799                 :         123 :           CASE_CONVERT:
    9800                 :         123 :             {
    9801                 :         123 :               tree _q30 = TREE_OPERAND (_q20, 0);
    9802                 :         123 :               switch (TREE_CODE (_q30))
    9803                 :             :                 {
    9804                 :           0 :                 case RSHIFT_EXPR:
    9805                 :           0 :                   {
    9806                 :           0 :                     tree _q40 = TREE_OPERAND (_q30, 0);
    9807                 :           0 :                     tree _q41 = TREE_OPERAND (_q30, 1);
    9808                 :           0 :                     switch (TREE_CODE (_q41))
    9809                 :             :                       {
    9810                 :           0 :                       case INTEGER_CST:
    9811                 :           0 :                         {
    9812                 :           0 :                           if ((_p1 == _q41 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q41, 0) && types_match (_p1, _q41)))
    9813                 :             :                             {
    9814                 :           0 :                               {
    9815                 :           0 :                                 tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q40, _q41 };
    9816                 :           0 :                                 if (wi::ltu_p (wi::to_wide (captures[2]), element_precision (type))
    9817                 :           0 :  && INTEGRAL_TYPE_P (type)
    9818                 :           0 :  && INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
    9819                 :           0 :  && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
    9820                 :           0 :  && TYPE_PRECISION (type) == TYPE_PRECISION (TREE_TYPE (captures[1]))
    9821                 :           0 :  && (TYPE_PRECISION (TREE_TYPE (captures[0])) >= TYPE_PRECISION (type)
    9822                 :           0 :  || wi::geu_p (wi::to_wide (captures[2]),
    9823                 :           0 :  TYPE_PRECISION (type)
    9824                 :           0 :  - TYPE_PRECISION (TREE_TYPE (captures[0]))))
    9825                 :             : )
    9826                 :             :                                   {
    9827                 :           0 :                                     if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1823;
    9828                 :           0 :                                     {
    9829                 :           0 :                                       tree res_op0;
    9830                 :           0 :                                       {
    9831                 :           0 :                                         tree _o1[1], _r1;
    9832                 :           0 :                                         _o1[0] = captures[1];
    9833                 :           0 :                                         if (TREE_TYPE (_o1[0]) != type)
    9834                 :             :                                           {
    9835                 :           0 :                                             _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
    9836                 :             :                                           }
    9837                 :             :                                         else
    9838                 :             :                                           _r1 = _o1[0];
    9839                 :           0 :                                         res_op0 = _r1;
    9840                 :             :                                       }
    9841                 :           0 :                                       tree res_op1;
    9842                 :           0 :                                       {
    9843                 :           0 :                                         tree _o1[2], _r1;
    9844                 :           0 :                                         _o1[0] =  build_minus_one_cst (type);
    9845                 :           0 :                                         _o1[1] = captures[2];
    9846                 :           0 :                                         _r1 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    9847                 :           0 :                                         res_op1 = _r1;
    9848                 :             :                                       }
    9849                 :           0 :                                       tree _r;
    9850                 :           0 :                                       _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
    9851                 :           0 :                                       if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1021, __FILE__, __LINE__, true);
    9852                 :           0 :                                       return _r;
    9853                 :             :                                     }
    9854                 :           0 : next_after_fail1823:;
    9855                 :             :                                   }
    9856                 :             :                               }
    9857                 :             :                             }
    9858                 :             :                           break;
    9859                 :             :                         }
    9860                 :             :                       default:;
    9861                 :             :                       }
    9862                 :             :                     break;
    9863                 :             :                   }
    9864                 :             :                 default:;
    9865                 :             :                 }
    9866                 :             :               break;
    9867                 :             :             }
    9868                 :             :           default:;
    9869                 :             :           }
    9870                 :             :         break;
    9871                 :             :       }
    9872                 :       20350 :     case RSHIFT_EXPR:
    9873                 :       20350 :       {
    9874                 :       20350 :         tree _q20 = TREE_OPERAND (_p0, 0);
    9875                 :       20350 :         tree _q21 = TREE_OPERAND (_p0, 1);
    9876                 :       20350 :         switch (TREE_CODE (_q21))
    9877                 :             :           {
    9878                 :          48 :           case INTEGER_CST:
    9879                 :          48 :             {
    9880                 :          48 :               if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
    9881                 :             :                 {
    9882                 :           3 :                   {
    9883                 :           3 :                     tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
    9884                 :           3 :                     tree res = generic_simplify_373 (loc, type, _p0, _p1, captures);
    9885                 :           3 :                     if (res) return res;
    9886                 :             :                   }
    9887                 :             :                 }
    9888                 :             :               break;
    9889                 :             :             }
    9890                 :             :           default:;
    9891                 :             :           }
    9892                 :             :         break;
    9893                 :             :       }
    9894                 :     1200987 :     default:;
    9895                 :             :     }
    9896                 :     1200987 : {
    9897                 :     1200987 :   tree _p0_pops[1];
    9898                 :     1200987 :   if (tree_nop_convert (_p0, _p0_pops))
    9899                 :             :     {
    9900                 :      633235 :       tree _q20 = _p0_pops[0];
    9901                 :      633235 :       switch (TREE_CODE (_q20))
    9902                 :             :         {
    9903                 :          73 :         case RSHIFT_EXPR:
    9904                 :          73 :           {
    9905                 :          73 :             tree _q30 = TREE_OPERAND (_q20, 0);
    9906                 :          73 :             tree _q31 = TREE_OPERAND (_q20, 1);
    9907                 :          73 :             switch (TREE_CODE (_q31))
    9908                 :             :               {
    9909                 :          67 :               case INTEGER_CST:
    9910                 :          67 :                 {
    9911                 :          67 :                   if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
    9912                 :             :                     {
    9913                 :           8 :                       {
    9914                 :           8 :                         tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
    9915                 :           8 :                         tree res = generic_simplify_373 (loc, type, _p0, _p1, captures);
    9916                 :           8 :                         if (res) return res;
    9917                 :             :                       }
    9918                 :             :                     }
    9919                 :             :                   break;
    9920                 :             :                 }
    9921                 :             :               default:;
    9922                 :             :               }
    9923                 :             :             break;
    9924                 :             :           }
    9925                 :             :         default:;
    9926                 :             :         }
    9927                 :             :     }
    9928                 :             : }
    9929                 :     1200979 : if (integer_onep (_p0))
    9930                 :             :   {
    9931                 :      326940 :     switch (TREE_CODE (_p1))
    9932                 :             :       {
    9933                 :       50812 :       case MINUS_EXPR:
    9934                 :       50812 :         {
    9935                 :       50812 :           tree _q30 = TREE_OPERAND (_p1, 0);
    9936                 :       50812 :           tree _q31 = TREE_OPERAND (_p1, 1);
    9937                 :       50812 :           switch (TREE_CODE (_q30))
    9938                 :             :             {
    9939                 :       50809 :             case INTEGER_CST:
    9940                 :       50809 :               {
    9941                 :       50809 :                 {
    9942                 :       50809 :                   tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31 };
    9943                 :       50809 :                   if (INTEGRAL_TYPE_P (type)
    9944                 :       50809 :  && wi::eq_p (wi::to_wide (captures[2]), TYPE_PRECISION (type) - 1)
    9945                 :       50809 :  && single_use (captures[1])
    9946                 :             : )
    9947                 :             :                     {
    9948                 :       30162 :                       if (TYPE_UNSIGNED (type)
    9949                 :             : )
    9950                 :             :                         {
    9951                 :       30156 :                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1824;
    9952                 :       30156 :                           {
    9953                 :       30156 :                             tree res_op0;
    9954                 :       30156 :                             {
    9955                 :       30156 :                               tree _o1[2], _r1;
    9956                 :       30156 :                               _o1[0] = captures[0];
    9957                 :       30156 :                               _o1[1] = captures[2];
    9958                 :       30156 :                               _r1 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    9959                 :       30156 :                               res_op0 = _r1;
    9960                 :             :                             }
    9961                 :       30156 :                             tree res_op1;
    9962                 :       30156 :                             res_op1 = captures[3];
    9963                 :       30156 :                             tree _r;
    9964                 :       30156 :                             _r = fold_build2_loc (loc, RSHIFT_EXPR, type, res_op0, res_op1);
    9965                 :       30156 :                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1022, __FILE__, __LINE__, true);
    9966                 :       30156 :                             return _r;
    9967                 :             :                           }
    9968                 :           0 : next_after_fail1824:;
    9969                 :             :                         }
    9970                 :             :                       else
    9971                 :             :                         {
    9972                 :           6 :                           {
    9973                 :           6 :  tree utype = unsigned_type_for (type);
    9974                 :           6 :                               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1825;
    9975                 :           6 :                               {
    9976                 :           6 :                                 tree res_op0;
    9977                 :           6 :                                 {
    9978                 :           6 :                                   tree _o1[2], _r1;
    9979                 :           6 :                                   {
    9980                 :           6 :                                     tree _o2[2], _r2;
    9981                 :           6 :                                     {
    9982                 :           6 :                                       tree _o3[1], _r3;
    9983                 :           6 :                                       _o3[0] = captures[0];
    9984                 :           6 :                                       if (TREE_TYPE (_o3[0]) != utype)
    9985                 :             :                                         {
    9986                 :           6 :                                           _r3 = fold_build1_loc (loc, NOP_EXPR, utype, _o3[0]);
    9987                 :             :                                         }
    9988                 :             :                                       else
    9989                 :             :                                         _r3 = _o3[0];
    9990                 :           6 :                                       _o2[0] = _r3;
    9991                 :             :                                     }
    9992                 :           6 :                                     _o2[1] = captures[2];
    9993                 :           6 :                                     _r2 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
    9994                 :           6 :                                     _o1[0] = _r2;
    9995                 :             :                                   }
    9996                 :           6 :                                   _o1[1] = captures[3];
    9997                 :           6 :                                   _r1 = fold_build2_loc (loc, RSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    9998                 :           6 :                                   res_op0 = _r1;
    9999                 :             :                                 }
   10000                 :           6 :                                 tree _r;
   10001                 :           6 :                                 _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
   10002                 :           6 :                                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1023, __FILE__, __LINE__, true);
   10003                 :           6 :                                 return _r;
   10004                 :             :                               }
   10005                 :           0 : next_after_fail1825:;
   10006                 :             :                           }
   10007                 :             :                         }
   10008                 :             :                     }
   10009                 :             :                 }
   10010                 :       20647 :                 break;
   10011                 :             :               }
   10012                 :             :             default:;
   10013                 :             :             }
   10014                 :             :           break;
   10015                 :             :         }
   10016                 :             :       default:;
   10017                 :             :       }
   10018                 :             :   }
   10019                 :     1170817 :   if (integer_zerop (_p1))
   10020                 :             :     {
   10021                 :        1050 :       {
   10022                 :        1050 :         tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
   10023                 :        1050 :         tree res = generic_simplify_374 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
   10024                 :        1050 :         if (res) return res;
   10025                 :             :       }
   10026                 :             :     }
   10027                 :     1169767 :   if (integer_zerop (_p0))
   10028                 :             :     {
   10029                 :         162 :       {
   10030                 :         162 :         tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
   10031                 :         162 :         tree res = generic_simplify_375 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
   10032                 :         162 :         if (res) return res;
   10033                 :             :       }
   10034                 :             :     }
   10035                 :     1169605 :   switch (TREE_CODE (_p1))
   10036                 :             :     {
   10037                 :           0 :     case VECTOR_CST:
   10038                 :           0 :       {
   10039                 :           0 :         {
   10040                 :           0 :           tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
   10041                 :           0 :           tree res = generic_simplify_376 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
   10042                 :           0 :           if (res) return res;
   10043                 :             :         }
   10044                 :           0 :         break;
   10045                 :             :       }
   10046                 :           0 :     case CONSTRUCTOR:
   10047                 :           0 :       {
   10048                 :           0 :         {
   10049                 :           0 :           tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
   10050                 :           0 :           tree res = generic_simplify_377 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
   10051                 :           0 :           if (res) return res;
   10052                 :             :         }
   10053                 :           0 :         break;
   10054                 :             :       }
   10055                 :     1169605 :     default:;
   10056                 :             :     }
   10057                 :     1169605 :   switch (TREE_CODE (_p0))
   10058                 :             :     {
   10059                 :         280 :     case LSHIFT_EXPR:
   10060                 :         280 :       {
   10061                 :         280 :         tree _q20 = TREE_OPERAND (_p0, 0);
   10062                 :         280 :         tree _q21 = TREE_OPERAND (_p0, 1);
   10063                 :         280 :         switch (TREE_CODE (_q21))
   10064                 :             :           {
   10065                 :          39 :           case INTEGER_CST:
   10066                 :          39 :             {
   10067                 :          39 :               switch (TREE_CODE (_p1))
   10068                 :             :                 {
   10069                 :          39 :                 case INTEGER_CST:
   10070                 :          39 :                   {
   10071                 :          39 :                     {
   10072                 :          39 :                       tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
   10073                 :          39 :                       tree res = generic_simplify_378 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
   10074                 :          39 :                       if (res) return res;
   10075                 :             :                     }
   10076                 :           0 :                     break;
   10077                 :             :                   }
   10078                 :             :                 default:;
   10079                 :             :                 }
   10080                 :             :               break;
   10081                 :             :             }
   10082                 :             :           default:;
   10083                 :             :           }
   10084                 :             :         break;
   10085                 :             :       }
   10086                 :      660386 :     CASE_CONVERT:
   10087                 :      660386 :       {
   10088                 :      660386 :         tree _q20 = TREE_OPERAND (_p0, 0);
   10089                 :      660386 :         switch (TREE_CODE (_q20))
   10090                 :             :           {
   10091                 :           0 :           case BIT_AND_EXPR:
   10092                 :           0 :             {
   10093                 :           0 :               tree _q30 = TREE_OPERAND (_q20, 0);
   10094                 :           0 :               tree _q31 = TREE_OPERAND (_q20, 1);
   10095                 :           0 :               switch (TREE_CODE (_q31))
   10096                 :             :                 {
   10097                 :           0 :                 case INTEGER_CST:
   10098                 :           0 :                   {
   10099                 :           0 :                     switch (TREE_CODE (_p1))
   10100                 :             :                       {
   10101                 :           0 :                       case INTEGER_CST:
   10102                 :           0 :                         {
   10103                 :           0 :                           {
   10104                 :           0 :                             tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1 };
   10105                 :           0 :                             tree res = generic_simplify_379 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LSHIFT_EXPR);
   10106                 :           0 :                             if (res) return res;
   10107                 :             :                           }
   10108                 :           0 :                           break;
   10109                 :             :                         }
   10110                 :             :                       default:;
   10111                 :             :                       }
   10112                 :             :                     break;
   10113                 :             :                   }
   10114                 :             :                 default:;
   10115                 :             :                 }
   10116                 :             :               break;
   10117                 :             :             }
   10118                 :          11 :           case BIT_XOR_EXPR:
   10119                 :          11 :             {
   10120                 :          11 :               tree _q30 = TREE_OPERAND (_q20, 0);
   10121                 :          11 :               tree _q31 = TREE_OPERAND (_q20, 1);
   10122                 :          11 :               switch (TREE_CODE (_q31))
   10123                 :             :                 {
   10124                 :           0 :                 case INTEGER_CST:
   10125                 :           0 :                   {
   10126                 :           0 :                     switch (TREE_CODE (_p1))
   10127                 :             :                       {
   10128                 :           0 :                       case INTEGER_CST:
   10129                 :           0 :                         {
   10130                 :           0 :                           {
   10131                 :           0 :                             tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1 };
   10132                 :           0 :                             tree res = generic_simplify_379 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, LSHIFT_EXPR);
   10133                 :           0 :                             if (res) return res;
   10134                 :             :                           }
   10135                 :           0 :                           break;
   10136                 :             :                         }
   10137                 :             :                       default:;
   10138                 :             :                       }
   10139                 :             :                     break;
   10140                 :             :                   }
   10141                 :             :                 default:;
   10142                 :             :                 }
   10143                 :             :               break;
   10144                 :             :             }
   10145                 :          18 :           case BIT_IOR_EXPR:
   10146                 :          18 :             {
   10147                 :          18 :               tree _q30 = TREE_OPERAND (_q20, 0);
   10148                 :          18 :               tree _q31 = TREE_OPERAND (_q20, 1);
   10149                 :          18 :               switch (TREE_CODE (_q31))
   10150                 :             :                 {
   10151                 :          11 :                 case INTEGER_CST:
   10152                 :          11 :                   {
   10153                 :          11 :                     switch (TREE_CODE (_p1))
   10154                 :             :                       {
   10155                 :          11 :                       case INTEGER_CST:
   10156                 :          11 :                         {
   10157                 :          11 :                           {
   10158                 :          11 :                             tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1 };
   10159                 :          11 :                             tree res = generic_simplify_379 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, LSHIFT_EXPR);
   10160                 :          11 :                             if (res) return res;
   10161                 :             :                           }
   10162                 :           2 :                           break;
   10163                 :             :                         }
   10164                 :             :                       default:;
   10165                 :             :                       }
   10166                 :             :                     break;
   10167                 :             :                   }
   10168                 :             :                 default:;
   10169                 :             :                 }
   10170                 :             :               break;
   10171                 :             :             }
   10172                 :             :           default:;
   10173                 :             :           }
   10174                 :             :         break;
   10175                 :             :       }
   10176                 :       14898 :     case BIT_AND_EXPR:
   10177                 :       14898 :       {
   10178                 :       14898 :         tree _q20 = TREE_OPERAND (_p0, 0);
   10179                 :       14898 :         tree _q21 = TREE_OPERAND (_p0, 1);
   10180                 :       14898 :         switch (TREE_CODE (_q21))
   10181                 :             :           {
   10182                 :       14803 :           case INTEGER_CST:
   10183                 :       14803 :             {
   10184                 :       14803 :               switch (TREE_CODE (_p1))
   10185                 :             :                 {
   10186                 :       14664 :                 case INTEGER_CST:
   10187                 :       14664 :                   {
   10188                 :       14664 :                     {
   10189                 :       14664 :                       tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1 };
   10190                 :       14664 :                       tree res = generic_simplify_380 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LSHIFT_EXPR);
   10191                 :       14664 :                       if (res) return res;
   10192                 :             :                     }
   10193                 :           7 :                     break;
   10194                 :             :                   }
   10195                 :             :                 default:;
   10196                 :             :                 }
   10197                 :             :               break;
   10198                 :             :             }
   10199                 :             :           default:;
   10200                 :             :           }
   10201                 :             :         break;
   10202                 :             :       }
   10203                 :          69 :     case BIT_XOR_EXPR:
   10204                 :          69 :       {
   10205                 :          69 :         tree _q20 = TREE_OPERAND (_p0, 0);
   10206                 :          69 :         tree _q21 = TREE_OPERAND (_p0, 1);
   10207                 :          69 :         switch (TREE_CODE (_q21))
   10208                 :             :           {
   10209                 :           0 :           case INTEGER_CST:
   10210                 :           0 :             {
   10211                 :           0 :               switch (TREE_CODE (_p1))
   10212                 :             :                 {
   10213                 :           0 :                 case INTEGER_CST:
   10214                 :           0 :                   {
   10215                 :           0 :                     {
   10216                 :           0 :                       tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1 };
   10217                 :           0 :                       tree res = generic_simplify_380 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, LSHIFT_EXPR);
   10218                 :           0 :                       if (res) return res;
   10219                 :             :                     }
   10220                 :           0 :                     break;
   10221                 :             :                   }
   10222                 :             :                 default:;
   10223                 :             :                 }
   10224                 :             :               break;
   10225                 :             :             }
   10226                 :             :           default:;
   10227                 :             :           }
   10228                 :             :         break;
   10229                 :             :       }
   10230                 :          78 :     case BIT_IOR_EXPR:
   10231                 :          78 :       {
   10232                 :          78 :         tree _q20 = TREE_OPERAND (_p0, 0);
   10233                 :          78 :         tree _q21 = TREE_OPERAND (_p0, 1);
   10234                 :          78 :         switch (TREE_CODE (_q21))
   10235                 :             :           {
   10236                 :           2 :           case INTEGER_CST:
   10237                 :           2 :             {
   10238                 :           2 :               switch (TREE_CODE (_p1))
   10239                 :             :                 {
   10240                 :           2 :                 case INTEGER_CST:
   10241                 :           2 :                   {
   10242                 :           2 :                     {
   10243                 :           2 :                       tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1 };
   10244                 :           2 :                       tree res = generic_simplify_380 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, LSHIFT_EXPR);
   10245                 :           2 :                       if (res) return res;
   10246                 :             :                     }
   10247                 :           0 :                     break;
   10248                 :             :                   }
   10249                 :             :                 default:;
   10250                 :             :                 }
   10251                 :             :               break;
   10252                 :             :             }
   10253                 :             :           default:;
   10254                 :             :           }
   10255                 :             :         break;
   10256                 :             :       }
   10257                 :           1 :     case VEC_COND_EXPR:
   10258                 :           1 :       {
   10259                 :           1 :         tree _q20 = TREE_OPERAND (_p0, 0);
   10260                 :           1 :         tree _q21 = TREE_OPERAND (_p0, 1);
   10261                 :           1 :         tree _q22 = TREE_OPERAND (_p0, 2);
   10262                 :           1 :         switch (TREE_CODE (_p1))
   10263                 :             :           {
   10264                 :           0 :           case VEC_COND_EXPR:
   10265                 :           0 :             {
   10266                 :           0 :               tree _q60 = TREE_OPERAND (_p1, 0);
   10267                 :           0 :               tree _q61 = TREE_OPERAND (_p1, 1);
   10268                 :           0 :               tree _q62 = TREE_OPERAND (_p1, 2);
   10269                 :           0 :               if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
   10270                 :             :                 {
   10271                 :           0 :                   {
   10272                 :           0 :                     tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
   10273                 :           0 :                     if (VECTOR_TYPE_P (type)
   10274                 :           0 :  && (TREE_CODE_CLASS (LSHIFT_EXPR) != tcc_comparison
   10275                 :             :  || types_match (type, TREE_TYPE (captures[2]))
   10276                 :             :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
   10277                 :             :  || (optimize_vectors_before_lowering_p ()
   10278                 :             :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
   10279                 :             : )
   10280                 :             :                       {
   10281                 :           0 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1826;
   10282                 :           0 :                         {
   10283                 :           0 :                           tree res_op0;
   10284                 :           0 :                           res_op0 = captures[1];
   10285                 :           0 :                           tree res_op1;
   10286                 :           0 :                           {
   10287                 :           0 :                             tree _o1[2], _r1;
   10288                 :           0 :                             _o1[0] = captures[2];
   10289                 :           0 :                             _o1[1] = captures[5];
   10290                 :           0 :                             _r1 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
   10291                 :           0 :                             if (EXPR_P (_r1))
   10292                 :           0 :                               goto next_after_fail1826;
   10293                 :           0 :                             res_op1 = _r1;
   10294                 :             :                           }
   10295                 :           0 :                           tree res_op2;
   10296                 :           0 :                           {
   10297                 :           0 :                             tree _o1[2], _r1;
   10298                 :           0 :                             _o1[0] = captures[3];
   10299                 :           0 :                             _o1[1] = captures[6];
   10300                 :           0 :                             _r1 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
   10301                 :           0 :                             if (EXPR_P (_r1))
   10302                 :           0 :                               goto next_after_fail1826;
   10303                 :           0 :                             res_op2 = _r1;
   10304                 :             :                           }
   10305                 :           0 :                           tree _r;
   10306                 :           0 :                           _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
   10307                 :           0 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 909, __FILE__, __LINE__, true);
   10308                 :           0 :                           return _r;
   10309                 :             :                         }
   10310                 :           0 : next_after_fail1826:;
   10311                 :             :                       }
   10312                 :             :                   }
   10313                 :             :                 }
   10314                 :             :               break;
   10315                 :             :             }
   10316                 :           1 :           default:;
   10317                 :             :           }
   10318                 :           1 :         {
   10319                 :           1 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
   10320                 :           1 :           if (VECTOR_TYPE_P (type)
   10321                 :           1 :  && (TREE_CODE_CLASS (LSHIFT_EXPR) != tcc_comparison
   10322                 :             :  || types_match (type, TREE_TYPE (captures[2]))
   10323                 :             :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
   10324                 :             :  || (optimize_vectors_before_lowering_p ()
   10325                 :             :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
   10326                 :             : )
   10327                 :             :             {
   10328                 :           1 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1827;
   10329                 :           1 :               {
   10330                 :           1 :                 if (! tree_invariant_p (captures[4])) goto next_after_fail1827;
   10331                 :           0 :                 tree res_op0;
   10332                 :           0 :                 res_op0 = captures[1];
   10333                 :           0 :                 tree res_op1;
   10334                 :           0 :                 {
   10335                 :           0 :                   tree _o1[2], _r1;
   10336                 :           0 :                   _o1[0] = captures[2];
   10337                 :           0 :                   _o1[1] = unshare_expr (captures[4]);
   10338                 :           0 :                   _r1 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
   10339                 :           0 :                   if (EXPR_P (_r1))
   10340                 :           0 :                     goto next_after_fail1827;
   10341                 :           0 :                   res_op1 = _r1;
   10342                 :             :                 }
   10343                 :           0 :                 tree res_op2;
   10344                 :           0 :                 {
   10345                 :           0 :                   tree _o1[2], _r1;
   10346                 :           0 :                   _o1[0] = captures[3];
   10347                 :           0 :                   _o1[1] = captures[4];
   10348                 :           0 :                   _r1 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
   10349                 :           0 :                   if (EXPR_P (_r1))
   10350                 :           0 :                     goto next_after_fail1827;
   10351                 :           0 :                   res_op2 = _r1;
   10352                 :             :                 }
   10353                 :           0 :                 tree _r;
   10354                 :           0 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
   10355                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 910, __FILE__, __LINE__, true);
   10356                 :           0 :                 return _r;
   10357                 :             :               }
   10358                 :           1 : next_after_fail1827:;
   10359                 :             :             }
   10360                 :             :         }
   10361                 :           1 :         break;
   10362                 :             :       }
   10363                 :     1154898 :     default:;
   10364                 :             :     }
   10365                 :     1154898 :   switch (TREE_CODE (_p1))
   10366                 :             :     {
   10367                 :           3 :     case VEC_COND_EXPR:
   10368                 :           3 :       {
   10369                 :           3 :         tree _q30 = TREE_OPERAND (_p1, 0);
   10370                 :           3 :         tree _q31 = TREE_OPERAND (_p1, 1);
   10371                 :           3 :         tree _q32 = TREE_OPERAND (_p1, 2);
   10372                 :           3 :         {
   10373                 :           3 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
   10374                 :           3 :           if (VECTOR_TYPE_P (type)
   10375                 :           3 :  && (TREE_CODE_CLASS (LSHIFT_EXPR) != tcc_comparison
   10376                 :             :  || types_match (type, TREE_TYPE (captures[3]))
   10377                 :             :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
   10378                 :             :  || (optimize_vectors_before_lowering_p ()
   10379                 :             :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
   10380                 :             : )
   10381                 :             :             {
   10382                 :           3 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1828;
   10383                 :           3 :               {
   10384                 :           3 :                 if (! tree_invariant_p (captures[0])) goto next_after_fail1828;
   10385                 :           1 :                 tree res_op0;
   10386                 :           1 :                 res_op0 = captures[2];
   10387                 :           1 :                 tree res_op1;
   10388                 :           1 :                 {
   10389                 :           1 :                   tree _o1[2], _r1;
   10390                 :           1 :                   _o1[0] = unshare_expr (captures[0]);
   10391                 :           1 :                   _o1[1] = captures[3];
   10392                 :           1 :                   _r1 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
   10393                 :           1 :                   if (EXPR_P (_r1))
   10394                 :           0 :                     goto next_after_fail1828;
   10395                 :           1 :                   res_op1 = _r1;
   10396                 :             :                 }
   10397                 :           1 :                 tree res_op2;
   10398                 :           1 :                 {
   10399                 :           1 :                   tree _o1[2], _r1;
   10400                 :           1 :                   _o1[0] = captures[0];
   10401                 :           1 :                   _o1[1] = captures[4];
   10402                 :           1 :                   _r1 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
   10403                 :           1 :                   if (EXPR_P (_r1))
   10404                 :           0 :                     goto next_after_fail1828;
   10405                 :           1 :                   res_op2 = _r1;
   10406                 :             :                 }
   10407                 :           1 :                 tree _r;
   10408                 :           1 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
   10409                 :           1 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 911, __FILE__, __LINE__, true);
   10410                 :           1 :                 return _r;
   10411                 :             :               }
   10412                 :           2 : next_after_fail1828:;
   10413                 :             :             }
   10414                 :             :         }
   10415                 :           2 :         break;
   10416                 :             :       }
   10417                 :     1154897 :     default:;
   10418                 :             :     }
   10419                 :     1154897 :   switch (TREE_CODE (_p0))
   10420                 :             :     {
   10421                 :           0 :     case VEC_PERM_EXPR:
   10422                 :           0 :       {
   10423                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
   10424                 :           0 :         tree _q21 = TREE_OPERAND (_p0, 1);
   10425                 :           0 :         tree _q22 = TREE_OPERAND (_p0, 2);
   10426                 :           0 :         if ((_q21 == _q20 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q20, 0) && types_match (_q21, _q20)))
   10427                 :             :           {
   10428                 :           0 :             switch (TREE_CODE (_p1))
   10429                 :             :               {
   10430                 :           0 :               case VEC_PERM_EXPR:
   10431                 :           0 :                 {
   10432                 :           0 :                   tree _q60 = TREE_OPERAND (_p1, 0);
   10433                 :           0 :                   tree _q61 = TREE_OPERAND (_p1, 1);
   10434                 :           0 :                   tree _q62 = TREE_OPERAND (_p1, 2);
   10435                 :           0 :                   if ((_q61 == _q60 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q60, 0) && types_match (_q61, _q60)))
   10436                 :             :                     {
   10437                 :           0 :                       if ((_q62 == _q22 && ! TREE_SIDE_EFFECTS (_q62)) || (operand_equal_p (_q62, _q22, 0) && types_match (_q62, _q22)))
   10438                 :             :                         {
   10439                 :           0 :                           {
   10440                 :           0 :                             tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q22, _q60 };
   10441                 :           0 :                             if (VECTOR_INTEGER_TYPE_P (type)
   10442                 :             : )
   10443                 :             :                               {
   10444                 :           0 :                                 if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1829;
   10445                 :           0 :                                 {
   10446                 :           0 :                                   tree res_op0;
   10447                 :           0 :                                   {
   10448                 :           0 :                                     tree _o1[2], _r1;
   10449                 :           0 :                                     _o1[0] = captures[0];
   10450                 :           0 :                                     _o1[1] = captures[2];
   10451                 :           0 :                                     _r1 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
   10452                 :           0 :                                     captures[3] = _r1;
   10453                 :             :                                   }
   10454                 :           0 :                                   res_op0 = unshare_expr (captures[3]);
   10455                 :           0 :                                   tree res_op1;
   10456                 :           0 :                                   res_op1 = captures[3];
   10457                 :           0 :                                   tree res_op2;
   10458                 :           0 :                                   res_op2 = captures[1];
   10459                 :           0 :                                   tree _r;
   10460                 :           0 :                                   _r = fold_build3_loc (loc, VEC_PERM_EXPR, type, res_op0, res_op1, res_op2);
   10461                 :           0 :                                   if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 912, __FILE__, __LINE__, true);
   10462                 :           0 :                                   return _r;
   10463                 :             :                                 }
   10464                 :           0 : next_after_fail1829:;
   10465                 :             :                               }
   10466                 :             :                           }
   10467                 :             :                         }
   10468                 :             :                     }
   10469                 :             :                   break;
   10470                 :             :                 }
   10471                 :             :               default:;
   10472                 :             :               }
   10473                 :             :           }
   10474                 :             :         break;
   10475                 :             :       }
   10476                 :             :     default:;
   10477                 :             :     }
   10478                 :             :   return NULL_TREE;
   10479                 :             : }
   10480                 :             : 
   10481                 :             : tree
   10482                 :       84791 : generic_simplify_MIN_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
   10483                 :             : {
   10484                 :       84791 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
   10485                 :       84791 :   if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
   10486                 :             :     {
   10487                 :           0 :       {
   10488                 :           0 :         tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
   10489                 :           0 :         tree res = generic_simplify_499 (loc, type, _p0, _p1, captures, MIN_EXPR);
   10490                 :           0 :         if (res) return res;
   10491                 :             :       }
   10492                 :             :     }
   10493                 :       84791 :   switch (TREE_CODE (_p0))
   10494                 :             :     {
   10495                 :           4 :     case MIN_EXPR:
   10496                 :           4 :       {
   10497                 :           4 :         tree _q20 = TREE_OPERAND (_p0, 0);
   10498                 :           4 :         tree _q21 = TREE_OPERAND (_p0, 1);
   10499                 :           4 :         if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
   10500                 :             :           {
   10501                 :           0 :             {
   10502                 :           0 :               tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
   10503                 :           0 :               tree res = generic_simplify_500 (loc, type, _p0, _p1, captures, MIN_EXPR);
   10504                 :           0 :               if (res) return res;
   10505                 :             :             }
   10506                 :             :           }
   10507                 :           4 :         if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
   10508                 :             :           {
   10509                 :           0 :             {
   10510                 :           0 :               tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
   10511                 :           0 :               tree res = generic_simplify_500 (loc, type, _p0, _p1, captures, MIN_EXPR);
   10512                 :           0 :               if (res) return res;
   10513                 :             :             }
   10514                 :             :           }
   10515                 :             :         break;
   10516                 :             :       }
   10517                 :       84791 :     default:;
   10518                 :             :     }
   10519                 :       84791 :   switch (TREE_CODE (_p1))
   10520                 :             :     {
   10521                 :           0 :     case MIN_EXPR:
   10522                 :           0 :       {
   10523                 :           0 :         tree _q30 = TREE_OPERAND (_p1, 0);
   10524                 :           0 :         tree _q31 = TREE_OPERAND (_p1, 1);
   10525                 :           0 :         if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
   10526                 :             :           {
   10527                 :           0 :             {
   10528                 :           0 :               tree captures[3] ATTRIBUTE_UNUSED = { _p1, _p0, _q31 };
   10529                 :           0 :               tree res = generic_simplify_501 (loc, type, _p0, _p1, captures, MIN_EXPR);
   10530                 :           0 :               if (res) return res;
   10531                 :             :             }
   10532                 :             :           }
   10533                 :           0 :         if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
   10534                 :             :           {
   10535                 :           0 :             {
   10536                 :           0 :               tree captures[3] ATTRIBUTE_UNUSED = { _p1, _p0, _q30 };
   10537                 :           0 :               tree res = generic_simplify_501 (loc, type, _p0, _p1, captures, MIN_EXPR);
   10538                 :           0 :               if (res) return res;
   10539                 :             :             }
   10540                 :             :           }
   10541                 :             :         break;
   10542                 :             :       }
   10543                 :       84791 :     default:;
   10544                 :             :     }
   10545                 :       84791 :   switch (TREE_CODE (_p0))
   10546                 :             :     {
   10547                 :           4 :     case MAX_EXPR:
   10548                 :           4 :       {
   10549                 :           4 :         tree _q20 = TREE_OPERAND (_p0, 0);
   10550                 :           4 :         tree _q21 = TREE_OPERAND (_p0, 1);
   10551                 :           4 :         if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
   10552                 :             :           {
   10553                 :           3 :             {
   10554                 :           3 :               tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
   10555                 :           3 :               tree res = generic_simplify_502 (loc, type, _p0, _p1, captures);
   10556                 :           3 :               if (res) return res;
   10557                 :             :             }
   10558                 :             :           }
   10559                 :           1 :         if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
   10560                 :             :           {
   10561                 :           1 :             {
   10562                 :           1 :               tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
   10563                 :           1 :               tree res = generic_simplify_502 (loc, type, _p0, _p1, captures);
   10564                 :           1 :               if (res) return res;
   10565                 :             :             }
   10566                 :             :           }
   10567                 :             :         break;
   10568                 :             :       }
   10569                 :       84787 :     default:;
   10570                 :             :     }
   10571                 :       84787 :   switch (TREE_CODE (_p1))
   10572                 :             :     {
   10573                 :           0 :     case MAX_EXPR:
   10574                 :           0 :       {
   10575                 :           0 :         tree _q30 = TREE_OPERAND (_p1, 0);
   10576                 :           0 :         tree _q31 = TREE_OPERAND (_p1, 1);
   10577                 :           0 :         if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
   10578                 :             :           {
   10579                 :           0 :             {
   10580                 :           0 :               tree captures[2] ATTRIBUTE_UNUSED = { _q30, _p0 };
   10581                 :           0 :               tree res = generic_simplify_502 (loc, type, _p0, _p1, captures);
   10582                 :           0 :               if (res) return res;
   10583                 :             :             }
   10584                 :             :           }
   10585                 :           0 :         if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
   10586                 :             :           {
   10587                 :           0 :             {
   10588                 :           0 :               tree captures[2] ATTRIBUTE_UNUSED = { _q31, _p0 };
   10589                 :           0 :               tree res = generic_simplify_502 (loc, type, _p0, _p1, captures);
   10590                 :           0 :               if (res) return res;
   10591                 :             :             }
   10592                 :             :           }
   10593                 :             :         break;
   10594                 :             :       }
   10595                 :           0 :     case NEGATE_EXPR:
   10596                 :           0 :       {
   10597                 :           0 :         tree _q30 = TREE_OPERAND (_p1, 0);
   10598                 :           0 :         if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
   10599                 :             :           {
   10600                 :           0 :             {
   10601                 :           0 :               tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
   10602                 :           0 :               tree res = generic_simplify_503 (loc, type, _p0, _p1, captures);
   10603                 :           0 :               if (res) return res;
   10604                 :             :             }
   10605                 :             :           }
   10606                 :             :         break;
   10607                 :             :       }
   10608                 :       84787 :     default:;
   10609                 :             :     }
   10610                 :       84787 :   switch (TREE_CODE (_p0))
   10611                 :             :     {
   10612                 :           2 :     case NEGATE_EXPR:
   10613                 :           2 :       {
   10614                 :           2 :         tree _q20 = TREE_OPERAND (_p0, 0);
   10615                 :           2 :         if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
   10616                 :             :           {
   10617                 :           2 :             {
   10618                 :           2 :               tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
   10619                 :           2 :               tree res = generic_simplify_503 (loc, type, _p0, _p1, captures);
   10620                 :           2 :               if (res) return res;
   10621                 :             :             }
   10622                 :             :           }
   10623                 :             :         break;
   10624                 :             :       }
   10625                 :       84785 :     default:;
   10626                 :             :     }
   10627                 :       84785 :   {
   10628                 :       84785 :     tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
   10629                 :       84785 :     if (INTEGRAL_TYPE_P (type)
   10630                 :       82999 :  && TYPE_MIN_VALUE (type)
   10631                 :      167784 :  && operand_equal_p (captures[1], TYPE_MIN_VALUE (type), OEP_ONLY_CONST)
   10632                 :             : )
   10633                 :             :       {
   10634                 :         540 :         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1893;
   10635                 :         540 :         {
   10636                 :         540 :           tree _r;
   10637                 :         540 :           _r = captures[1];
   10638                 :         540 :           if (TREE_SIDE_EFFECTS (captures[0]))
   10639                 :           0 :             _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
   10640                 :         540 :           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1038, __FILE__, __LINE__, true);
   10641                 :         540 :           return _r;
   10642                 :             :         }
   10643                 :           0 : next_after_fail1893:;
   10644                 :             :       }
   10645                 :             :     else
   10646                 :             :       {
   10647                 :       84245 :         if (INTEGRAL_TYPE_P (type)
   10648                 :       82459 :  && TYPE_MAX_VALUE (type)
   10649                 :      166704 :  && operand_equal_p (captures[1], TYPE_MAX_VALUE (type), OEP_ONLY_CONST)
   10650                 :             : )
   10651                 :             :           {
   10652                 :           1 :             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1894;
   10653                 :           1 :             {
   10654                 :           1 :               tree _r;
   10655                 :           1 :               _r = captures[0];
   10656                 :           1 :               if (TREE_SIDE_EFFECTS (captures[1]))
   10657                 :           0 :                 _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
   10658                 :           1 :               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1039, __FILE__, __LINE__, true);
   10659                 :           1 :               return _r;
   10660                 :             :             }
   10661                 :           0 : next_after_fail1894:;
   10662                 :             :           }
   10663                 :             :       }
   10664                 :             :   }
   10665                 :       84244 :   switch (TREE_CODE (_p1))
   10666                 :             :     {
   10667                 :          22 :     case PLUS_EXPR:
   10668                 :          22 :       {
   10669                 :          22 :         tree _q30 = TREE_OPERAND (_p1, 0);
   10670                 :          22 :         tree _q31 = TREE_OPERAND (_p1, 1);
   10671                 :          22 :         if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
   10672                 :             :           {
   10673                 :           0 :             switch (TREE_CODE (_q31))
   10674                 :             :               {
   10675                 :           0 :               case INTEGER_CST:
   10676                 :           0 :                 {
   10677                 :           0 :                   {
   10678                 :           0 :                     tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q31 };
   10679                 :           0 :                     if (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
   10680                 :             : )
   10681                 :             :                       {
   10682                 :           0 :                         if (tree_int_cst_sgn (captures[2]) > 0
   10683                 :             : )
   10684                 :             :                           {
   10685                 :           0 :                             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1895;
   10686                 :           0 :                             {
   10687                 :           0 :                               tree _r;
   10688                 :           0 :                               _r = captures[0];
   10689                 :           0 :                               if (TREE_SIDE_EFFECTS (captures[2]))
   10690                 :           0 :                                 _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
   10691                 :           0 :                               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1040, __FILE__, __LINE__, true);
   10692                 :           0 :                               return _r;
   10693                 :             :                             }
   10694                 :           0 : next_after_fail1895:;
   10695                 :             :                           }
   10696                 :             :                         else
   10697                 :             :                           {
   10698                 :           0 :                             if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1896;
   10699                 :           0 :                             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1896;
   10700                 :           0 :                             {
   10701                 :           0 :                               tree _r;
   10702                 :           0 :                               _r = captures[1];
   10703                 :           0 :                               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1041, __FILE__, __LINE__, true);
   10704                 :           0 :                               return _r;
   10705                 :             :                             }
   10706                 :           0 : next_after_fail1896:;
   10707                 :             :                           }
   10708                 :             :                       }
   10709                 :             :                   }
   10710                 :           0 :                   break;
   10711                 :             :                 }
   10712                 :             :               default:;
   10713                 :             :               }
   10714                 :             :           }
   10715                 :             :         break;
   10716                 :             :       }
   10717                 :       84244 :     default:;
   10718                 :             :     }
   10719                 :       84244 :   switch (TREE_CODE (_p0))
   10720                 :             :     {
   10721                 :        5571 :     case PLUS_EXPR:
   10722                 :        5571 :       {
   10723                 :        5571 :         tree _q20 = TREE_OPERAND (_p0, 0);
   10724                 :        5571 :         tree _q21 = TREE_OPERAND (_p0, 1);
   10725                 :        5571 :         switch (TREE_CODE (_q21))
   10726                 :             :           {
   10727                 :        5442 :           case INTEGER_CST:
   10728                 :        5442 :             {
   10729                 :        5442 :               if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
   10730                 :             :                 {
   10731                 :           0 :                   {
   10732                 :           0 :                     tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p0, _q21 };
   10733                 :           0 :                     if (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
   10734                 :             : )
   10735                 :             :                       {
   10736                 :           0 :                         if (tree_int_cst_sgn (captures[2]) > 0
   10737                 :             : )
   10738                 :             :                           {
   10739                 :           0 :                             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1897;
   10740                 :           0 :                             {
   10741                 :           0 :                               tree _r;
   10742                 :           0 :                               _r = captures[0];
   10743                 :           0 :                               if (TREE_SIDE_EFFECTS (captures[2]))
   10744                 :           0 :                                 _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
   10745                 :           0 :                               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1040, __FILE__, __LINE__, true);
   10746                 :           0 :                               return _r;
   10747                 :             :                             }
   10748                 :           0 : next_after_fail1897:;
   10749                 :             :                           }
   10750                 :             :                         else
   10751                 :             :                           {
   10752                 :           0 :                             if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1898;
   10753                 :           0 :                             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1898;
   10754                 :           0 :                             {
   10755                 :           0 :                               tree _r;
   10756                 :           0 :                               _r = captures[1];
   10757                 :           0 :                               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1041, __FILE__, __LINE__, true);
   10758                 :           0 :                               return _r;
   10759                 :             :                             }
   10760                 :           0 : next_after_fail1898:;
   10761                 :             :                           }
   10762                 :             :                       }
   10763                 :             :                   }
   10764                 :             :                 }
   10765                 :             :               break;
   10766                 :             :             }
   10767                 :             :           default:;
   10768                 :             :           }
   10769                 :             :         break;
   10770                 :             :       }
   10771                 :           4 :     case MIN_EXPR:
   10772                 :           4 :       {
   10773                 :           4 :         tree _q20 = TREE_OPERAND (_p0, 0);
   10774                 :           4 :         tree _q21 = TREE_OPERAND (_p0, 1);
   10775                 :           4 :         switch (TREE_CODE (_p1))
   10776                 :             :           {
   10777                 :           0 :           case MAX_EXPR:
   10778                 :           0 :             {
   10779                 :           0 :               tree _q50 = TREE_OPERAND (_p1, 0);
   10780                 :           0 :               tree _q51 = TREE_OPERAND (_p1, 1);
   10781                 :           0 :               if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
   10782                 :             :                 {
   10783                 :           0 :                   if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
   10784                 :             :                     {
   10785                 :           0 :                       {
   10786                 :           0 :                         tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
   10787                 :           0 :                         if (!HONOR_NANS (captures[0])
   10788                 :             : )
   10789                 :             :                           {
   10790                 :           0 :                             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1899;
   10791                 :           0 :                             {
   10792                 :           0 :                               tree res_op0;
   10793                 :           0 :                               res_op0 = captures[0];
   10794                 :           0 :                               tree res_op1;
   10795                 :           0 :                               res_op1 = captures[1];
   10796                 :           0 :                               tree _r;
   10797                 :           0 :                               _r = fold_build2_loc (loc, MIN_EXPR, type, res_op0, res_op1);
   10798                 :           0 :                               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 905, __FILE__, __LINE__, true);
   10799                 :           0 :                               return _r;
   10800                 :             :                             }
   10801                 :           0 : next_after_fail1899:;
   10802                 :             :                           }
   10803                 :             :                       }
   10804                 :             :                     }
   10805                 :             :                 }
   10806                 :           0 :               if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
   10807                 :             :                 {
   10808                 :           0 :                   if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
   10809                 :             :                     {
   10810                 :           0 :                       {
   10811                 :           0 :                         tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
   10812                 :           0 :                         if (!HONOR_NANS (captures[0])
   10813                 :             : )
   10814                 :             :                           {
   10815                 :           0 :                             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1900;
   10816                 :           0 :                             {
   10817                 :           0 :                               tree res_op0;
   10818                 :           0 :                               res_op0 = captures[0];
   10819                 :           0 :                               tree res_op1;
   10820                 :           0 :                               res_op1 = captures[1];
   10821                 :           0 :                               tree _r;
   10822                 :           0 :                               _r = fold_build2_loc (loc, MIN_EXPR, type, res_op0, res_op1);
   10823                 :           0 :                               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 905, __FILE__, __LINE__, true);
   10824                 :           0 :                               return _r;
   10825                 :             :                             }
   10826                 :           0 : next_after_fail1900:;
   10827                 :             :                           }
   10828                 :             :                       }
   10829                 :             :                     }
   10830                 :             :                 }
   10831                 :             :               break;
   10832                 :             :             }
   10833                 :             :           default:;
   10834                 :             :           }
   10835                 :             :         break;
   10836                 :             :       }
   10837                 :           0 :     case MAX_EXPR:
   10838                 :           0 :       {
   10839                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
   10840                 :           0 :         tree _q21 = TREE_OPERAND (_p0, 1);
   10841                 :           0 :         switch (TREE_CODE (_p1))
   10842                 :             :           {
   10843                 :           0 :           case MIN_EXPR:
   10844                 :           0 :             {
   10845                 :           0 :               tree _q50 = TREE_OPERAND (_p1, 0);
   10846                 :           0 :               tree _q51 = TREE_OPERAND (_p1, 1);
   10847                 :           0 :               if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
   10848                 :             :                 {
   10849                 :           0 :                   if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
   10850                 :             :                     {
   10851                 :           0 :                       {
   10852                 :           0 :                         tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
   10853                 :           0 :                         if (!HONOR_NANS (captures[0])
   10854                 :             : )
   10855                 :             :                           {
   10856                 :           0 :                             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1901;
   10857                 :           0 :                             {
   10858                 :           0 :                               tree res_op0;
   10859                 :           0 :                               res_op0 = captures[0];
   10860                 :           0 :                               tree res_op1;
   10861                 :           0 :                               res_op1 = captures[1];
   10862                 :           0 :                               tree _r;
   10863                 :           0 :                               _r = fold_build2_loc (loc, MIN_EXPR, type, res_op0, res_op1);
   10864                 :           0 :                               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 905, __FILE__, __LINE__, true);
   10865                 :           0 :                               return _r;
   10866                 :             :                             }
   10867                 :           0 : next_after_fail1901:;
   10868                 :             :                           }
   10869                 :             :                       }
   10870                 :             :                     }
   10871                 :             :                 }
   10872                 :           0 :               if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
   10873                 :             :                 {
   10874                 :           0 :                   if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
   10875                 :             :                     {
   10876                 :           0 :                       {
   10877                 :           0 :                         tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
   10878                 :           0 :                         if (!HONOR_NANS (captures[0])
   10879                 :             : )
   10880                 :             :                           {
   10881                 :           0 :                             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1902;
   10882                 :           0 :                             {
   10883                 :           0 :                               tree res_op0;
   10884                 :           0 :                               res_op0 = captures[0];
   10885                 :           0 :                               tree res_op1;
   10886                 :           0 :                               res_op1 = captures[1];
   10887                 :           0 :                               tree _r;
   10888                 :           0 :                               _r = fold_build2_loc (loc, MIN_EXPR, type, res_op0, res_op1);
   10889                 :           0 :                               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 905, __FILE__, __LINE__, true);
   10890                 :           0 :                               return _r;
   10891                 :             :                             }
   10892                 :           0 : next_after_fail1902:;
   10893                 :             :                           }
   10894                 :             :                       }
   10895                 :             :                     }
   10896                 :             :                 }
   10897                 :             :               break;
   10898                 :             :             }
   10899                 :             :           default:;
   10900                 :             :           }
   10901                 :             :         break;
   10902                 :             :       }
   10903                 :         508 :     CASE_CONVERT:
   10904                 :         508 :       {
   10905                 :         508 :         tree _q20 = TREE_OPERAND (_p0, 0);
   10906                 :         508 :         switch (TREE_CODE (_q20))
   10907                 :             :           {
   10908                 :           2 :           case ADDR_EXPR:
   10909                 :           2 :             {
   10910                 :           2 :               switch (TREE_CODE (_p1))
   10911                 :             :                 {
   10912                 :           2 :                 CASE_CONVERT:
   10913                 :           2 :                   {
   10914                 :           2 :                     tree _q40 = TREE_OPERAND (_p1, 0);
   10915                 :           2 :                     switch (TREE_CODE (_q40))
   10916                 :             :                       {
   10917                 :           2 :                       case ADDR_EXPR:
   10918                 :           2 :                         {
   10919                 :           2 :                           {
   10920                 :           2 :                             tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
   10921                 :           2 :                             tree res = generic_simplify_504 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR);
   10922                 :           2 :                             if (res) return res;
   10923                 :             :                           }
   10924                 :           2 :                           break;
   10925                 :             :                         }
   10926                 :             :                       default:;
   10927                 :             :                       }
   10928                 :             :                     break;
   10929                 :             :                   }
   10930                 :           0 :                 case ADDR_EXPR:
   10931                 :           0 :                   {
   10932                 :           0 :                     {
   10933                 :           0 :                       tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _p1 };
   10934                 :           0 :                       tree res = generic_simplify_505 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR);
   10935                 :           0 :                       if (res) return res;
   10936                 :             :                     }
   10937                 :           0 :                     break;
   10938                 :             :                   }
   10939                 :             :                 default:;
   10940                 :             :                 }
   10941                 :             :               break;
   10942                 :             :             }
   10943                 :             :           default:;
   10944                 :             :           }
   10945                 :             :         break;
   10946                 :             :       }
   10947                 :          10 :     case ADDR_EXPR:
   10948                 :          10 :       {
   10949                 :          10 :         switch (TREE_CODE (_p1))
   10950                 :             :           {
   10951                 :           0 :           CASE_CONVERT:
   10952                 :           0 :             {
   10953                 :           0 :               tree _q30 = TREE_OPERAND (_p1, 0);
   10954                 :           0 :               switch (TREE_CODE (_q30))
   10955                 :             :                 {
   10956                 :           0 :                 case ADDR_EXPR:
   10957                 :           0 :                   {
   10958                 :           0 :                     {
   10959                 :           0 :                       tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _p1, _q30 };
   10960                 :           0 :                       tree res = generic_simplify_506 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR);
   10961                 :           0 :                       if (res) return res;
   10962                 :             :                     }
   10963                 :           0 :                     break;
   10964                 :             :                   }
   10965                 :             :                 default:;
   10966                 :             :                 }
   10967                 :             :               break;
   10968                 :             :             }
   10969                 :          10 :           case ADDR_EXPR:
   10970                 :          10 :             {
   10971                 :          10 :               {
   10972                 :          10 :                 tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _p1, _p1 };
   10973                 :          10 :                 tree res = generic_simplify_507 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR);
   10974                 :          10 :                 if (res) return res;
   10975                 :             :               }
   10976                 :          10 :               break;
   10977                 :             :             }
   10978                 :             :           default:;
   10979                 :             :           }
   10980                 :             :         break;
   10981                 :             :       }
   10982                 :           0 :     case NEGATE_EXPR:
   10983                 :           0 :       {
   10984                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
   10985                 :           0 :         switch (TREE_CODE (_p1))
   10986                 :             :           {
   10987                 :           0 :           case NEGATE_EXPR:
   10988                 :           0 :             {
   10989                 :           0 :               tree _q40 = TREE_OPERAND (_p1, 0);
   10990                 :           0 :               {
   10991                 :           0 :                 tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
   10992                 :           0 :                 if (FLOAT_TYPE_P (TREE_TYPE (captures[1]))
   10993                 :           0 :  || (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
   10994                 :           0 :  && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[1])))
   10995                 :             : )
   10996                 :             :                   {
   10997                 :           0 :                     if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1903;
   10998                 :           0 :                     {
   10999                 :           0 :                       tree res_op0;
   11000                 :           0 :                       {
   11001                 :           0 :                         tree _o1[2], _r1;
   11002                 :           0 :                         _o1[0] = captures[1];
   11003                 :           0 :                         _o1[1] = captures[3];
   11004                 :           0 :                         _r1 = fold_build2_loc (loc, MAX_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
   11005                 :           0 :                         res_op0 = _r1;
   11006                 :             :                       }
   11007                 :           0 :                       tree _r;
   11008                 :           0 :                       _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
   11009                 :           0 :                       if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1042, __FILE__, __LINE__, true);
   11010                 :           0 :                       return _r;
   11011                 :             :                     }
   11012                 :           0 : next_after_fail1903:;
   11013                 :             :                   }
   11014                 :             :               }
   11015                 :           0 :               break;
   11016                 :             :             }
   11017                 :             :           default:;
   11018                 :             :           }
   11019                 :             :         break;
   11020                 :             :       }
   11021                 :           0 :     case BIT_NOT_EXPR:
   11022                 :           0 :       {
   11023                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
   11024                 :           0 :         switch (TREE_CODE (_p1))
   11025                 :             :           {
   11026                 :           0 :           case BIT_NOT_EXPR:
   11027                 :           0 :             {
   11028                 :           0 :               tree _q40 = TREE_OPERAND (_p1, 0);
   11029                 :           0 :               {
   11030                 :           0 :                 tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
   11031                 :           0 :                 tree res = generic_simplify_508 (loc, type, _p0, _p1, captures, MIN_EXPR, MAX_EXPR);
   11032                 :           0 :                 if (res) return res;
   11033                 :             :               }
   11034                 :           0 :               break;
   11035                 :             :             }
   11036                 :             :           default:;
   11037                 :             :           }
   11038                 :             :         break;
   11039                 :             :       }
   11040                 :           0 :     case VEC_COND_EXPR:
   11041                 :           0 :       {
   11042                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
   11043                 :           0 :         tree _q21 = TREE_OPERAND (_p0, 1);
   11044                 :           0 :         tree _q22 = TREE_OPERAND (_p0, 2);
   11045                 :           0 :         switch (TREE_CODE (_p1))
   11046                 :             :           {
   11047                 :           0 :           case VEC_COND_EXPR:
   11048                 :           0 :             {
   11049                 :           0 :               tree _q60 = TREE_OPERAND (_p1, 0);
   11050                 :           0 :               tree _q61 = TREE_OPERAND (_p1, 1);
   11051                 :           0 :               tree _q62 = TREE_OPERAND (_p1, 2);
   11052                 :           0 :               if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
   11053                 :             :                 {
   11054                 :           0 :                   {
   11055                 :           0 :                     tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
   11056                 :           0 :                     if (VECTOR_TYPE_P (type)
   11057                 :           0 :  && (TREE_CODE_CLASS (MIN_EXPR) != tcc_comparison
   11058                 :             :  || types_match (type, TREE_TYPE (captures[2]))
   11059                 :             :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
   11060                 :             :  || (optimize_vectors_before_lowering_p ()
   11061                 :             :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
   11062                 :             : )
   11063                 :             :                       {
   11064                 :           0 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1904;
   11065                 :           0 :                         {
   11066                 :           0 :                           tree res_op0;
   11067                 :           0 :                           res_op0 = captures[1];
   11068                 :           0 :                           tree res_op1;
   11069                 :           0 :                           {
   11070                 :           0 :                             tree _o1[2], _r1;
   11071                 :           0 :                             _o1[0] = captures[2];
   11072                 :           0 :                             _o1[1] = captures[5];
   11073                 :           0 :                             _r1 = fold_build2_loc (loc, MIN_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
   11074                 :           0 :                             if (EXPR_P (_r1))
   11075                 :           0 :                               goto next_after_fail1904;
   11076                 :           0 :                             res_op1 = _r1;
   11077                 :             :                           }
   11078                 :           0 :                           tree res_op2;
   11079                 :           0 :                           {
   11080                 :           0 :                             tree _o1[2], _r1;
   11081                 :           0 :                             _o1[0] = captures[3];
   11082                 :           0 :                             _o1[1] = captures[6];
   11083                 :           0 :                             _r1 = fold_build2_loc (loc, MIN_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
   11084                 :           0 :                             if (EXPR_P (_r1))
   11085                 :           0 :                               goto next_after_fail1904;
   11086                 :           0 :                             res_op2 = _r1;
   11087                 :             :                           }
   11088                 :           0 :                           tree _r;
   11089                 :           0 :                           _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
   11090                 :           0 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 909, __FILE__, __LINE__, true);
   11091                 :           0 :                           return _r;
   11092                 :             :                         }
   11093                 :           0 : next_after_fail1904:;
   11094                 :             :                       }
   11095                 :             :                   }
   11096                 :             :                 }
   11097                 :             :               break;
   11098                 :             :             }
   11099                 :           0 :           default:;
   11100                 :             :           }
   11101                 :           0 :         {
   11102                 :           0 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
   11103                 :           0 :           if (VECTOR_TYPE_P (type)
   11104                 :           0 :  && (TREE_CODE_CLASS (MIN_EXPR) != tcc_comparison
   11105                 :             :  || types_match (type, TREE_TYPE (captures[2]))
   11106                 :             :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
   11107                 :             :  || (optimize_vectors_before_lowering_p ()
   11108                 :             :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
   11109                 :             : )
   11110                 :             :             {
   11111                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1905;
   11112                 :           0 :               {
   11113                 :           0 :                 if (! tree_invariant_p (captures[4])) goto next_after_fail1905;
   11114                 :           0 :                 tree res_op0;
   11115                 :           0 :                 res_op0 = captures[1];
   11116                 :           0 :                 tree res_op1;
   11117                 :           0 :                 {
   11118                 :           0 :                   tree _o1[2], _r1;
   11119                 :           0 :                   _o1[0] = captures[2];
   11120                 :           0 :                   _o1[1] = unshare_expr (captures[4]);
   11121                 :           0 :                   _r1 = fold_build2_loc (loc, MIN_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
   11122                 :           0 :                   if (EXPR_P (_r1))
   11123                 :           0 :                     goto next_after_fail1905;
   11124                 :           0 :                   res_op1 = _r1;
   11125                 :             :                 }
   11126                 :           0 :                 tree res_op2;
   11127                 :           0 :                 {
   11128                 :           0 :                   tree _o1[2], _r1;
   11129                 :           0 :                   _o1[0] = captures[3];
   11130                 :           0 :                   _o1[1] = captures[4];
   11131                 :           0 :                   _r1 = fold_build2_loc (loc, MIN_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
   11132                 :           0 :                   if (EXPR_P (_r1))
   11133                 :           0 :                     goto next_after_fail1905;
   11134                 :           0 :                   res_op2 = _r1;
   11135                 :             :                 }
   11136                 :           0 :                 tree _r;
   11137                 :           0 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
   11138                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 910, __FILE__, __LINE__, true);
   11139                 :           0 :                 return _r;
   11140                 :             :               }
   11141                 :           0 : next_after_fail1905:;
   11142                 :             :             }
   11143                 :             :         }
   11144                 :           0 :         break;
   11145                 :             :       }
   11146                 :       84244 :     default:;
   11147                 :             :     }
   11148                 :       84244 :   switch (TREE_CODE (_p1))
   11149                 :             :     {
   11150                 :           0 :     case VEC_COND_EXPR:
   11151                 :           0 :       {
   11152                 :           0 :         tree _q30 = TREE_OPERAND (_p1, 0);
   11153                 :           0 :         tree _q31 = TREE_OPERAND (_p1, 1);
   11154                 :           0 :         tree _q32 = TREE_OPERAND (_p1, 2);
   11155                 :           0 :         {
   11156                 :           0 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
   11157                 :           0 :           if (VECTOR_TYPE_P (type)
   11158                 :           0 :  && (TREE_CODE_CLASS (MIN_EXPR) != tcc_comparison
   11159                 :             :  || types_match (type, TREE_TYPE (captures[3]))
   11160                 :             :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
   11161                 :             :  || (optimize_vectors_before_lowering_p ()
   11162                 :             :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
   11163                 :             : )
   11164                 :             :             {
   11165                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1906;
   11166                 :           0 :               {
   11167                 :           0 :                 if (! tree_invariant_p (captures[0])) goto next_after_fail1906;
   11168                 :           0 :                 tree res_op0;
   11169                 :           0 :                 res_op0 = captures[2];
   11170                 :           0 :                 tree res_op1;
   11171                 :           0 :                 {
   11172                 :           0 :                   tree _o1[2], _r1;
   11173                 :           0 :                   _o1[0] = unshare_expr (captures[0]);
   11174                 :           0 :                   _o1[1] = captures[3];
   11175                 :           0 :                   _r1 = fold_build2_loc (loc, MIN_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
   11176                 :           0 :                   if (EXPR_P (_r1))
   11177                 :           0 :                     goto next_after_fail1906;
   11178                 :           0 :                   res_op1 = _r1;
   11179                 :             :                 }
   11180                 :           0 :                 tree res_op2;
   11181                 :           0 :                 {
   11182                 :           0 :                   tree _o1[2], _r1;
   11183                 :           0 :                   _o1[0] = captures[0];
   11184                 :           0 :                   _o1[1] = captures[4];
   11185                 :           0 :                   _r1 = fold_build2_loc (loc, MIN_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
   11186                 :           0 :                   if (EXPR_P (_r1))
   11187                 :           0 :                     goto next_after_fail1906;
   11188                 :           0 :                   res_op2 = _r1;
   11189                 :             :                 }
   11190                 :           0 :                 tree _r;
   11191                 :           0 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
   11192                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 911, __FILE__, __LINE__, true);
   11193                 :           0 :                 return _r;
   11194                 :             :               }
   11195                 :           0 : next_after_fail1906:;
   11196                 :             :             }
   11197                 :             :         }
   11198                 :           0 :         break;
   11199                 :             :       }
   11200                 :       84244 :     default:;
   11201                 :             :     }
   11202                 :       84244 :   if (tree_zero_one_valued_p (_p0))
   11203                 :             :     {
   11204                 :          12 :       if (tree_zero_one_valued_p (_p1))
   11205                 :             :         {
   11206                 :           2 :           {
   11207                 :           2 :             tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
   11208                 :           2 :             tree res = generic_simplify_509 (loc, type, _p0, _p1, captures, MIN_EXPR, BIT_AND_EXPR);
   11209                 :           2 :             if (res) return res;
   11210                 :             :           }
   11211                 :             :         }
   11212                 :             :     }
   11213                 :             :   return NULL_TREE;
   11214                 :             : }
   11215                 :             : 
   11216                 :             : tree
   11217                 :      867438 : generic_simplify_UNORDERED_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
   11218                 :             : {
   11219                 :      867438 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
   11220                 :      867438 :   switch (TREE_CODE (_p0))
   11221                 :             :     {
   11222                 :           0 :     case VEC_COND_EXPR:
   11223                 :           0 :       {
   11224                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
   11225                 :           0 :         tree _q21 = TREE_OPERAND (_p0, 1);
   11226                 :           0 :         tree _q22 = TREE_OPERAND (_p0, 2);
   11227                 :           0 :         switch (TREE_CODE (_p1))
   11228                 :             :           {
   11229                 :           0 :           case VEC_COND_EXPR:
   11230                 :           0 :             {
   11231                 :           0 :               tree _q60 = TREE_OPERAND (_p1, 0);
   11232                 :           0 :               tree _q61 = TREE_OPERAND (_p1, 1);
   11233                 :           0 :               tree _q62 = TREE_OPERAND (_p1, 2);
   11234                 :           0 :               if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
   11235                 :             :                 {
   11236                 :           0 :                   {
   11237                 :           0 :                     tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
   11238                 :           0 :                     if (VECTOR_TYPE_P (type)
   11239                 :           0 :  && (TREE_CODE_CLASS (UNORDERED_EXPR) != tcc_comparison
   11240                 :           0 :  || types_match (type, TREE_TYPE (captures[2]))
   11241                 :           0 :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
   11242                 :             :  || (optimize_vectors_before_lowering_p ()
   11243                 :           0 :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
   11244                 :             : )
   11245                 :             :                       {
   11246                 :           0 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1923;
   11247                 :           0 :                         {
   11248                 :           0 :                           tree res_op0;
   11249                 :           0 :                           res_op0 = captures[1];
   11250                 :           0 :                           tree res_op1;
   11251                 :           0 :                           {
   11252                 :           0 :                             tree _o1[2], _r1;
   11253                 :           0 :                             _o1[0] = captures[2];
   11254                 :           0 :                             _o1[1] = captures[5];
   11255                 :           0 :                             _r1 = fold_build2_loc (loc, UNORDERED_EXPR, type, _o1[0], _o1[1]);
   11256                 :           0 :                             if (EXPR_P (_r1))
   11257                 :           0 :                               goto next_after_fail1923;
   11258                 :           0 :                             res_op1 = _r1;
   11259                 :             :                           }
   11260                 :           0 :                           tree res_op2;
   11261                 :           0 :                           {
   11262                 :           0 :                             tree _o1[2], _r1;
   11263                 :           0 :                             _o1[0] = captures[3];
   11264                 :           0 :                             _o1[1] = captures[6];
   11265                 :           0 :                             _r1 = fold_build2_loc (loc, UNORDERED_EXPR, type, _o1[0], _o1[1]);
   11266                 :           0 :                             if (EXPR_P (_r1))
   11267                 :           0 :                               goto next_after_fail1923;
   11268                 :           0 :                             res_op2 = _r1;
   11269                 :             :                           }
   11270                 :           0 :                           tree _r;
   11271                 :           0 :                           _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
   11272                 :           0 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 909, __FILE__, __LINE__, true);
   11273                 :           0 :                           return _r;
   11274                 :             :                         }
   11275                 :           0 : next_after_fail1923:;
   11276                 :             :                       }
   11277                 :             :                   }
   11278                 :             :                 }
   11279                 :             :               break;
   11280                 :             :             }
   11281                 :           0 :           default:;
   11282                 :             :           }
   11283                 :           0 :         {
   11284                 :           0 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
   11285                 :           0 :           if (VECTOR_TYPE_P (type)
   11286                 :           0 :  && (TREE_CODE_CLASS (UNORDERED_EXPR) != tcc_comparison
   11287                 :           0 :  || types_match (type, TREE_TYPE (captures[2]))
   11288                 :           0 :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
   11289                 :             :  || (optimize_vectors_before_lowering_p ()
   11290                 :           0 :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
   11291                 :             : )
   11292                 :             :             {
   11293                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1924;
   11294                 :           0 :               {
   11295                 :           0 :                 if (! tree_invariant_p (captures[4])) goto next_after_fail1924;
   11296                 :           0 :                 tree res_op0;
   11297                 :           0 :                 res_op0 = captures[1];
   11298                 :           0 :                 tree res_op1;
   11299                 :           0 :                 {
   11300                 :           0 :                   tree _o1[2], _r1;
   11301                 :           0 :                   _o1[0] = captures[2];
   11302                 :           0 :                   _o1[1] = unshare_expr (captures[4]);
   11303                 :           0 :                   _r1 = fold_build2_loc (loc, UNORDERED_EXPR, type, _o1[0], _o1[1]);
   11304                 :           0 :                   if (EXPR_P (_r1))
   11305                 :           0 :                     goto next_after_fail1924;
   11306                 :           0 :                   res_op1 = _r1;
   11307                 :             :                 }
   11308                 :           0 :                 tree res_op2;
   11309                 :           0 :                 {
   11310                 :           0 :                   tree _o1[2], _r1;
   11311                 :           0 :                   _o1[0] = captures[3];
   11312                 :           0 :                   _o1[1] = captures[4];
   11313                 :           0 :                   _r1 = fold_build2_loc (loc, UNORDERED_EXPR, type, _o1[0], _o1[1]);
   11314                 :           0 :                   if (EXPR_P (_r1))
   11315                 :           0 :                     goto next_after_fail1924;
   11316                 :           0 :                   res_op2 = _r1;
   11317                 :             :                 }
   11318                 :           0 :                 tree _r;
   11319                 :           0 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
   11320                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 910, __FILE__, __LINE__, true);
   11321                 :           0 :                 return _r;
   11322                 :             :               }
   11323                 :           0 : next_after_fail1924:;
   11324                 :             :             }
   11325                 :             :         }
   11326                 :           0 :         break;
   11327                 :             :       }
   11328                 :      867438 :     default:;
   11329                 :             :     }
   11330                 :      867438 :   switch (TREE_CODE (_p1))
   11331                 :             :     {
   11332                 :           0 :     case VEC_COND_EXPR:
   11333                 :           0 :       {
   11334                 :           0 :         tree _q30 = TREE_OPERAND (_p1, 0);
   11335                 :           0 :         tree _q31 = TREE_OPERAND (_p1, 1);
   11336                 :           0 :         tree _q32 = TREE_OPERAND (_p1, 2);
   11337                 :           0 :         {
   11338                 :           0 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
   11339                 :           0 :           if (VECTOR_TYPE_P (type)
   11340                 :           0 :  && (TREE_CODE_CLASS (UNORDERED_EXPR) != tcc_comparison
   11341                 :           0 :  || types_match (type, TREE_TYPE (captures[3]))
   11342                 :           0 :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
   11343                 :             :  || (optimize_vectors_before_lowering_p ()
   11344                 :           0 :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
   11345                 :             : )
   11346                 :             :             {
   11347                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1925;
   11348                 :           0 :               {
   11349                 :           0 :                 if (! tree_invariant_p (captures[0])) goto next_after_fail1925;
   11350                 :           0 :                 tree res_op0;
   11351                 :           0 :                 res_op0 = captures[2];
   11352                 :           0 :                 tree res_op1;
   11353                 :           0 :                 {
   11354                 :           0 :                   tree _o1[2], _r1;
   11355                 :           0 :                   _o1[0] = unshare_expr (captures[0]);
   11356                 :           0 :                   _o1[1] = captures[3];
   11357                 :           0 :                   _r1 = fold_build2_loc (loc, UNORDERED_EXPR, type, _o1[0], _o1[1]);
   11358                 :           0 :                   if (EXPR_P (_r1))
   11359                 :           0 :                     goto next_after_fail1925;
   11360                 :           0 :                   res_op1 = _r1;
   11361                 :             :                 }
   11362                 :           0 :                 tree res_op2;
   11363                 :           0 :                 {
   11364                 :           0 :                   tree _o1[2], _r1;
   11365                 :           0 :                   _o1[0] = captures[0];
   11366                 :           0 :                   _o1[1] = captures[4];
   11367                 :           0 :                   _r1 = fold_build2_loc (loc, UNORDERED_EXPR, type, _o1[0], _o1[1]);
   11368                 :           0 :                   if (EXPR_P (_r1))
   11369                 :           0 :                     goto next_after_fail1925;
   11370                 :           0 :                   res_op2 = _r1;
   11371                 :             :                 }
   11372                 :           0 :                 tree _r;
   11373                 :           0 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
   11374                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 911, __FILE__, __LINE__, true);
   11375                 :           0 :                 return _r;
   11376                 :             :               }
   11377                 :           0 : next_after_fail1925:;
   11378                 :             :             }
   11379                 :             :         }
   11380                 :           0 :         break;
   11381                 :             :       }
   11382                 :      867438 :     default:;
   11383                 :             :     }
   11384                 :      867438 :   switch (TREE_CODE (_p0))
   11385                 :             :     {
   11386                 :           0 :     case FLOAT_EXPR:
   11387                 :           0 :       {
   11388                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
   11389                 :           0 :         switch (TREE_CODE (_p1))
   11390                 :             :           {
   11391                 :           0 :           case FLOAT_EXPR:
   11392                 :           0 :             {
   11393                 :           0 :               tree _q40 = TREE_OPERAND (_p1, 0);
   11394                 :           0 :               {
   11395                 :           0 :                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
   11396                 :           0 :                 tree res = generic_simplify_254 (loc, type, _p0, _p1, captures, UNORDERED_EXPR, UNORDERED_EXPR);
   11397                 :           0 :                 if (res) return res;
   11398                 :             :               }
   11399                 :           0 :               break;
   11400                 :             :             }
   11401                 :             :           default:;
   11402                 :             :           }
   11403                 :             :         break;
   11404                 :             :       }
   11405                 :          18 :     case NEGATE_EXPR:
   11406                 :          18 :       {
   11407                 :          18 :         tree _q20 = TREE_OPERAND (_p0, 0);
   11408                 :          18 :         switch (TREE_CODE (_p1))
   11409                 :             :           {
   11410                 :          18 :           case NEGATE_EXPR:
   11411                 :          18 :             {
   11412                 :          18 :               tree _q40 = TREE_OPERAND (_p1, 0);
   11413                 :          18 :               {
   11414                 :          18 :                 tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
   11415                 :          18 :                 tree res = generic_simplify_257 (loc, type, _p0, _p1, captures, UNORDERED_EXPR, UNORDERED_EXPR);
   11416                 :          18 :                 if (res) return res;
   11417                 :             :               }
   11418                 :           0 :               break;
   11419                 :             :             }
   11420                 :           0 :           default:;
   11421                 :             :           }
   11422                 :           0 :       if (CONSTANT_CLASS_P (_p1))
   11423                 :             :         {
   11424                 :           0 :           {
   11425                 :           0 :             tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
   11426                 :           0 :             tree res = generic_simplify_258 (loc, type, _p0, _p1, captures, UNORDERED_EXPR, UNORDERED_EXPR);
   11427                 :           0 :             if (res) return res;
   11428                 :             :           }
   11429                 :             :         }
   11430                 :             :         break;
   11431                 :             :       }
   11432                 :      867420 :     default:;
   11433                 :             :     }
   11434                 :      867420 :   switch (TREE_CODE (_p1))
   11435                 :             :     {
   11436                 :         519 :     case REAL_CST:
   11437                 :         519 :       {
   11438                 :         519 :         {
   11439                 :         519 :           tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
   11440                 :         519 :           tree res = generic_simplify_538 (loc, type, _p0, _p1, captures, UNORDERED_EXPR);
   11441                 :         519 :           if (res) return res;
   11442                 :             :         }
   11443                 :         519 :         break;
   11444                 :             :       }
   11445                 :      867420 :     default:;
   11446                 :             :     }
   11447                 :      867420 :   {
   11448                 :      867420 :     tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
   11449                 :      867420 :     if (tree_expr_nan_p (captures[0]) || tree_expr_nan_p (captures[1])
   11450                 :             : )
   11451                 :             :       {
   11452                 :           0 :         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1926;
   11453                 :           0 :         {
   11454                 :           0 :           tree _r;
   11455                 :           0 :           _r =  constant_boolean_node (true, type);
   11456                 :           0 :           if (TREE_SIDE_EFFECTS (captures[0]))
   11457                 :           0 :             _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
   11458                 :           0 :           if (TREE_SIDE_EFFECTS (captures[1]))
   11459                 :           0 :             _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
   11460                 :           0 :           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1049, __FILE__, __LINE__, true);
   11461                 :           0 :           return _r;
   11462                 :             :         }
   11463                 :           0 : next_after_fail1926:;
   11464                 :             :       }
   11465                 :             :     else
   11466                 :             :       {
   11467                 :      867420 :         if (!tree_expr_maybe_nan_p (captures[0]) && !tree_expr_maybe_nan_p (captures[1])
   11468                 :             : )
   11469                 :             :           {
   11470                 :          35 :             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1927;
   11471                 :          35 :             {
   11472                 :          35 :               tree _r;
   11473                 :          35 :               _r =  constant_boolean_node (false, type);
   11474                 :          35 :               if (TREE_SIDE_EFFECTS (captures[0]))
   11475                 :           0 :                 _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
   11476                 :          35 :               if (TREE_SIDE_EFFECTS (captures[1]))
   11477                 :           0 :                 _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
   11478                 :          35 :               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1050, __FILE__, __LINE__, true);
   11479                 :          35 :               return _r;
   11480                 :             :             }
   11481                 :           0 : next_after_fail1927:;
   11482                 :             :           }
   11483                 :             :       }
   11484                 :             :   }
   11485                 :      867385 :   return NULL_TREE;
   11486                 :             : }
   11487                 :             : 
   11488                 :             : tree
   11489                 :     1799829 : generic_simplify_UNGT_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
   11490                 :             : {
   11491                 :     1799829 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
   11492                 :     1799829 :   switch (TREE_CODE (_p0))
   11493                 :             :     {
   11494                 :           0 :     case VEC_COND_EXPR:
   11495                 :           0 :       {
   11496                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
   11497                 :           0 :         tree _q21 = TREE_OPERAND (_p0, 1);
   11498                 :           0 :         tree _q22 = TREE_OPERAND (_p0, 2);
   11499                 :           0 :         switch (TREE_CODE (_p1))
   11500                 :             :           {
   11501                 :           0 :           case VEC_COND_EXPR:
   11502                 :           0 :             {
   11503                 :           0 :               tree _q60 = TREE_OPERAND (_p1, 0);
   11504                 :           0 :               tree _q61 = TREE_OPERAND (_p1, 1);
   11505                 :           0 :               tree _q62 = TREE_OPERAND (_p1, 2);
   11506                 :           0 :               if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
   11507                 :             :                 {
   11508                 :           0 :                   {
   11509                 :           0 :                     tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
   11510                 :           0 :                     if (VECTOR_TYPE_P (type)
   11511                 :           0 :  && (TREE_CODE_CLASS (UNGT_EXPR) != tcc_comparison
   11512                 :           0 :  || types_match (type, TREE_TYPE (captures[2]))
   11513                 :           0 :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
   11514                 :             :  || (optimize_vectors_before_lowering_p ()
   11515                 :           0 :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
   11516                 :             : )
   11517                 :             :                       {
   11518                 :           0 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1939;
   11519                 :           0 :                         {
   11520                 :           0 :                           tree res_op0;
   11521                 :           0 :                           res_op0 = captures[1];
   11522                 :           0 :                           tree res_op1;
   11523                 :           0 :                           {
   11524                 :           0 :                             tree _o1[2], _r1;
   11525                 :           0 :                             _o1[0] = captures[2];
   11526                 :           0 :                             _o1[1] = captures[5];
   11527                 :           0 :                             _r1 = fold_build2_loc (loc, UNGT_EXPR, type, _o1[0], _o1[1]);
   11528                 :           0 :                             if (EXPR_P (_r1))
   11529                 :           0 :                               goto next_after_fail1939;
   11530                 :           0 :                             res_op1 = _r1;
   11531                 :             :                           }
   11532                 :           0 :                           tree res_op2;
   11533                 :           0 :                           {
   11534                 :           0 :                             tree _o1[2], _r1;
   11535                 :           0 :                             _o1[0] = captures[3];
   11536                 :           0 :                             _o1[1] = captures[6];
   11537                 :           0 :                             _r1 = fold_build2_loc (loc, UNGT_EXPR, type, _o1[0], _o1[1]);
   11538                 :           0 :                             if (EXPR_P (_r1))
   11539                 :           0 :                               goto next_after_fail1939;
   11540                 :           0 :                             res_op2 = _r1;
   11541                 :             :                           }
   11542                 :           0 :                           tree _r;
   11543                 :           0 :                           _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
   11544                 :           0 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 909, __FILE__, __LINE__, true);
   11545                 :           0 :                           return _r;
   11546                 :             :                         }
   11547                 :           0 : next_after_fail1939:;
   11548                 :             :                       }
   11549                 :             :                   }
   11550                 :             :                 }
   11551                 :             :               break;
   11552                 :             :             }
   11553                 :           0 :           default:;
   11554                 :             :           }
   11555                 :           0 :         {
   11556                 :           0 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
   11557                 :           0 :           if (VECTOR_TYPE_P (type)
   11558                 :           0 :  && (TREE_CODE_CLASS (UNGT_EXPR) != tcc_comparison
   11559                 :           0 :  || types_match (type, TREE_TYPE (captures[2]))
   11560                 :           0 :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
   11561                 :             :  || (optimize_vectors_before_lowering_p ()
   11562                 :           0 :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
   11563                 :             : )
   11564                 :             :             {
   11565                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1940;
   11566                 :           0 :               {
   11567                 :           0 :                 if (! tree_invariant_p (captures[4])) goto next_after_fail1940;
   11568                 :           0 :                 tree res_op0;
   11569                 :           0 :                 res_op0 = captures[1];
   11570                 :           0 :                 tree res_op1;
   11571                 :           0 :                 {
   11572                 :           0 :                   tree _o1[2], _r1;
   11573                 :           0 :                   _o1[0] = captures[2];
   11574                 :           0 :                   _o1[1] = unshare_expr (captures[4]);
   11575                 :           0 :                   _r1 = fold_build2_loc (loc, UNGT_EXPR, type, _o1[0], _o1[1]);
   11576                 :           0 :                   if (EXPR_P (_r1))
   11577                 :           0 :                     goto next_after_fail1940;
   11578                 :           0 :                   res_op1 = _r1;
   11579                 :             :                 }
   11580                 :           0 :                 tree res_op2;
   11581                 :           0 :                 {
   11582                 :           0 :                   tree _o1[2], _r1;
   11583                 :           0 :                   _o1[0] = captures[3];
   11584                 :           0 :                   _o1[1] = captures[4];
   11585                 :           0 :                   _r1 = fold_build2_loc (loc, UNGT_EXPR, type, _o1[0], _o1[1]);
   11586                 :           0 :                   if (EXPR_P (_r1))
   11587                 :           0 :                     goto next_after_fail1940;
   11588                 :           0 :                   res_op2 = _r1;
   11589                 :             :                 }
   11590                 :           0 :                 tree _r;
   11591                 :           0 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
   11592                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 910, __FILE__, __LINE__, true);
   11593                 :           0 :                 return _r;
   11594                 :             :               }
   11595                 :           0 : next_after_fail1940:;
   11596                 :             :             }
   11597                 :             :         }
   11598                 :           0 :         break;
   11599                 :             :       }
   11600                 :     1799829 :     default:;
   11601                 :             :     }
   11602                 :     1799829 :   switch (TREE_CODE (_p1))
   11603                 :             :     {
   11604                 :           0 :     case VEC_COND_EXPR:
   11605                 :           0 :       {
   11606                 :           0 :         tree _q30 = TREE_OPERAND (_p1, 0);
   11607                 :           0 :         tree _q31 = TREE_OPERAND (_p1, 1);
   11608                 :           0 :         tree _q32 = TREE_OPERAND (_p1, 2);
   11609                 :           0 :         {
   11610                 :           0 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
   11611                 :           0 :           if (VECTOR_TYPE_P (type)
   11612                 :           0 :  && (TREE_CODE_CLASS (UNGT_EXPR) != tcc_comparison
   11613                 :           0 :  || types_match (type, TREE_TYPE (captures[3]))
   11614                 :           0 :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
   11615                 :             :  || (optimize_vectors_before_lowering_p ()
   11616                 :           0 :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
   11617                 :             : )
   11618                 :             :             {
   11619                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1941;
   11620                 :           0 :               {
   11621                 :           0 :                 if (! tree_invariant_p (captures[0])) goto next_after_fail1941;
   11622                 :           0 :                 tree res_op0;
   11623                 :           0 :                 res_op0 = captures[2];
   11624                 :           0 :                 tree res_op1;
   11625                 :           0 :                 {
   11626                 :           0 :                   tree _o1[2], _r1;
   11627                 :           0 :                   _o1[0] = unshare_expr (captures[0]);
   11628                 :           0 :                   _o1[1] = captures[3];
   11629                 :           0 :                   _r1 = fold_build2_loc (loc, UNGT_EXPR, type, _o1[0], _o1[1]);
   11630                 :           0 :                   if (EXPR_P (_r1))
   11631                 :           0 :                     goto next_after_fail1941;
   11632                 :           0 :                   res_op1 = _r1;
   11633                 :             :                 }
   11634                 :           0 :                 tree res_op2;
   11635                 :           0 :                 {
   11636                 :           0 :                   tree _o1[2], _r1;
   11637                 :           0 :                   _o1[0] = captures[0];
   11638                 :           0 :                   _o1[1] = captures[4];
   11639                 :           0 :                   _r1 = fold_build2_loc (loc, UNGT_EXPR, type, _o1[0], _o1[1]);
   11640                 :           0 :                   if (EXPR_P (_r1))
   11641                 :           0 :                     goto next_after_fail1941;
   11642                 :           0 :                   res_op2 = _r1;
   11643                 :             :                 }
   11644                 :           0 :                 tree _r;
   11645                 :           0 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
   11646                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 911, __FILE__, __LINE__, true);
   11647                 :           0 :                 return _r;
   11648                 :             :               }
   11649                 :           0 : next_after_fail1941:;
   11650                 :             :             }
   11651                 :             :         }
   11652                 :           0 :         break;
   11653                 :             :       }
   11654                 :     1799829 :     default:;
   11655                 :             :     }
   11656                 :     1799829 :   if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
   11657                 :             :     {
   11658                 :           0 :       {
   11659                 :           0 :         tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
   11660                 :           0 :         tree res = generic_simplify_539 (loc, type, _p0, _p1, captures, UNGT_EXPR);
   11661                 :           0 :         if (res) return res;
   11662                 :             :       }
   11663                 :             :     }
   11664                 :     1799829 :   switch (TREE_CODE (_p0))
   11665                 :             :     {
   11666                 :         338 :     case FLOAT_EXPR:
   11667                 :         338 :       {
   11668                 :         338 :         tree _q20 = TREE_OPERAND (_p0, 0);
   11669                 :         338 :         switch (TREE_CODE (_p1))
   11670                 :             :           {
   11671                 :           0 :           case FLOAT_EXPR:
   11672                 :           0 :             {
   11673                 :           0 :               tree _q40 = TREE_OPERAND (_p1, 0);
   11674                 :           0 :               {
   11675                 :           0 :                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
   11676                 :           0 :                 tree res = generic_simplify_254 (loc, type, _p0, _p1, captures, UNGT_EXPR, GT_EXPR);
   11677                 :           0 :                 if (res) return res;
   11678                 :             :               }
   11679                 :           0 :               break;
   11680                 :             :             }
   11681                 :             :           default:;
   11682                 :             :           }
   11683                 :             :         break;
   11684                 :             :       }
   11685                 :           0 :     case NEGATE_EXPR:
   11686                 :           0 :       {
   11687                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
   11688                 :           0 :         switch (TREE_CODE (_p1))
   11689                 :             :           {
   11690                 :           0 :           case NEGATE_EXPR:
   11691                 :           0 :             {
   11692                 :           0 :               tree _q40 = TREE_OPERAND (_p1, 0);
   11693                 :           0 :               {
   11694                 :           0 :                 tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
   11695                 :           0 :                 tree res = generic_simplify_257 (loc, type, _p0, _p1, captures, UNGT_EXPR, UNLT_EXPR);
   11696                 :           0 :                 if (res) return res;
   11697                 :             :               }
   11698                 :           0 :               break;
   11699                 :             :             }
   11700                 :           0 :           default:;
   11701                 :             :           }
   11702                 :           0 :       if (CONSTANT_CLASS_P (_p1))
   11703                 :             :         {
   11704                 :           0 :           {
   11705                 :           0 :             tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
   11706                 :           0 :             tree res = generic_simplify_258 (loc, type, _p0, _p1, captures, UNGT_EXPR, UNLT_EXPR);
   11707                 :           0 :             if (res) return res;
   11708                 :             :           }
   11709                 :             :         }
   11710                 :             :         break;
   11711                 :             :       }
   11712                 :     1799829 :     default:;
   11713                 :             :     }
   11714                 :     1799829 :   switch (TREE_CODE (_p1))
   11715                 :             :     {
   11716                 :     1384852 :     case REAL_CST:
   11717                 :     1384852 :       {
   11718                 :     1384852 :         {
   11719                 :     1384852 :           tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
   11720                 :     1384852 :           tree res = generic_simplify_538 (loc, type, _p0, _p1, captures, UNGT_EXPR);
   11721                 :     1384852 :           if (res) return res;
   11722                 :             :         }
   11723                 :     1384850 :         break;
   11724                 :             :       }
   11725                 :             :     default:;
   11726                 :             :     }
   11727                 :             :   return NULL_TREE;
   11728                 :             : }
   11729                 :             : 
   11730                 :             : tree
   11731                 :   554411602 : generic_simplify (location_t loc, enum tree_code code, const tree type ATTRIBUTE_UNUSED, tree _p0, tree _p1)
   11732                 :             : {
   11733                 :   554411602 :   switch (code)
   11734                 :             :     {
   11735                 :    94190970 :     case PLUS_EXPR:
   11736                 :    94190970 :       return generic_simplify_PLUS_EXPR (loc, code, type, _p0, _p1);
   11737                 :    36164555 :     case POINTER_PLUS_EXPR:
   11738                 :    36164555 :       return generic_simplify_POINTER_PLUS_EXPR (loc, code, type, _p0, _p1);
   11739                 :    31705797 :     case MINUS_EXPR:
   11740                 :    31705797 :       return generic_simplify_MINUS_EXPR (loc, code, type, _p0, _p1);
   11741                 :     1809461 :     case BIT_IOR_EXPR:
   11742                 :     1809461 :       return generic_simplify_BIT_IOR_EXPR (loc, code, type, _p0, _p1);
   11743                 :      702390 :     case BIT_XOR_EXPR:
   11744                 :      702390 :       return generic_simplify_BIT_XOR_EXPR (loc, code, type, _p0, _p1);
   11745                 :     2757607 :     case POINTER_DIFF_EXPR:
   11746                 :     2757607 :       return generic_simplify_POINTER_DIFF_EXPR (loc, code, type, _p0, _p1);
   11747                 :    69045178 :     case MULT_EXPR:
   11748                 :    69045178 :       return generic_simplify_MULT_EXPR (loc, code, type, _p0, _p1);
   11749                 :    25596576 :     case EQ_EXPR:
   11750                 :    25596576 :       return generic_simplify_EQ_EXPR (loc, code, type, _p0, _p1);
   11751                 :    33541942 :     case NE_EXPR:
   11752                 :    33541942 :       return generic_simplify_NE_EXPR (loc, code, type, _p0, _p1);
   11753                 :     2161455 :     case TRUNC_DIV_EXPR:
   11754                 :     2161455 :       return generic_simplify_TRUNC_DIV_EXPR (loc, code, type, _p0, _p1);
   11755                 :        7044 :     case CEIL_DIV_EXPR:
   11756                 :        7044 :       return generic_simplify_CEIL_DIV_EXPR (loc, code, type, _p0, _p1);
   11757                 :     2225633 :     case FLOOR_DIV_EXPR:
   11758                 :     2225633 :       return generic_simplify_FLOOR_DIV_EXPR (loc, code, type, _p0, _p1);
   11759                 :           0 :     case ROUND_DIV_EXPR:
   11760                 :           0 :       return generic_simplify_ROUND_DIV_EXPR (loc, code, type, _p0, _p1);
   11761                 :     3453425 :     case EXACT_DIV_EXPR:
   11762                 :     3453425 :       return generic_simplify_EXACT_DIV_EXPR (loc, code, type, _p0, _p1);
   11763                 :      903564 :     case FLOOR_MOD_EXPR:
   11764                 :      903564 :       return generic_simplify_FLOOR_MOD_EXPR (loc, code, type, _p0, _p1);
   11765                 :     6694345 :     case RDIV_EXPR:
   11766                 :     6694345 :       return generic_simplify_RDIV_EXPR (loc, code, type, _p0, _p1);
   11767                 :    16580000 :     case LT_EXPR:
   11768                 :    16580000 :       return generic_simplify_LT_EXPR (loc, code, type, _p0, _p1);
   11769                 :     8712436 :     case LE_EXPR:
   11770                 :     8712436 :       return generic_simplify_LE_EXPR (loc, code, type, _p0, _p1);
   11771                 :    19172118 :     case GT_EXPR:
   11772                 :    19172118 :       return generic_simplify_GT_EXPR (loc, code, type, _p0, _p1);
   11773                 :     6192811 :     case GE_EXPR:
   11774                 :     6192811 :       return generic_simplify_GE_EXPR (loc, code, type, _p0, _p1);
   11775                 :        4140 :     case CEIL_MOD_EXPR:
   11776                 :        4140 :       return generic_simplify_CEIL_MOD_EXPR (loc, code, type, _p0, _p1);
   11777                 :           0 :     case ROUND_MOD_EXPR:
   11778                 :           0 :       return generic_simplify_ROUND_MOD_EXPR (loc, code, type, _p0, _p1);
   11779                 :     1816042 :     case TRUNC_MOD_EXPR:
   11780                 :     1816042 :       return generic_simplify_TRUNC_MOD_EXPR (loc, code, type, _p0, _p1);
   11781                 :     1201685 :     case LSHIFT_EXPR:
   11782                 :     1201685 :       return generic_simplify_LSHIFT_EXPR (loc, code, type, _p0, _p1);
   11783                 :      896449 :     case RSHIFT_EXPR:
   11784                 :      896449 :       return generic_simplify_RSHIFT_EXPR (loc, code, type, _p0, _p1);
   11785                 :     6616811 :     case BIT_AND_EXPR:
   11786                 :     6616811 :       return generic_simplify_BIT_AND_EXPR (loc, code, type, _p0, _p1);
   11787                 :       84791 :     case MIN_EXPR:
   11788                 :       84791 :       return generic_simplify_MIN_EXPR (loc, code, type, _p0, _p1);
   11789                 :      360396 :     case MAX_EXPR:
   11790                 :      360396 :       return generic_simplify_MAX_EXPR (loc, code, type, _p0, _p1);
   11791                 :        1825 :     case LROTATE_EXPR:
   11792                 :        1825 :       return generic_simplify_LROTATE_EXPR (loc, code, type, _p0, _p1);
   11793                 :        2679 :     case RROTATE_EXPR:
   11794                 :        2679 :       return generic_simplify_RROTATE_EXPR (loc, code, type, _p0, _p1);
   11795                 :      843819 :     case COMPLEX_EXPR:
   11796                 :      843819 :       return generic_simplify_COMPLEX_EXPR (loc, code, type, _p0, _p1);
   11797                 :      867438 :     case UNORDERED_EXPR:
   11798                 :      867438 :       return generic_simplify_UNORDERED_EXPR (loc, code, type, _p0, _p1);
   11799                 :      222099 :     case ORDERED_EXPR:
   11800                 :      222099 :       return generic_simplify_ORDERED_EXPR (loc, code, type, _p0, _p1);
   11801                 :      832861 :     case UNLT_EXPR:
   11802                 :      832861 :       return generic_simplify_UNLT_EXPR (loc, code, type, _p0, _p1);
   11803                 :      988942 :     case UNLE_EXPR:
   11804                 :      988942 :       return generic_simplify_UNLE_EXPR (loc, code, type, _p0, _p1);
   11805                 :     1799829 :     case UNGT_EXPR:
   11806                 :     1799829 :       return generic_simplify_UNGT_EXPR (loc, code, type, _p0, _p1);
   11807                 :      472476 :     case UNGE_EXPR:
   11808                 :      472476 :       return generic_simplify_UNGE_EXPR (loc, code, type, _p0, _p1);
   11809                 :      414873 :     case UNEQ_EXPR:
   11810                 :      414873 :       return generic_simplify_UNEQ_EXPR (loc, code, type, _p0, _p1);
   11811                 :          85 :     case LTGT_EXPR:
   11812                 :          85 :       return generic_simplify_LTGT_EXPR (loc, code, type, _p0, _p1);
   11813                 :     3125911 :     case TRUTH_ORIF_EXPR:
   11814                 :     3125911 :       return generic_simplify_TRUTH_ORIF_EXPR (loc, code, type, _p0, _p1);
   11815                 :     9767711 :     case TRUTH_OR_EXPR:
   11816                 :     9767711 :       return generic_simplify_TRUTH_OR_EXPR (loc, code, type, _p0, _p1);
   11817                 :             :     default:;
   11818                 :             :     }
   11819                 :             :   return NULL_TREE;
   11820                 :             : }
   11821                 :             : 
   11822                 :             : tree
   11823                 :      631046 : generic_simplify_BIT_FIELD_REF (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1, tree _p2)
   11824                 :             : {
   11825                 :      631046 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
   11826                 :      631046 :   switch (TREE_CODE (_p0))
   11827                 :             :     {
   11828                 :           0 :     case BIT_FIELD_REF:
   11829                 :           0 :       {
   11830                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
   11831                 :           0 :         tree _q21 = TREE_OPERAND (_p0, 1);
   11832                 :           0 :         tree _q22 = TREE_OPERAND (_p0, 2);
   11833                 :           0 :         {
   11834                 :           0 :           tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _p1, _p2 };
   11835                 :           0 :           if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail2114;
   11836                 :           0 :           if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail2114;
   11837                 :           0 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2114;
   11838                 :           0 :           {
   11839                 :           0 :             tree res_op0;
   11840                 :           0 :             res_op0 = captures[0];
   11841                 :           0 :             tree res_op1;
   11842                 :           0 :             res_op1 = captures[3];
   11843                 :           0 :             tree res_op2;
   11844                 :           0 :             res_op2 =  const_binop (PLUS_EXPR, bitsizetype, captures[2], captures[4]);
   11845                 :           0 :             tree _r;
   11846                 :           0 :             _r = fold_build3_loc (loc, BIT_FIELD_REF, type, res_op0, res_op1, res_op2);
   11847                 :           0 :             if (TREE_SIDE_EFFECTS (captures[1]))
   11848                 :           0 :               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
   11849                 :           0 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1093, __FILE__, __LINE__, true);
   11850                 :           0 :             return _r;
   11851                 :             :           }
   11852                 :           0 : next_after_fail2114:;
   11853                 :             :         }
   11854                 :           0 :         break;
   11855                 :             :       }
   11856                 :           4 :     case VIEW_CONVERT_EXPR:
   11857                 :           4 :       {
   11858                 :           4 :         tree _q20 = TREE_OPERAND (_p0, 0);
   11859                 :           4 :         {
   11860                 :           4 :           tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p1, _p2 };
   11861                 :           8 :           if (! INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
   11862                 :           8 :  || type_has_mode_precision_p (TREE_TYPE (captures[0]))
   11863                 :             : )
   11864                 :             :             {
   11865                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2115;
   11866                 :           0 :               {
   11867                 :           0 :                 tree res_op0;
   11868                 :           0 :                 res_op0 = captures[0];
   11869                 :           0 :                 tree res_op1;
   11870                 :           0 :                 res_op1 = captures[1];
   11871                 :           0 :                 tree res_op2;
   11872                 :           0 :                 res_op2 = captures[2];
   11873                 :           0 :                 tree _r;
   11874                 :           0 :                 _r = fold_build3_loc (loc, BIT_FIELD_REF, type, res_op0, res_op1, res_op2);
   11875                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1094, __FILE__, __LINE__, true);
   11876                 :           0 :                 return _r;
   11877                 :             :               }
   11878                 :           0 : next_after_fail2115:;
   11879                 :             :             }
   11880                 :             :         }
   11881                 :           4 :         break;
   11882                 :             :       }
   11883                 :      631046 :     default:;
   11884                 :             :     }
   11885                 :      631046 :   if (integer_zerop (_p2))
   11886                 :             :     {
   11887                 :      202732 :       {
   11888                 :      202732 :         tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
   11889                 :      202732 :         if (tree_int_cst_equal (captures[1], TYPE_SIZE (TREE_TYPE (captures[0])))
   11890                 :             : )
   11891                 :             :           {
   11892                 :        2386 :             if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail2116;
   11893                 :        2386 :             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2116;
   11894                 :        2386 :             {
   11895                 :        2386 :               tree res_op0;
   11896                 :        2386 :               res_op0 = captures[0];
   11897                 :        2386 :               tree _r;
   11898                 :        2386 :               _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
   11899                 :        2386 :               if (TREE_SIDE_EFFECTS (captures[1]))
   11900                 :           0 :                 _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
   11901                 :        2386 :               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1095, __FILE__, __LINE__, true);
   11902                 :        2386 :               return _r;
   11903                 :             :             }
   11904                 :      200346 : next_after_fail2116:;
   11905                 :             :           }
   11906                 :             :       }
   11907                 :             :     }
   11908                 :      628660 :   {
   11909                 :      628660 :     tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _p2 };
   11910                 :      628660 :     if (TREE_CODE (TREE_TYPE (captures[0])) == COMPLEX_TYPE
   11911                 :      628660 :  && tree_int_cst_equal (captures[1], TYPE_SIZE (TREE_TYPE (TREE_TYPE (captures[0]))))
   11912                 :             : )
   11913                 :             :       {
   11914                 :           2 :         if (integer_zerop (captures[2])
   11915                 :             : )
   11916                 :             :           {
   11917                 :           0 :             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2117;
   11918                 :           0 :             {
   11919                 :           0 :               tree res_op0;
   11920                 :           0 :               {
   11921                 :           0 :                 tree _o1[1], _r1;
   11922                 :           0 :                 _o1[0] = captures[0];
   11923                 :           0 :                 _r1 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o1[0])), _o1[0]);
   11924                 :           0 :                 res_op0 = _r1;
   11925                 :             :               }
   11926                 :           0 :               tree _r;
   11927                 :           0 :               _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
   11928                 :           0 :               if (TREE_SIDE_EFFECTS (captures[1]))
   11929                 :           0 :                 _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
   11930                 :           0 :               if (TREE_SIDE_EFFECTS (captures[2]))
   11931                 :           0 :                 _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
   11932                 :           0 :               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1096, __FILE__, __LINE__, true);
   11933                 :           0 :               return _r;
   11934                 :             :             }
   11935                 :           0 : next_after_fail2117:;
   11936                 :             :           }
   11937                 :             :         else
   11938                 :             :           {
   11939                 :           2 :             if (tree_int_cst_equal (captures[2], TYPE_SIZE (TREE_TYPE (TREE_TYPE (captures[0]))))
   11940                 :             : )
   11941                 :             :               {
   11942                 :           0 :                 if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2118;
   11943                 :           0 :                 {
   11944                 :           0 :                   tree res_op0;
   11945                 :           0 :                   {
   11946                 :           0 :                     tree _o1[1], _r1;
   11947                 :           0 :                     _o1[0] = captures[0];
   11948                 :           0 :                     _r1 = fold_build1_loc (loc, IMAGPART_EXPR, TREE_TYPE (TREE_TYPE (_o1[0])), _o1[0]);
   11949                 :           0 :                     res_op0 = _r1;
   11950                 :             :                   }
   11951                 :           0 :                   tree _r;
   11952                 :           0 :                   _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
   11953                 :           0 :                   if (TREE_SIDE_EFFECTS (captures[1]))
   11954                 :           0 :                     _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
   11955                 :           0 :                   if (TREE_SIDE_EFFECTS (captures[2]))
   11956                 :           0 :                     _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
   11957                 :           0 :                   if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1097, __FILE__, __LINE__, true);
   11958                 :           0 :                   return _r;
   11959                 :             :                 }
   11960                 :           0 : next_after_fail2118:;
   11961                 :             :               }
   11962                 :             :           }
   11963                 :             :       }
   11964                 :             :     else
   11965                 :             :       {
   11966                 :     1257254 :         if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
   11967                 :       20435 :  && INTEGRAL_TYPE_P (type)
   11968                 :             :  && (!
   11969                 :             : 
   11970                 :             :  || is_gimple_reg (captures[0]))
   11971                 :      648143 :  && ((compare_tree_int (captures[1], TYPE_PRECISION (TREE_TYPE (captures[0]))) == 0
   11972                 :           0 :  && integer_zerop (captures[2]))
   11973                 :             :  || (BYTES_BIG_ENDIAN == WORDS_BIG_ENDIAN
   11974                 :             :  && canonicalize_math_after_vectorization_p ()
   11975                 :             :  && TYPE_PRECISION (TREE_TYPE (captures[0])) % BITS_PER_UNIT == 0
   11976                 :             :  && TYPE_PRECISION (type) % BITS_PER_UNIT == 0
   11977                 :             :  && compare_tree_int (captures[2], (BYTES_BIG_ENDIAN
   11978                 :             :  ? (TYPE_PRECISION (TREE_TYPE (captures[0]))
   11979                 :             :  - TYPE_PRECISION (type))
   11980                 :             :  : 0)) == 0))
   11981                 :             : )
   11982                 :             :           {
   11983                 :           0 :             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2119;
   11984                 :           0 :             {
   11985                 :           0 :               tree res_op0;
   11986                 :           0 :               res_op0 = captures[0];
   11987                 :           0 :               tree _r;
   11988                 :           0 :               _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
   11989                 :           0 :               if (TREE_SIDE_EFFECTS (captures[1]))
   11990                 :           0 :                 _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
   11991                 :           0 :               if (TREE_SIDE_EFFECTS (captures[2]))
   11992                 :           0 :                 _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
   11993                 :           0 :               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1098, __FILE__, __LINE__, true);
   11994                 :           0 :               return _r;
   11995                 :             :             }
   11996                 :           0 : next_after_fail2119:;
   11997                 :             :           }
   11998                 :             :       }
   11999                 :             :   }
   12000                 :      628660 :   switch (TREE_CODE (_p0))
   12001                 :             :     {
   12002                 :         907 :     case CONSTRUCTOR:
   12003                 :         907 :       {
   12004                 :         907 :         {
   12005                 :         907 :           tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _p2 };
   12006                 :         907 :           if (VECTOR_TYPE_P (TREE_TYPE (captures[0]))
   12007                 :         907 :  && tree_fits_uhwi_p (TYPE_SIZE (type))
   12008                 :        1814 :  && ((tree_to_uhwi (TYPE_SIZE (type))
   12009                 :         907 :  == tree_to_uhwi (TYPE_SIZE (TREE_TYPE (TREE_TYPE (captures[0])))))
   12010                 :           0 :  || (VECTOR_TYPE_P (type)
   12011                 :           0 :  && (tree_to_uhwi (TYPE_SIZE (TREE_TYPE (type)))
   12012                 :           0 :  == tree_to_uhwi (TYPE_SIZE (TREE_TYPE (TREE_TYPE (captures[0])))))))
   12013                 :             : )
   12014                 :             :             {
   12015                 :         907 :               {
   12016                 :         907 :  tree ctor = (TREE_CODE (captures[0]) == SSA_NAME
   12017                 :             :  ? gimple_assign_rhs1 (SSA_NAME_DEF_STMT (captures[0])) : captures[0]);
   12018                 :         907 :  tree eltype = TREE_TYPE (TREE_TYPE (ctor));
   12019                 :         907 :  unsigned HOST_WIDE_INT width = tree_to_uhwi (TYPE_SIZE (eltype));
   12020                 :         907 :  unsigned HOST_WIDE_INT n = tree_to_uhwi (captures[1]);
   12021                 :         907 :  unsigned HOST_WIDE_INT idx = tree_to_uhwi (captures[2]);
   12022                 :         907 :                   if (n != 0
   12023                 :         907 :  && (idx % width) == 0
   12024                 :         907 :  && (n % width) == 0
   12025                 :        1814 :  && known_le ((idx + n) / width,
   12026                 :             :  TYPE_VECTOR_SUBPARTS (TREE_TYPE (ctor)))
   12027                 :             : )
   12028                 :             :                     {
   12029                 :         907 :                       {
   12030                 :         907 :  idx = idx / width;
   12031                 :         907 :  n = n / width;
   12032                 :         907 :  poly_uint64 k = 1;
   12033                 :         907 :  if (CONSTRUCTOR_NELTS (ctor) != 0)
   12034                 :             :  {
   12035                 :         907 :  tree cons_elem = TREE_TYPE (CONSTRUCTOR_ELT (ctor, 0)->value);
   12036                 :         907 :  if (TREE_CODE (cons_elem) == VECTOR_TYPE)
   12037                 :         907 :  k = TYPE_VECTOR_SUBPARTS (cons_elem);
   12038                 :             :  }
   12039                 :         907 :  unsigned HOST_WIDE_INT elt, count, const_k;
   12040                 :         907 :                           if (multiple_p (idx, k, &elt) && multiple_p (n, k, &count)
   12041                 :             : )
   12042                 :             :                             {
   12043                 :           6 :                               if (CONSTRUCTOR_NELTS (ctor) == 0
   12044                 :             : )
   12045                 :             :                                 {
   12046                 :           0 :                                   if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail2120;
   12047                 :           0 :                                   if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail2120;
   12048                 :           0 :                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail2120;
   12049                 :           0 :                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2120;
   12050                 :           0 :                                   {
   12051                 :           0 :                                     tree _r;
   12052                 :           0 :                                     _r =  build_zero_cst (type);
   12053                 :           0 :                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1099, __FILE__, __LINE__, true);
   12054                 :         907 :                                     return _r;
   12055                 :             :                                   }
   12056                 :             : next_after_fail2120:;
   12057                 :             :                                 }
   12058                 :             :                               else
   12059                 :             :                                 {
   12060                 :           6 :                                   if (count == 1
   12061                 :             : )
   12062                 :             :                                     {
   12063                 :           6 :                                       if (elt < CONSTRUCTOR_NELTS (ctor)
   12064                 :             : )
   12065                 :             :                                         {
   12066                 :           6 :                                           if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail2121;
   12067                 :           6 :                                           if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail2121;
   12068                 :           6 :                                           if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail2121;
   12069                 :           6 :                                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2121;
   12070                 :           6 :                                           {
   12071                 :           6 :                                             tree res_op0;
   12072                 :           6 :                                             res_op0 =  CONSTRUCTOR_ELT (ctor, elt)->value;
   12073                 :           6 :                                             tree _r;
   12074                 :           6 :                                             _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
   12075                 :           6 :                                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1100, __FILE__, __LINE__, true);
   12076                 :           6 :                                             return _r;
   12077                 :             :                                           }
   12078                 :             : next_after_fail2121:;
   12079                 :             :                                         }
   12080                 :             :                                       else
   12081                 :             :                                         {
   12082                 :           0 :                                           if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail2122;
   12083                 :           0 :                                           if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail2122;
   12084                 :           0 :                                           if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail2122;
   12085                 :           0 :                                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2122;
   12086                 :           0 :                                           {
   12087                 :           0 :                                             tree _r;
   12088                 :           0 :                                             _r =  build_zero_cst (type);
   12089                 :           0 :                                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1101, __FILE__, __LINE__, true);
   12090                 :           0 :                                             return _r;
   12091                 :             :                                           }
   12092                 :             : next_after_fail2122:;
   12093                 :             :                                         }
   12094                 :             :                                     }
   12095                 :             :                                   else
   12096                 :             :                                     {
   12097                 :           0 :                                       if (single_use (captures[0])
   12098                 :             : )
   12099                 :             :                                         {
   12100                 :           0 :                                           {
   12101                 :           0 :  vec<constructor_elt, va_gc> *vals;
   12102                 :           0 :  vec_alloc (vals, count);
   12103                 :           0 :  bool constant_p = true;
   12104                 :           0 :  tree res;
   12105                 :           0 :  for (unsigned i = 0;
   12106                 :           0 :  i < count && elt + i < CONSTRUCTOR_NELTS (ctor); ++i)
   12107                 :             :  {
   12108                 :           0 :  tree e = CONSTRUCTOR_ELT (ctor, elt + i)->value;
   12109                 :           0 :  CONSTRUCTOR_APPEND_ELT (vals, NULL_TREE, e);
   12110                 :           0 :  if (!CONSTANT_CLASS_P (e))
   12111                 :           0 :  constant_p = false;
   12112                 :             :  }
   12113                 :           0 :  tree evtype = (types_match (TREE_TYPE (type),
   12114                 :           0 :  TREE_TYPE (TREE_TYPE (ctor)))
   12115                 :           0 :  ? type
   12116                 :           0 :  : build_vector_type (TREE_TYPE (TREE_TYPE (ctor)),
   12117                 :           0 :  count * k));
   12118                 :           0 :  res = (constant_p ? build_vector_from_ctor (evtype, vals)
   12119                 :             :  : (
   12120                 :             : 
   12121                 :           0 :  ? NULL_TREE : build_constructor (evtype, vals)));
   12122                 :           0 :                                               if (res
   12123                 :             : )
   12124                 :             :                                                 {
   12125                 :           0 :                                                   if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail2123;
   12126                 :           0 :                                                   if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail2123;
   12127                 :           0 :                                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail2123;
   12128                 :           0 :                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2123;
   12129                 :           0 :                                                   {
   12130                 :           0 :                                                     tree res_op0;
   12131                 :           0 :                                                     res_op0 =  res;
   12132                 :           0 :                                                     tree _r;
   12133                 :           0 :                                                     _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
   12134                 :           0 :                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1102, __FILE__, __LINE__, true);
   12135                 :           0 :                                                     return _r;
   12136                 :             :                                                   }
   12137                 :           0 : next_after_fail2123:;
   12138                 :             :                                                 }
   12139                 :             :                                           }
   12140                 :             :                                         }
   12141                 :             :                                     }
   12142                 :             :                                 }
   12143                 :             :                             }
   12144                 :             :                           else
   12145                 :             :                             {
   12146                 :         901 :                               if (k.is_constant (&const_k)
   12147                 :         901 :  && idx + n <= (idx / const_k + 1) * const_k
   12148                 :             : )
   12149                 :             :                                 {
   12150                 :         901 :                                   if (CONSTRUCTOR_NELTS (ctor) <= idx / const_k
   12151                 :             : )
   12152                 :             :                                     {
   12153                 :           0 :                                       if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail2124;
   12154                 :           0 :                                       if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail2124;
   12155                 :           0 :                                       if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail2124;
   12156                 :           0 :                                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2124;
   12157                 :           0 :                                       {
   12158                 :           0 :                                         tree _r;
   12159                 :           0 :                                         _r =  build_zero_cst (type);
   12160                 :           0 :                                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1103, __FILE__, __LINE__, true);
   12161                 :           0 :                                         return _r;
   12162                 :             :                                       }
   12163                 :             : next_after_fail2124:;
   12164                 :             :                                     }
   12165                 :             :                                   else
   12166                 :             :                                     {
   12167                 :         901 :                                       if (n == const_k
   12168                 :             : )
   12169                 :             :                                         {
   12170                 :           0 :                                           if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail2125;
   12171                 :           0 :                                           if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail2125;
   12172                 :           0 :                                           if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail2125;
   12173                 :           0 :                                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2125;
   12174                 :           0 :                                           {
   12175                 :           0 :                                             tree res_op0;
   12176                 :           0 :                                             res_op0 =  CONSTRUCTOR_ELT (ctor, idx / const_k)->value;
   12177                 :           0 :                                             tree _r;
   12178                 :           0 :                                             _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
   12179                 :           0 :                                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1104, __FILE__, __LINE__, true);
   12180                 :           0 :                                             return _r;
   12181                 :             :                                           }
   12182                 :             : next_after_fail2125:;
   12183                 :             :                                         }
   12184                 :             :                                       else
   12185                 :             :                                         {
   12186                 :         901 :                                           if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail2126;
   12187                 :         901 :                                           if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail2126;
   12188                 :         901 :                                           if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail2126;
   12189                 :         901 :                                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2126;
   12190                 :         901 :                                           {
   12191                 :         901 :                                             tree res_op0;
   12192                 :         901 :                                             res_op0 =  CONSTRUCTOR_ELT (ctor, idx / const_k)->value;
   12193                 :         901 :                                             tree res_op1;
   12194                 :         901 :                                             res_op1 = captures[1];
   12195                 :         901 :                                             tree res_op2;
   12196                 :         901 :                                             res_op2 =  bitsize_int ((idx % const_k) * width);
   12197                 :         901 :                                             tree _r;
   12198                 :         901 :                                             _r = fold_build3_loc (loc, BIT_FIELD_REF, type, res_op0, res_op1, res_op2);
   12199                 :         901 :                                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1105, __FILE__, __LINE__, true);
   12200                 :         901 :                                             return _r;
   12201                 :             :                                           }
   12202                 :             : next_after_fail2126:;
   12203                 :             :                                         }
   12204                 :             :                                     }
   12205                 :             :                                 }
   12206                 :             :                             }
   12207                 :             :                       }
   12208                 :             :                     }
   12209                 :             :               }
   12210                 :             :             }
   12211                 :             :         }
   12212                 :           0 :         break;
   12213                 :             :       }
   12214                 :           0 :     case VEC_PERM_EXPR:
   12215                 :           0 :       {
   12216                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
   12217                 :           0 :         tree _q21 = TREE_OPERAND (_p0, 1);
   12218                 :           0 :         tree _q22 = TREE_OPERAND (_p0, 2);
   12219                 :           0 :         switch (TREE_CODE (_q22))
   12220                 :             :           {
   12221                 :           0 :           case VECTOR_CST:
   12222                 :           0 :             {
   12223                 :           0 :               {
   12224                 :           0 :                 tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _p2 };
   12225                 :           0 :                 {
   12226                 :           0 :  tree elem_type = TREE_TYPE (TREE_TYPE (captures[0]));
   12227                 :           0 :  poly_uint64 elem_size = tree_to_poly_uint64 (TYPE_SIZE (elem_type));
   12228                 :           0 :  poly_uint64 size = tree_to_poly_uint64 (TYPE_SIZE (type));
   12229                 :           0 :  unsigned HOST_WIDE_INT nelts, idx;
   12230                 :           0 :  unsigned HOST_WIDE_INT nelts_op = 0;
   12231                 :           0 :                     if (constant_multiple_p (tree_to_poly_uint64 (captures[5]), elem_size, &idx)
   12232                 :           0 :  && VECTOR_CST_NELTS (captures[3]).is_constant (&nelts)
   12233                 :           0 :  && (known_eq (size, elem_size)
   12234                 :           0 :  || (constant_multiple_p (size, elem_size, &nelts_op)
   12235                 :           0 :  && pow2p_hwi (nelts_op)))
   12236                 :             : )
   12237                 :             :                       {
   12238                 :           0 :                         {
   12239                 :           0 :  bool ok = true;
   12240                 :           0 :  if (known_eq (size, elem_size))
   12241                 :           0 :  idx = TREE_INT_CST_LOW (VECTOR_CST_ELT (captures[3], idx)) % (2 * nelts);
   12242                 :             :  else
   12243                 :             :  {
   12244                 :           0 :  unsigned start
   12245                 :           0 :  = TREE_INT_CST_LOW (vector_cst_elt (captures[3], idx)) % (2 * nelts);
   12246                 :           0 :  unsigned end
   12247                 :           0 :  = (TREE_INT_CST_LOW (vector_cst_elt (captures[3], idx + nelts_op - 1))
   12248                 :           0 :  % (2 * nelts));
   12249                 :           0 :  if ((start < nelts) != (end < nelts))
   12250                 :             :  ok = false;
   12251                 :             :  else
   12252                 :           0 :  for (unsigned HOST_WIDE_INT i = 1; i != nelts_op; i++)
   12253                 :             :  {
   12254                 :           0 :  if ((TREE_INT_CST_LOW (vector_cst_elt (captures[3], idx + i))
   12255                 :           0 :  % (2 * nelts) - 1)
   12256                 :           0 :  != (TREE_INT_CST_LOW (vector_cst_elt (captures[3], idx + i - 1))
   12257                 :           0 :  % (2 * nelts)))
   12258                 :             :  {
   12259                 :             :  ok = false;
   12260                 :             :  break;
   12261                 :             :  }
   12262                 :             :  }
   12263                 :           0 :  if (start % nelts_op)
   12264                 :             :  ok = false;
   12265                 :           0 :  idx = start;
   12266                 :             :  }
   12267                 :           0 :                             if (ok
   12268                 :             : )
   12269                 :             :                               {
   12270                 :           0 :                                 if (idx < nelts
   12271                 :             : )
   12272                 :             :                                   {
   12273                 :           0 :                                     if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail2127;
   12274                 :           0 :                                     if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2127;
   12275                 :           0 :                                     {
   12276                 :           0 :                                       tree res_op0;
   12277                 :           0 :                                       res_op0 = captures[1];
   12278                 :           0 :                                       tree res_op1;
   12279                 :           0 :                                       res_op1 = captures[4];
   12280                 :           0 :                                       tree res_op2;
   12281                 :           0 :                                       res_op2 =  bitsize_int (idx * elem_size);
   12282                 :           0 :                                       tree _r;
   12283                 :           0 :                                       _r = fold_build3_loc (loc, BIT_FIELD_REF, type, res_op0, res_op1, res_op2);
   12284                 :           0 :                                       if (TREE_SIDE_EFFECTS (captures[2]))
   12285                 :           0 :                                         _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
   12286                 :           0 :                                       if (TREE_SIDE_EFFECTS (captures[5]))
   12287                 :           0 :                                         _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[5]), _r);
   12288                 :           0 :                                       if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1106, __FILE__, __LINE__, true);
   12289                 :           0 :                                       return _r;
   12290                 :             :                                     }
   12291                 :           0 : next_after_fail2127:;
   12292                 :             :                                   }
   12293                 :             :                                 else
   12294                 :             :                                   {
   12295                 :           0 :                                     if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail2128;
   12296                 :           0 :                                     if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2128;
   12297                 :           0 :                                     {
   12298                 :           0 :                                       tree res_op0;
   12299                 :           0 :                                       res_op0 = captures[2];
   12300                 :           0 :                                       tree res_op1;
   12301                 :           0 :                                       res_op1 = captures[4];
   12302                 :           0 :                                       tree res_op2;
   12303                 :           0 :                                       res_op2 =  bitsize_int ((idx - nelts) * elem_size);
   12304                 :           0 :                                       tree _r;
   12305                 :           0 :                                       _r = fold_build3_loc (loc, BIT_FIELD_REF, type, res_op0, res_op1, res_op2);
   12306                 :           0 :                                       if (TREE_SIDE_EFFECTS (captures[1]))
   12307                 :           0 :                                         _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
   12308                 :           0 :                                       if (TREE_SIDE_EFFECTS (captures[5]))
   12309                 :           0 :                                         _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[5]), _r);
   12310                 :           0 :                                       if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1107, __FILE__, __LINE__, true);
   12311                 :           0 :                                       return _r;
   12312                 :             :                                     }
   12313                 :           0 : next_after_fail2128:;
   12314                 :             :                                   }
   12315                 :             :                               }
   12316                 :             :                         }
   12317                 :             :                       }
   12318                 :             :                 }
   12319                 :             :               }
   12320                 :           0 :               break;
   12321                 :             :             }
   12322                 :             :           default:;
   12323                 :             :           }
   12324                 :             :         break;
   12325                 :             :       }
   12326                 :           0 :     case BIT_INSERT_EXPR:
   12327                 :           0 :       {
   12328                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
   12329                 :           0 :         tree _q21 = TREE_OPERAND (_p0, 1);
   12330                 :           0 :         tree _q22 = TREE_OPERAND (_p0, 2);
   12331                 :           0 :         {
   12332                 :           0 :           tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _p1, _p2 };
   12333                 :           0 :           {
   12334                 :           0 :  unsigned HOST_WIDE_INT isize;
   12335                 :           0 :  if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1])))
   12336                 :           0 :  isize = TYPE_PRECISION (TREE_TYPE (captures[1]));
   12337                 :             :  else
   12338                 :           0 :  isize = tree_to_uhwi (TYPE_SIZE (TREE_TYPE (captures[1])));
   12339                 :           0 :               if ((!INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
   12340                 :           0 :  || type_has_mode_precision_p (TREE_TYPE (captures[1])))
   12341                 :           0 :  && wi::leu_p (wi::to_wide (captures[2]), wi::to_wide (captures[4]))
   12342                 :           0 :  && wi::leu_p (wi::to_wide (captures[4]) + wi::to_wide (captures[3]),
   12343                 :           0 :  wi::to_wide (captures[2]) + isize)
   12344                 :             : )
   12345                 :             :                 {
   12346                 :           0 :                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail2129;
   12347                 :           0 :                   if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail2129;
   12348                 :           0 :                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2129;
   12349                 :           0 :                   {
   12350                 :           0 :                     tree res_op0;
   12351                 :           0 :                     res_op0 = captures[1];
   12352                 :           0 :                     tree res_op1;
   12353                 :           0 :                     res_op1 = captures[3];
   12354                 :           0 :                     tree res_op2;
   12355                 :           0 :                     res_op2 =  wide_int_to_tree (bitsizetype,
   12356                 :           0 :  wi::to_wide (captures[4])
   12357                 :           0 :  - wi::to_wide (captures[2]));
   12358                 :           0 :                     tree _r;
   12359                 :           0 :                     _r = fold_build3_loc (loc, BIT_FIELD_REF, type, res_op0, res_op1, res_op2);
   12360                 :           0 :                     if (TREE_SIDE_EFFECTS (captures[0]))
   12361                 :           0 :                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
   12362                 :           0 :                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1108, __FILE__, __LINE__, true);
   12363                 :           0 :                     return _r;
   12364                 :             :                   }
   12365                 :           0 : next_after_fail2129:;
   12366                 :             :                 }
   12367                 :             :               else
   12368                 :             :                 {
   12369                 :           0 :                   if (wi::eq_p (wi::to_wide (captures[2]), wi::to_wide (captures[4]))
   12370                 :           0 :  && compare_tree_int (captures[3], isize) == 0
   12371                 :             : )
   12372                 :             :                     {
   12373                 :           0 :                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2130;
   12374                 :           0 :                       {
   12375                 :           0 :                         tree res_op0;
   12376                 :           0 :                         res_op0 = captures[1];
   12377                 :           0 :                         tree _r;
   12378                 :           0 :                         _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
   12379                 :           0 :                         if (TREE_SIDE_EFFECTS (captures[0]))
   12380                 :           0 :                           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
   12381                 :           0 :                         if (TREE_SIDE_EFFECTS (captures[2]))
   12382                 :           0 :                           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
   12383                 :           0 :                         if (TREE_SIDE_EFFECTS (captures[3]))
   12384                 :           0 :                           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
   12385                 :           0 :                         if (TREE_SIDE_EFFECTS (captures[4]))
   12386                 :           0 :                           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[4]), _r);
   12387                 :           0 :                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1109, __FILE__, __LINE__, true);
   12388                 :           0 :                         return _r;
   12389                 :             :                       }
   12390                 :           0 : next_after_fail2130:;
   12391                 :             :                     }
   12392                 :             :                   else
   12393                 :             :                     {
   12394                 :           0 :                       if (wi::geu_p (wi::to_wide (captures[2]),
   12395                 :           0 :  wi::to_wide (captures[4]) + wi::to_wide (captures[3]))
   12396                 :           0 :  || wi::geu_p (wi::to_wide (captures[4]),
   12397                 :           0 :  wi::to_wide (captures[2]) + isize)
   12398                 :             : )
   12399                 :             :                         {
   12400                 :           0 :                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2131;
   12401                 :           0 :                           {
   12402                 :           0 :                             tree res_op0;
   12403                 :           0 :                             res_op0 = captures[0];
   12404                 :           0 :                             tree res_op1;
   12405                 :           0 :                             res_op1 = captures[3];
   12406                 :           0 :                             tree res_op2;
   12407                 :           0 :                             res_op2 = captures[4];
   12408                 :           0 :                             tree _r;
   12409                 :           0 :                             _r = fold_build3_loc (loc, BIT_FIELD_REF, type, res_op0, res_op1, res_op2);
   12410                 :           0 :                             if (TREE_SIDE_EFFECTS (captures[1]))
   12411                 :           0 :                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
   12412                 :           0 :                             if (TREE_SIDE_EFFECTS (captures[2]))
   12413                 :           0 :                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
   12414                 :           0 :                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1110, __FILE__, __LINE__, true);
   12415                 :           0 :                             return _r;
   12416                 :             :                           }
   12417                 :           0 : next_after_fail2131:;
   12418                 :             :                         }
   12419                 :             :                     }
   12420                 :             :                 }
   12421                 :             :           }
   12422                 :             :         }
   12423                 :           0 :         break;
   12424                 :             :       }
   12425                 :             :     default:;
   12426                 :             :     }
   12427                 :             :   return NULL_TREE;
   12428                 :             : }
   12429                 :             : #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.