LCOV - code coverage report
Current view: top level - /mnt/build/buildbot/bld/build-lcov/gcc - generic-match-6.cc (source / functions) Coverage Total Hit
Test: gcc.info Lines: 50.3 % 6428 3233
Test Date: 2024-04-13 14:00:49 Functions: 64.9 % 57 37
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                 :    85417750 : tree_logical_inverted_value (tree t, tree *res_ops)
      11                 :             : {
      12                 :    85417750 :   const tree type = TREE_TYPE (t);
      13                 :    85417750 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
      14                 :    85417750 :   if (TREE_SIDE_EFFECTS (t)) return false;
      15                 :    78494426 :   switch (TREE_CODE (t))
      16                 :             :     {
      17                 :      513191 :     case TRUTH_NOT_EXPR:
      18                 :      513191 :       {
      19                 :      513191 :         tree _p0 = TREE_OPERAND (t, 0);
      20                 :      513191 :         {
      21                 :      513191 :           tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
      22                 :      513191 :           {
      23                 :      513191 :             res_ops[0] = captures[0];
      24                 :      513191 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 13, __FILE__, __LINE__, false);
      25                 :             :             return true;
      26                 :             :           }
      27                 :             :         }
      28                 :       94250 :         break;
      29                 :             :       }
      30                 :       94250 :     case BIT_NOT_EXPR:
      31                 :       94250 :       {
      32                 :       94250 :         tree _p0 = TREE_OPERAND (t, 0);
      33                 :       94250 :         if (tree_truth_valued_p (_p0))
      34                 :             :           {
      35                 :       12042 :             {
      36                 :       12042 :               tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
      37                 :       12042 :               {
      38                 :       12042 :                 res_ops[0] = captures[0];
      39                 :       12042 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 14, __FILE__, __LINE__, false);
      40                 :       12042 :                 return true;
      41                 :             :               }
      42                 :             :             }
      43                 :             :           }
      44                 :             :         break;
      45                 :             :       }
      46                 :     1130786 :     case EQ_EXPR:
      47                 :     1130786 :       {
      48                 :     1130786 :         tree _p0 = TREE_OPERAND (t, 0);
      49                 :     1130786 :         tree _p1 = TREE_OPERAND (t, 1);
      50                 :     1130786 :         if (integer_zerop (_p1))
      51                 :             :           {
      52                 :      449766 :             {
      53                 :      449766 :               tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
      54                 :      449766 :               {
      55                 :      449766 :                 res_ops[0] = captures[0];
      56                 :      449766 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 15, __FILE__, __LINE__, false);
      57                 :      449766 :                 return true;
      58                 :             :               }
      59                 :             :             }
      60                 :             :           }
      61                 :             :         break;
      62                 :             :       }
      63                 :     1507661 :     case NE_EXPR:
      64                 :     1507661 :       {
      65                 :     1507661 :         tree _p0 = TREE_OPERAND (t, 0);
      66                 :     1507661 :         tree _p1 = TREE_OPERAND (t, 1);
      67                 :     1507661 :         if (tree_truth_valued_p (_p0))
      68                 :             :           {
      69                 :        2254 :             if (integer_truep (_p1))
      70                 :             :               {
      71                 :           0 :                 {
      72                 :           0 :                   tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
      73                 :           0 :                   {
      74                 :           0 :                     res_ops[0] = captures[0];
      75                 :           0 :                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 16, __FILE__, __LINE__, false);
      76                 :           0 :                     return true;
      77                 :             :                   }
      78                 :             :                 }
      79                 :             :               }
      80                 :             :           }
      81                 :             :         break;
      82                 :             :       }
      83                 :       32512 :     case BIT_XOR_EXPR:
      84                 :       32512 :       {
      85                 :       32512 :         tree _p0 = TREE_OPERAND (t, 0);
      86                 :       32512 :         tree _p1 = TREE_OPERAND (t, 1);
      87                 :       32512 :         if (tree_truth_valued_p (_p0))
      88                 :             :           {
      89                 :        4647 :             if (integer_truep (_p1))
      90                 :             :               {
      91                 :           0 :                 {
      92                 :           0 :                   tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
      93                 :           0 :                   {
      94                 :           0 :                     res_ops[0] = captures[0];
      95                 :           0 :                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 17, __FILE__, __LINE__, false);
      96                 :           0 :                     return true;
      97                 :             :                   }
      98                 :             :                 }
      99                 :             :               }
     100                 :             :           }
     101                 :             :         break;
     102                 :             :       }
     103                 :             :     default:;
     104                 :             :     }
     105                 :             :   return false;
     106                 :             : }
     107                 :             : 
     108                 :             : tree
     109                 :           7 : generic_simplify_5 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
     110                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
     111                 :             :  const enum tree_code ARG_UNUSED (op))
     112                 :             : {
     113                 :           7 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     114                 :           7 :   if (INTEGRAL_TYPE_P (type)
     115                 :           7 :  && TYPE_OVERFLOW_WRAPS (type)
     116                 :          14 :  && !TYPE_SATURATING (type)
     117                 :             : )
     118                 :             :     {
     119                 :           7 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail86;
     120                 :           7 :       {
     121                 :           7 :         tree res_op0;
     122                 :           7 :         {
     123                 :           7 :           tree _o1[2], _r1;
     124                 :           7 :           _o1[0] = captures[1];
     125                 :           7 :           _o1[1] = captures[4];
     126                 :           7 :           _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
     127                 :           7 :           res_op0 = _r1;
     128                 :             :         }
     129                 :           7 :         tree res_op1;
     130                 :           7 :         res_op1 = captures[2];
     131                 :           7 :         tree _r;
     132                 :           7 :         _r = fold_build2_loc (loc, LSHIFT_EXPR, type, res_op0, res_op1);
     133                 :           7 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 45, __FILE__, __LINE__, true);
     134                 :           7 :         return _r;
     135                 :             :       }
     136                 :           0 : next_after_fail86:;
     137                 :             :     }
     138                 :             :   return NULL_TREE;
     139                 :             : }
     140                 :             : 
     141                 :             : tree
     142                 :         302 : generic_simplify_10 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
     143                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
     144                 :             :  const enum tree_code ARG_UNUSED (op))
     145                 :             : {
     146                 :         302 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     147                 :         302 :   if (tree_nop_conversion_p (type, TREE_TYPE (captures[1]))
     148                 :         302 :  && tree_nop_conversion_p (type, TREE_TYPE (captures[4]))
     149                 :         604 :  && (wi::to_wide (captures[2]) & wi::to_wide (captures[5])) == 0
     150                 :             : )
     151                 :             :     {
     152                 :         106 :       if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail91;
     153                 :         106 :       if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail91;
     154                 :         106 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail91;
     155                 :         106 :       {
     156                 :         106 :         tree res_op0;
     157                 :         106 :         {
     158                 :         106 :           tree _o1[1], _r1;
     159                 :         106 :           _o1[0] = captures[0];
     160                 :         106 :           if (TREE_TYPE (_o1[0]) != type)
     161                 :             :             {
     162                 :           0 :               _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
     163                 :             :             }
     164                 :             :           else
     165                 :             :             _r1 = _o1[0];
     166                 :         106 :           res_op0 = _r1;
     167                 :             :         }
     168                 :         106 :         tree res_op1;
     169                 :         106 :         {
     170                 :         106 :           tree _o1[1], _r1;
     171                 :         106 :           _o1[0] = captures[3];
     172                 :         106 :           if (TREE_TYPE (_o1[0]) != type)
     173                 :             :             {
     174                 :           0 :               _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
     175                 :             :             }
     176                 :             :           else
     177                 :             :             _r1 = _o1[0];
     178                 :         106 :           res_op1 = _r1;
     179                 :             :         }
     180                 :         106 :         tree _r;
     181                 :         106 :         _r = fold_build2_loc (loc, BIT_IOR_EXPR, type, res_op0, res_op1);
     182                 :         106 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 50, __FILE__, __LINE__, true);
     183                 :         106 :         return _r;
     184                 :             :       }
     185                 :             : next_after_fail91:;
     186                 :             :     }
     187                 :             :   return NULL_TREE;
     188                 :             : }
     189                 :             : 
     190                 :             : tree
     191                 :     5414779 : generic_simplify_19 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
     192                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
     193                 :             :  const enum tree_code ARG_UNUSED (op))
     194                 :             : {
     195                 :     5414779 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     196                 :     5414779 :   if (!TYPE_SATURATING (type)
     197                 :             : )
     198                 :             :     {
     199                 :     5414779 :       if ((!FLOAT_TYPE_P (type) || flag_associative_math)
     200                 :    10443368 :  && !FIXED_POINT_TYPE_P (type)
     201                 :             : )
     202                 :             :         {
     203                 :     5028589 :           if (INTEGRAL_TYPE_P (type)
     204                 :     5028267 :  && INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
     205                 :     4162050 :  && TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
     206                 :     3609025 :  && types_match (TREE_TYPE (captures[0]), TREE_TYPE (captures[1]))
     207                 :     2963382 :  && !TYPE_OVERFLOW_TRAPS (type)
     208                 :     7991971 :  && !TYPE_OVERFLOW_SANITIZED (type)
     209                 :             : )
     210                 :             :             {
     211                 :     2963079 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail108;
     212                 :     2963079 :               {
     213                 :     2963079 :                 tree res_op0;
     214                 :     2963079 :                 {
     215                 :     2963079 :                   tree _o1[2], _r1;
     216                 :     2963079 :                   _o1[0] = captures[0];
     217                 :     2963079 :                   _o1[1] = captures[1];
     218                 :     2963079 :                   _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
     219                 :     2963079 :                   if (EXPR_P (_r1))
     220                 :     2950815 :                     goto next_after_fail108;
     221                 :       12264 :                   res_op0 = _r1;
     222                 :             :                 }
     223                 :       12264 :                 tree _r;
     224                 :       12264 :                 _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
     225                 :       12264 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 67, __FILE__, __LINE__, true);
     226                 :       12264 :                 return _r;
     227                 :             :               }
     228                 :             : next_after_fail108:;
     229                 :             :             }
     230                 :             :         }
     231                 :             :     }
     232                 :             :   return NULL_TREE;
     233                 :             : }
     234                 :             : 
     235                 :             : tree
     236                 :           2 : generic_simplify_26 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
     237                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
     238                 :             :  const enum tree_code ARG_UNUSED (div),
     239                 :             :  const enum tree_code ARG_UNUSED (mod))
     240                 :             : {
     241                 :           2 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     242                 :           2 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail116;
     243                 :           2 :   {
     244                 :           2 :     tree _r;
     245                 :           2 :     _r = captures[0];
     246                 :           2 :     if (TREE_SIDE_EFFECTS (captures[1]))
     247                 :           0 :       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
     248                 :           2 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 75, __FILE__, __LINE__, true);
     249                 :             :     return _r;
     250                 :             :   }
     251                 :           0 : next_after_fail116:;
     252                 :           0 :   return NULL_TREE;
     253                 :             : }
     254                 :             : 
     255                 :             : tree
     256                 :       18966 : generic_simplify_28 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
     257                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
     258                 :             :  const enum tree_code ARG_UNUSED (op))
     259                 :             : {
     260                 :       18966 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     261                 :       18966 :   if (flag_unsafe_math_optimizations
     262                 :             : )
     263                 :             :     {
     264                 :          12 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail118;
     265                 :          12 :       {
     266                 :          12 :         tree res_op0;
     267                 :          12 :         {
     268                 :          12 :           tree _o1[2], _r1;
     269                 :          12 :           _o1[0] = captures[0];
     270                 :          12 :           _o1[1] = captures[2];
     271                 :          12 :           _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
     272                 :          12 :           res_op0 = _r1;
     273                 :             :         }
     274                 :          12 :         tree res_op1;
     275                 :          12 :         res_op1 = captures[1];
     276                 :          12 :         tree _r;
     277                 :          12 :         _r = fold_build2_loc (loc, RDIV_EXPR, type, res_op0, res_op1);
     278                 :          12 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 77, __FILE__, __LINE__, true);
     279                 :          12 :         return _r;
     280                 :             :       }
     281                 :           0 : next_after_fail118:;
     282                 :             :     }
     283                 :             :   return NULL_TREE;
     284                 :             : }
     285                 :             : 
     286                 :             : tree
     287                 :          21 : generic_simplify_36 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
     288                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
     289                 :             : {
     290                 :          21 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     291                 :          21 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail126;
     292                 :          21 :   {
     293                 :          21 :     tree res_op0;
     294                 :          21 :     {
     295                 :          21 :       tree _o1[2], _r1;
     296                 :          21 :       _o1[0] = captures[1];
     297                 :          21 :       _o1[1] = unshare_expr (captures[2]);
     298                 :          21 :       _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
     299                 :          21 :       res_op0 = _r1;
     300                 :             :     }
     301                 :          21 :     tree res_op1;
     302                 :          21 :     res_op1 = captures[2];
     303                 :          21 :     tree _r;
     304                 :          21 :     _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
     305                 :          21 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 85, __FILE__, __LINE__, true);
     306                 :             :     return _r;
     307                 :             :   }
     308                 :           0 : next_after_fail126:;
     309                 :           0 :   return NULL_TREE;
     310                 :             : }
     311                 :             : 
     312                 :             : tree
     313                 :         881 : generic_simplify_43 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
     314                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
     315                 :             : {
     316                 :         881 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     317                 :         881 :   if (!TYPE_SATURATING (type)
     318                 :             : )
     319                 :             :     {
     320                 :         881 :       if (tree_nop_conversion_p (type, TREE_TYPE (captures[1]))
     321                 :         881 :  && !TYPE_OVERFLOW_SANITIZED (type)
     322                 :             : )
     323                 :             :         {
     324                 :           0 :           {
     325                 :           0 :  tree t1 = type;
     326                 :           0 :  if (INTEGRAL_TYPE_P (type)
     327                 :           0 :  && TYPE_OVERFLOW_WRAPS (type) != TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[1])))
     328                 :           0 :  t1 = TYPE_OVERFLOW_WRAPS (type) ? type : TREE_TYPE (captures[1]);
     329                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail133;
     330                 :           0 :               {
     331                 :           0 :                 tree res_op0;
     332                 :           0 :                 {
     333                 :           0 :                   tree _o1[2], _r1;
     334                 :           0 :                   {
     335                 :           0 :                     tree _o2[1], _r2;
     336                 :           0 :                     _o2[0] = captures[0];
     337                 :           0 :                     if (TREE_TYPE (_o2[0]) != t1)
     338                 :             :                       {
     339                 :           0 :                         _r2 = fold_build1_loc (loc, NOP_EXPR, t1, _o2[0]);
     340                 :             :                       }
     341                 :             :                     else
     342                 :             :                       _r2 = _o2[0];
     343                 :           0 :                     _o1[0] = _r2;
     344                 :             :                   }
     345                 :           0 :                   {
     346                 :           0 :                     tree _o2[1], _r2;
     347                 :           0 :                     _o2[0] = captures[1];
     348                 :           0 :                     if (TREE_TYPE (_o2[0]) != t1)
     349                 :             :                       {
     350                 :           0 :                         _r2 = fold_build1_loc (loc, NOP_EXPR, t1, _o2[0]);
     351                 :             :                       }
     352                 :             :                     else
     353                 :             :                       _r2 = _o2[0];
     354                 :           0 :                     _o1[1] = _r2;
     355                 :             :                   }
     356                 :           0 :                   _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
     357                 :           0 :                   res_op0 = _r1;
     358                 :             :                 }
     359                 :           0 :                 tree _r;
     360                 :           0 :                 _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
     361                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 91, __FILE__, __LINE__, true);
     362                 :           0 :                 return _r;
     363                 :             :               }
     364                 :           0 : next_after_fail133:;
     365                 :             :           }
     366                 :             :         }
     367                 :             :     }
     368                 :             :   return NULL_TREE;
     369                 :             : }
     370                 :             : 
     371                 :             : tree
     372                 :        8946 : generic_simplify_52 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
     373                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
     374                 :             : {
     375                 :        8946 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     376                 :        8946 :   if (!TYPE_SATURATING (type)
     377                 :             : )
     378                 :             :     {
     379                 :        8946 :       if ((!FLOAT_TYPE_P (type) || flag_associative_math)
     380                 :       17892 :  && !FIXED_POINT_TYPE_P (type)
     381                 :             : )
     382                 :             :         {
     383                 :        8946 :           if (INTEGRAL_TYPE_P (type)
     384                 :        8946 :  && TYPE_OVERFLOW_UNDEFINED (type)
     385                 :        1936 :  && TREE_CODE (captures[1]) != INTEGER_CST
     386                 :        9179 :  && element_precision (type) <= element_precision (TREE_TYPE (captures[1]))
     387                 :             : )
     388                 :             :             {
     389                 :         232 :               {
     390                 :         232 :  tree utype = unsigned_type_for (type);
     391                 :         232 :                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail146;
     392                 :         232 :                   {
     393                 :         232 :                     tree res_op0;
     394                 :         232 :                     {
     395                 :         232 :                       tree _o1[1], _r1;
     396                 :         232 :                       {
     397                 :         232 :                         tree _o2[1], _r2;
     398                 :         232 :                         _o2[0] = captures[1];
     399                 :         232 :                         if (TREE_TYPE (_o2[0]) != utype)
     400                 :             :                           {
     401                 :         232 :                             _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
     402                 :             :                           }
     403                 :             :                         else
     404                 :             :                           _r2 = _o2[0];
     405                 :         232 :                         _o1[0] = _r2;
     406                 :             :                       }
     407                 :         232 :                       _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
     408                 :         232 :                       res_op0 = _r1;
     409                 :             :                     }
     410                 :         232 :                     tree _r;
     411                 :         232 :                     _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
     412                 :         232 :                     if (TREE_SIDE_EFFECTS (captures[2]))
     413                 :           0 :                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
     414                 :         232 :                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 104, __FILE__, __LINE__, true);
     415                 :         232 :                     return _r;
     416                 :             :                   }
     417                 :           0 : next_after_fail146:;
     418                 :             :               }
     419                 :             :             }
     420                 :             :           else
     421                 :             :             {
     422                 :        8714 :               if (element_precision (type) <= element_precision (TREE_TYPE (captures[1]))
     423                 :        8714 :  || (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
     424                 :        1959 :  && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[1])))
     425                 :             : )
     426                 :             :                 {
     427                 :        8471 :                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail147;
     428                 :        8471 :                   {
     429                 :        8471 :                     tree res_op0;
     430                 :        8471 :                     {
     431                 :        8471 :                       tree _o1[1], _r1;
     432                 :        8471 :                       _o1[0] = captures[1];
     433                 :        8471 :                       if (TREE_TYPE (_o1[0]) != type)
     434                 :             :                         {
     435                 :        8471 :                           _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
     436                 :             :                         }
     437                 :             :                       else
     438                 :             :                         _r1 = _o1[0];
     439                 :        8471 :                       res_op0 = _r1;
     440                 :             :                     }
     441                 :        8471 :                     tree _r;
     442                 :        8471 :                     _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
     443                 :        8471 :                     if (TREE_SIDE_EFFECTS (captures[2]))
     444                 :           0 :                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
     445                 :        8471 :                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 105, __FILE__, __LINE__, true);
     446                 :        8471 :                     return _r;
     447                 :             :                   }
     448                 :           0 : next_after_fail147:;
     449                 :             :                 }
     450                 :             :             }
     451                 :             :         }
     452                 :             :     }
     453                 :             :   return NULL_TREE;
     454                 :             : }
     455                 :             : 
     456                 :             : tree
     457                 :           0 : generic_simplify_68 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
     458                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
     459                 :             :  const enum tree_code ARG_UNUSED (op))
     460                 :             : {
     461                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     462                 :           0 :   if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail164;
     463                 :           0 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail164;
     464                 :           0 :   {
     465                 :           0 :     tree _r;
     466                 :           0 :     _r = captures[0];
     467                 :           0 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 121, __FILE__, __LINE__, true);
     468                 :             :     return _r;
     469                 :             :   }
     470                 :             : next_after_fail164:;
     471                 :             :   return NULL_TREE;
     472                 :             : }
     473                 :             : 
     474                 :             : tree
     475                 :           0 : generic_simplify_75 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
     476                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
     477                 :             : {
     478                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     479                 :           0 :   if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail171;
     480                 :           0 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail171;
     481                 :           0 :   {
     482                 :           0 :     tree _r;
     483                 :           0 :     _r = captures[2];
     484                 :           0 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 123, __FILE__, __LINE__, true);
     485                 :             :     return _r;
     486                 :             :   }
     487                 :             : next_after_fail171:;
     488                 :             :   return NULL_TREE;
     489                 :             : }
     490                 :             : 
     491                 :             : tree
     492                 :          15 : generic_simplify_82 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
     493                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
     494                 :             :  const enum tree_code ARG_UNUSED (bitop))
     495                 :             : {
     496                 :          15 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     497                 :          15 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail178;
     498                 :          15 :   {
     499                 :          15 :     tree res_op0;
     500                 :          15 :     res_op0 = captures[0];
     501                 :          15 :     tree res_op1;
     502                 :          15 :     {
     503                 :          15 :       tree _o1[1], _r1;
     504                 :          15 :       _o1[0] = captures[2];
     505                 :          15 :       _r1 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
     506                 :          15 :       res_op1 = _r1;
     507                 :             :     }
     508                 :          15 :     tree _r;
     509                 :          15 :     _r = fold_build2_loc (loc, bitop, type, res_op0, res_op1);
     510                 :          15 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 130, __FILE__, __LINE__, true);
     511                 :             :     return _r;
     512                 :             :   }
     513                 :           0 : next_after_fail178:;
     514                 :           0 :   return NULL_TREE;
     515                 :             : }
     516                 :             : 
     517                 :             : tree
     518                 :           0 : generic_simplify_90 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
     519                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
     520                 :             :  const enum tree_code ARG_UNUSED (op))
     521                 :             : {
     522                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     523                 :           0 :   if (tree_nop_conversion_p (type, TREE_TYPE (captures[3]))
     524                 :           0 :  && tree_nop_conversion_p (type, TREE_TYPE (captures[6]))
     525                 :             : )
     526                 :             :     {
     527                 :           0 :       if (single_use (captures[4]) && single_use (captures[5])
     528                 :             : )
     529                 :             :         {
     530                 :           0 :           if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail188;
     531                 :           0 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail188;
     532                 :           0 :           {
     533                 :           0 :             tree res_op0;
     534                 :           0 :             res_op0 = captures[0];
     535                 :           0 :             tree res_op1;
     536                 :           0 :             {
     537                 :           0 :               tree _o1[1], _r1;
     538                 :           0 :               _o1[0] = captures[6];
     539                 :           0 :               if (TREE_TYPE (_o1[0]) != type)
     540                 :             :                 {
     541                 :           0 :                   _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
     542                 :             :                 }
     543                 :             :               else
     544                 :             :                 _r1 = _o1[0];
     545                 :           0 :               res_op1 = _r1;
     546                 :             :             }
     547                 :           0 :             tree _r;
     548                 :           0 :             _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
     549                 :           0 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 135, __FILE__, __LINE__, true);
     550                 :           0 :             return _r;
     551                 :             :           }
     552                 :             : next_after_fail188:;
     553                 :             :         }
     554                 :             :       else
     555                 :             :         {
     556                 :             :           if (single_use (captures[0]) && single_use (captures[1])
     557                 :             : )
     558                 :             :             {
     559                 :             :               if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail189;
     560                 :             :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail189;
     561                 :             :               {
     562                 :             :                 tree res_op0;
     563                 :             :                 {
     564                 :             :                   tree _o1[1], _r1;
     565                 :             :                   _o1[0] = captures[3];
     566                 :             :                   if (TREE_TYPE (_o1[0]) != type)
     567                 :             :                     {
     568                 :             :                       _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
     569                 :             :                     }
     570                 :             :                   else
     571                 :             :                     _r1 = _o1[0];
     572                 :             :                   res_op0 = _r1;
     573                 :             :                 }
     574                 :             :                 tree res_op1;
     575                 :             :                 res_op1 = captures[4];
     576                 :             :                 tree _r;
     577                 :             :                 _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
     578                 :             :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 136, __FILE__, __LINE__, true);
     579                 :             :                 return _r;
     580                 :             :               }
     581                 :             : next_after_fail189:;
     582                 :             :             }
     583                 :             :         }
     584                 :             :     }
     585                 :             :   return NULL_TREE;
     586                 :             : }
     587                 :             : 
     588                 :             : tree
     589                 :           0 : generic_simplify_103 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
     590                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
     591                 :             :  const enum tree_code ARG_UNUSED (op))
     592                 :             : {
     593                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     594                 :           0 :   if (bitwise_equal_p (captures[4], captures[7])
     595                 :             : )
     596                 :             :     {
     597                 :           0 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail204;
     598                 :           0 :       {
     599                 :           0 :         tree res_op0;
     600                 :           0 :         {
     601                 :           0 :           tree _o1[2], _r1;
     602                 :           0 :           {
     603                 :           0 :             tree _o2[2], _r2;
     604                 :           0 :             _o2[0] = captures[5];
     605                 :           0 :             {
     606                 :           0 :               tree _o3[1], _r3;
     607                 :           0 :               _o3[0] = captures[6];
     608                 :           0 :               if (TREE_TYPE (_o3[0]) != TREE_TYPE (_o2[0]))
     609                 :             :                 {
     610                 :           0 :                   _r3 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (_o2[0]), _o3[0]);
     611                 :             :                 }
     612                 :             :               else
     613                 :             :                 _r3 = _o3[0];
     614                 :           0 :               _o2[1] = _r3;
     615                 :             :             }
     616                 :           0 :             _r2 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
     617                 :           0 :             _o1[0] = _r2;
     618                 :             :           }
     619                 :           0 :           {
     620                 :           0 :             tree _o2[1], _r2;
     621                 :           0 :             _o2[0] = captures[4];
     622                 :           0 :             if (TREE_TYPE (_o2[0]) != TREE_TYPE (_o1[0]))
     623                 :             :               {
     624                 :           0 :                 _r2 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (_o1[0]), _o2[0]);
     625                 :             :               }
     626                 :             :             else
     627                 :             :               _r2 = _o2[0];
     628                 :           0 :             _o1[1] = _r2;
     629                 :             :           }
     630                 :           0 :           _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
     631                 :           0 :           res_op0 = _r1;
     632                 :             :         }
     633                 :           0 :         tree _r;
     634                 :           0 :         _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
     635                 :           0 :         if (TREE_SIDE_EFFECTS (captures[7]))
     636                 :           0 :           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[7]), _r);
     637                 :           0 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 142, __FILE__, __LINE__, true);
     638                 :           0 :         return _r;
     639                 :             :       }
     640                 :           0 : next_after_fail204:;
     641                 :             :     }
     642                 :             :   return NULL_TREE;
     643                 :             : }
     644                 :             : 
     645                 :             : tree
     646                 :           0 : generic_simplify_115 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
     647                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
     648                 :             : {
     649                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     650                 :           0 :   if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
     651                 :           0 :  && TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[1]))
     652                 :             : )
     653                 :             :     {
     654                 :           0 :       if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail222;
     655                 :           0 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail222;
     656                 :           0 :       {
     657                 :           0 :         tree res_op0;
     658                 :           0 :         res_op0 = captures[3];
     659                 :           0 :         tree res_op1;
     660                 :           0 :         {
     661                 :           0 :           tree _o1[2], _r1;
     662                 :           0 :           _o1[0] = captures[1];
     663                 :           0 :           _o1[1] =  build_int_cst (TREE_TYPE (captures[1]), 1);
     664                 :           0 :           _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
     665                 :           0 :           res_op1 = _r1;
     666                 :             :         }
     667                 :           0 :         tree _r;
     668                 :           0 :         _r = fold_build2_loc (loc, LE_EXPR, type, res_op0, res_op1);
     669                 :           0 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 161, __FILE__, __LINE__, true);
     670                 :           0 :         return _r;
     671                 :             :       }
     672                 :             : next_after_fail222:;
     673                 :             :     }
     674                 :             :   return NULL_TREE;
     675                 :             : }
     676                 :             : 
     677                 :             : tree
     678                 :           0 : generic_simplify_123 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
     679                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
     680                 :             :  const enum tree_code ARG_UNUSED (code2),
     681                 :             :  const enum tree_code ARG_UNUSED (code1))
     682                 :             : {
     683                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     684                 :           0 :   if ((TREE_CODE (captures[2]) == INTEGER_CST
     685                 :           0 :  && TREE_CODE (captures[5]) == INTEGER_CST)
     686                 :           0 :  || ((INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
     687                 :           0 :  || POINTER_TYPE_P (TREE_TYPE (captures[2])))
     688                 :           0 :  && bitwise_equal_p (captures[2], captures[5]))
     689                 :             : )
     690                 :             :     {
     691                 :           0 :       {
     692                 :           0 :  bool one_before = false;
     693                 :           0 :  bool one_after = false;
     694                 :           0 :  int cmp = 0;
     695                 :           0 :  bool allbits = true;
     696                 :           0 :  if (TREE_CODE (captures[2]) == INTEGER_CST
     697                 :           0 :  && TREE_CODE (captures[5]) == INTEGER_CST)
     698                 :             :  {
     699                 :           0 :  allbits = TYPE_PRECISION (TREE_TYPE (captures[2])) <= TYPE_PRECISION (TREE_TYPE (captures[5]));
     700                 :           0 :  auto t1 = wi::to_wide (fold_convert (TREE_TYPE (captures[5]), captures[2]));
     701                 :           0 :  auto t2 = wi::to_wide (captures[5]);
     702                 :           0 :  cmp = wi::cmp (t1, t2, TYPE_SIGN (TREE_TYPE (captures[5])));
     703                 :           0 :  if (cmp < 0
     704                 :           0 :  && t1 == t2 - 1)
     705                 :             :  one_before = true;
     706                 :           0 :  if (cmp > 0
     707                 :           0 :  && t1 == t2 + 1)
     708                 :             :  one_after = true;
     709                 :             :  }
     710                 :           0 :  bool val;
     711                 :           0 :  switch (code2)
     712                 :             :  {
     713                 :           0 :  case EQ_EXPR: val = (cmp == 0); break;
     714                 :           0 :  case NE_EXPR: val = (cmp != 0); break;
     715                 :           0 :  case LT_EXPR: val = (cmp < 0); break;
     716                 :           0 :  case GT_EXPR: val = (cmp > 0); break;
     717                 :           0 :  case LE_EXPR: val = (cmp <= 0); break;
     718                 :           0 :  case GE_EXPR: val = (cmp >= 0); break;
     719                 :           0 :  default: gcc_unreachable ();
     720                 :             :  }
     721                 :           0 :           if (code1 == EQ_EXPR && val
     722                 :             : )
     723                 :             :             {
     724                 :           0 :               if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail249;
     725                 :           0 :               if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail249;
     726                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail249;
     727                 :           0 :               {
     728                 :           0 :                 tree _r;
     729                 :           0 :                 _r = captures[3];
     730                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 162, __FILE__, __LINE__, true);
     731                 :           0 :                 return _r;
     732                 :             :               }
     733                 :             : next_after_fail249:;
     734                 :             :             }
     735                 :             :           else
     736                 :             :             {
     737                 :           0 :               if (code1 == NE_EXPR && val && allbits
     738                 :             : )
     739                 :             :                 {
     740                 :           0 :                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail250;
     741                 :           0 :                   if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail250;
     742                 :           0 :                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail250;
     743                 :           0 :                   {
     744                 :           0 :                     tree _r;
     745                 :           0 :                     _r =  constant_boolean_node (true, type);
     746                 :           0 :                     if (TREE_SIDE_EFFECTS (captures[1]))
     747                 :           0 :                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
     748                 :           0 :                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 163, __FILE__, __LINE__, true);
     749                 :           0 :                     return _r;
     750                 :             :                   }
     751                 :             : next_after_fail250:;
     752                 :             :                 }
     753                 :             :               else
     754                 :             :                 {
     755                 :           0 :                   if (code1 == NE_EXPR && !val && allbits
     756                 :             : )
     757                 :             :                     {
     758                 :           0 :                       if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail251;
     759                 :           0 :                       if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail251;
     760                 :           0 :                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail251;
     761                 :           0 :                       {
     762                 :           0 :                         tree _r;
     763                 :           0 :                         _r = captures[0];
     764                 :           0 :                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 164, __FILE__, __LINE__, true);
     765                 :           0 :                         return _r;
     766                 :             :                       }
     767                 :             : next_after_fail251:;
     768                 :             :                     }
     769                 :             :                   else
     770                 :             :                     {
     771                 :           0 :                       if (code1 == EQ_EXPR
     772                 :           0 :  && code2 == GT_EXPR
     773                 :           0 :  && cmp == 0
     774                 :           0 :  && allbits
     775                 :             : )
     776                 :             :                         {
     777                 :           0 :                           if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail252;
     778                 :           0 :                           if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail252;
     779                 :           0 :                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail252;
     780                 :           0 :                           {
     781                 :           0 :                             tree res_op0;
     782                 :           0 :                             res_op0 = captures[4];
     783                 :           0 :                             tree res_op1;
     784                 :           0 :                             res_op1 = captures[5];
     785                 :           0 :                             tree _r;
     786                 :           0 :                             _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
     787                 :           0 :                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 165, __FILE__, __LINE__, true);
     788                 :           0 :                             return _r;
     789                 :             :                           }
     790                 :             : next_after_fail252:;
     791                 :             :                         }
     792                 :             :                       else
     793                 :             :                         {
     794                 :           0 :                           if (code1 == EQ_EXPR
     795                 :           0 :  && code2 == LT_EXPR
     796                 :           0 :  && cmp == 0
     797                 :           0 :  && allbits
     798                 :             : )
     799                 :             :                             {
     800                 :           0 :                               if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail253;
     801                 :           0 :                               if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail253;
     802                 :           0 :                               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail253;
     803                 :           0 :                               {
     804                 :           0 :                                 tree res_op0;
     805                 :           0 :                                 res_op0 = captures[4];
     806                 :           0 :                                 tree res_op1;
     807                 :           0 :                                 res_op1 = captures[5];
     808                 :           0 :                                 tree _r;
     809                 :           0 :                                 _r = fold_build2_loc (loc, LE_EXPR, type, res_op0, res_op1);
     810                 :           0 :                                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 166, __FILE__, __LINE__, true);
     811                 :           0 :                                 return _r;
     812                 :             :                               }
     813                 :             : next_after_fail253:;
     814                 :             :                             }
     815                 :             :                           else
     816                 :             :                             {
     817                 :           0 :                               if (code1 == EQ_EXPR
     818                 :           0 :  && code2 == GE_EXPR
     819                 :             :  && one_before
     820                 :           0 :  && allbits
     821                 :             : )
     822                 :             :                                 {
     823                 :           0 :                                   if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail254;
     824                 :           0 :                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail254;
     825                 :           0 :                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail254;
     826                 :           0 :                                   {
     827                 :           0 :                                     tree res_op0;
     828                 :           0 :                                     res_op0 = captures[4];
     829                 :           0 :                                     tree res_op1;
     830                 :           0 :                                     {
     831                 :           0 :                                       tree _o1[1], _r1;
     832                 :           0 :                                       _o1[0] = captures[2];
     833                 :           0 :                                       if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
     834                 :             :                                         {
     835                 :           0 :                                           _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
     836                 :             :                                         }
     837                 :             :                                       else
     838                 :             :                                         _r1 = _o1[0];
     839                 :           0 :                                       res_op1 = _r1;
     840                 :             :                                     }
     841                 :           0 :                                     tree _r;
     842                 :           0 :                                     _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
     843                 :           0 :                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 167, __FILE__, __LINE__, true);
     844                 :           0 :                                     return _r;
     845                 :             :                                   }
     846                 :             : next_after_fail254:;
     847                 :             :                                 }
     848                 :             :                               else
     849                 :             :                                 {
     850                 :           0 :                                   if (code1 == EQ_EXPR
     851                 :           0 :  && code2 == LE_EXPR
     852                 :             :  && one_after
     853                 :           0 :  && allbits
     854                 :             : )
     855                 :             :                                     {
     856                 :           0 :                                       if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail255;
     857                 :           0 :                                       if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail255;
     858                 :           0 :                                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail255;
     859                 :           0 :                                       {
     860                 :           0 :                                         tree res_op0;
     861                 :           0 :                                         res_op0 = captures[4];
     862                 :           0 :                                         tree res_op1;
     863                 :           0 :                                         {
     864                 :           0 :                                           tree _o1[1], _r1;
     865                 :           0 :                                           _o1[0] = captures[2];
     866                 :           0 :                                           if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
     867                 :             :                                             {
     868                 :           0 :                                               _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
     869                 :             :                                             }
     870                 :             :                                           else
     871                 :             :                                             _r1 = _o1[0];
     872                 :           0 :                                           res_op1 = _r1;
     873                 :             :                                         }
     874                 :           0 :                                         tree _r;
     875                 :           0 :                                         _r = fold_build2_loc (loc, LE_EXPR, type, res_op0, res_op1);
     876                 :           0 :                                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 168, __FILE__, __LINE__, true);
     877                 :           0 :                                         return _r;
     878                 :             :                                       }
     879                 :             : next_after_fail255:;
     880                 :             :                                     }
     881                 :             :                                 }
     882                 :             :                             }
     883                 :             :                         }
     884                 :             :                     }
     885                 :             :                 }
     886                 :             :             }
     887                 :             :       }
     888                 :             :     }
     889                 :             :   return NULL_TREE;
     890                 :             : }
     891                 :             : 
     892                 :             : tree
     893                 :           0 : generic_simplify_162 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
     894                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
     895                 :             :  const combined_fn ARG_UNUSED (COPYSIGN_ALL))
     896                 :             : {
     897                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     898                 :           0 :   if (!tree_expr_maybe_nan_p (captures[0]) && !HONOR_SIGNED_ZEROS (type)
     899                 :             : )
     900                 :             :     {
     901                 :           0 :       if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail303;
     902                 :           0 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail303;
     903                 :           0 :       {
     904                 :           0 :         tree res_op0;
     905                 :           0 :         {
     906                 :           0 :           tree _o1[1], _r1;
     907                 :           0 :           _o1[0] = captures[0];
     908                 :           0 :           _r1 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
     909                 :           0 :           res_op0 = _r1;
     910                 :             :         }
     911                 :           0 :         tree _r;
     912                 :           0 :         _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
     913                 :           0 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 212, __FILE__, __LINE__, true);
     914                 :           0 :         return _r;
     915                 :             :       }
     916                 :             : next_after_fail303:;
     917                 :             :     }
     918                 :             :   return NULL_TREE;
     919                 :             : }
     920                 :             : 
     921                 :             : tree
     922                 :        1544 : generic_simplify_172 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
     923                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
     924                 :             :  const enum tree_code ARG_UNUSED (cmp))
     925                 :             : {
     926                 :        1544 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     927                 :        1544 :   if (!canonicalize_math_p ()
     928                 :             : )
     929                 :             :     {
     930                 :           0 :       if (INTEGRAL_TYPE_P (type)
     931                 :           0 :  && INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
     932                 :             : )
     933                 :             :         {
     934                 :           0 :           if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail315;
     935                 :           0 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail315;
     936                 :           0 :           {
     937                 :           0 :             tree res_op0;
     938                 :           0 :             res_op0 = captures[0];
     939                 :           0 :             tree res_op1;
     940                 :           0 :             res_op1 = captures[3];
     941                 :           0 :             tree res_op2;
     942                 :           0 :             res_op2 =  build_zero_cst (type);
     943                 :           0 :             tree _r;
     944                 :           0 :             _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
     945                 :           0 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 220, __FILE__, __LINE__, true);
     946                 :           0 :             return _r;
     947                 :             :           }
     948                 :             : next_after_fail315:;
     949                 :             :         }
     950                 :             :     }
     951                 :             :   return NULL_TREE;
     952                 :             : }
     953                 :             : 
     954                 :             : tree
     955                 :          12 : generic_simplify_179 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
     956                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
     957                 :             :  const combined_fn ARG_UNUSED (TAN),
     958                 :             :  const combined_fn ARG_UNUSED (COS),
     959                 :             :  const combined_fn ARG_UNUSED (SIN))
     960                 :             : {
     961                 :          12 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     962                 :          12 :   if (flag_unsafe_math_optimizations && canonicalize_math_p ()
     963                 :             : )
     964                 :             :     {
     965                 :          12 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail323;
     966                 :          12 :       {
     967                 :          12 :         tree res_op0;
     968                 :          12 :         res_op0 = captures[1];
     969                 :          12 :         tree _r;
     970                 :          12 :         _r = maybe_build_call_expr_loc (loc, SIN, type, 1, res_op0);
     971                 :          12 :         if (!_r)
     972                 :           0 :           goto next_after_fail323;
     973                 :          12 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 227, __FILE__, __LINE__, true);
     974                 :          12 :         return _r;
     975                 :             :       }
     976                 :             : next_after_fail323:;
     977                 :             :     }
     978                 :             :   return NULL_TREE;
     979                 :             : }
     980                 :             : 
     981                 :             : tree
     982                 :        1672 : generic_simplify_187 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
     983                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
     984                 :             :  const enum tree_code ARG_UNUSED (cmp))
     985                 :             : {
     986                 :        1672 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
     987                 :        3344 :   if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
     988                 :        1672 :  && TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[0]))
     989                 :        3344 :  && (TREE_INT_CST_LOW (captures[1]) & 1) != 0
     990                 :             : )
     991                 :             :     {
     992                 :           5 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail331;
     993                 :           5 :       {
     994                 :           5 :         tree res_op0;
     995                 :           5 :         res_op0 = captures[0];
     996                 :           5 :         tree res_op1;
     997                 :           5 :         res_op1 = captures[2];
     998                 :           5 :         tree _r;
     999                 :           5 :         _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
    1000                 :           5 :         if (TREE_SIDE_EFFECTS (captures[1]))
    1001                 :           0 :           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1002                 :           5 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 235, __FILE__, __LINE__, true);
    1003                 :           5 :         return _r;
    1004                 :             :       }
    1005                 :           0 : next_after_fail331:;
    1006                 :             :     }
    1007                 :             :   return NULL_TREE;
    1008                 :             : }
    1009                 :             : 
    1010                 :             : tree
    1011                 :           0 : generic_simplify_196 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1012                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    1013                 :             :  const enum tree_code ARG_UNUSED (op))
    1014                 :             : {
    1015                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1016                 :           0 :   if (!TYPE_OVERFLOW_SANITIZED (TREE_TYPE (captures[1]))
    1017                 :             : )
    1018                 :             :     {
    1019                 :           0 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail356;
    1020                 :           0 :       {
    1021                 :           0 :         tree res_op0;
    1022                 :           0 :         res_op0 = captures[3];
    1023                 :           0 :         tree res_op1;
    1024                 :           0 :         res_op1 = captures[2];
    1025                 :           0 :         tree _r;
    1026                 :           0 :         _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
    1027                 :           0 :         if (TREE_SIDE_EFFECTS (captures[1]))
    1028                 :           0 :           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1029                 :           0 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 259, __FILE__, __LINE__, true);
    1030                 :           0 :         return _r;
    1031                 :             :       }
    1032                 :           0 : next_after_fail356:;
    1033                 :             :     }
    1034                 :             :   return NULL_TREE;
    1035                 :             : }
    1036                 :             : 
    1037                 :             : tree
    1038                 :        1111 : generic_simplify_204 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1039                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    1040                 :             :  const enum tree_code ARG_UNUSED (minmax),
    1041                 :             :  const enum tree_code ARG_UNUSED (cmp),
    1042                 :             :  const enum tree_code ARG_UNUSED (out))
    1043                 :             : {
    1044                 :        1111 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1045                 :        1111 :   if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
    1046                 :             : )
    1047                 :             :     {
    1048                 :         193 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail364;
    1049                 :         193 :       {
    1050                 :         193 :         tree res_op0;
    1051                 :         193 :         res_op0 = captures[0];
    1052                 :         193 :         tree res_op1;
    1053                 :         193 :         res_op1 = captures[1];
    1054                 :         193 :         tree _r;
    1055                 :         193 :         _r = fold_build2_loc (loc, out, type, res_op0, res_op1);
    1056                 :         193 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 266, __FILE__, __LINE__, true);
    1057                 :         193 :         return _r;
    1058                 :             :       }
    1059                 :           0 : next_after_fail364:;
    1060                 :             :     }
    1061                 :             :   return NULL_TREE;
    1062                 :             : }
    1063                 :             : 
    1064                 :             : tree
    1065                 :           6 : generic_simplify_210 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1066                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    1067                 :             :  const enum tree_code ARG_UNUSED (cmp),
    1068                 :             :  const enum tree_code ARG_UNUSED (icmp))
    1069                 :             : {
    1070                 :           6 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1071                 :           6 :   if (tree_int_cst_sgn (captures[0]) > 0
    1072                 :             : )
    1073                 :             :     {
    1074                 :           6 :       {
    1075                 :           6 :  int c1 = wi::clz (wi::to_wide (captures[0]));
    1076                 :           6 :  int c2 = wi::clz (wi::to_wide (captures[2]));
    1077                 :           6 :           if (c1 > c2
    1078                 :             : )
    1079                 :             :             {
    1080                 :           1 :               if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail374;
    1081                 :           1 :               if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail374;
    1082                 :           1 :               if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail374;
    1083                 :           1 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail374;
    1084                 :           1 :               {
    1085                 :           1 :                 tree _r;
    1086                 :           1 :                 _r =  constant_boolean_node (cmp == NE_EXPR ? false : true, type);
    1087                 :           1 :                 if (TREE_SIDE_EFFECTS (captures[1]))
    1088                 :           0 :                   _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1089                 :           1 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 276, __FILE__, __LINE__, true);
    1090                 :           1 :                 return _r;
    1091                 :             :               }
    1092                 :             : next_after_fail374:;
    1093                 :             :             }
    1094                 :             :           else
    1095                 :             :             {
    1096                 :           5 :               if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail375;
    1097                 :           5 :               if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail375;
    1098                 :           5 :               if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail375;
    1099                 :           5 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail375;
    1100                 :           5 :               {
    1101                 :           5 :                 tree res_op0;
    1102                 :           5 :                 res_op0 = captures[1];
    1103                 :           5 :                 tree res_op1;
    1104                 :           5 :                 res_op1 =  build_int_cst (TREE_TYPE (captures[1]), c2 - c1);
    1105                 :           5 :                 tree _r;
    1106                 :           5 :                 _r = fold_build2_loc (loc, icmp, type, res_op0, res_op1);
    1107                 :           5 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 277, __FILE__, __LINE__, true);
    1108                 :           5 :                 return _r;
    1109                 :             :               }
    1110                 :             : next_after_fail375:;
    1111                 :             :             }
    1112                 :             :       }
    1113                 :             :     }
    1114                 :             :   return NULL_TREE;
    1115                 :             : }
    1116                 :             : 
    1117                 :             : tree
    1118                 :          23 : generic_simplify_219 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1119                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    1120                 :             :  const enum tree_code ARG_UNUSED (cmp),
    1121                 :             :  const combined_fn ARG_UNUSED (bswap))
    1122                 :             : {
    1123                 :          23 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1124                 :          23 :   {
    1125                 :          23 :  tree ctype = TREE_TYPE (captures[1]);
    1126                 :          23 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail391;
    1127                 :          23 :       {
    1128                 :          23 :         tree res_op0;
    1129                 :          23 :         {
    1130                 :          23 :           tree _o1[1], _r1;
    1131                 :          23 :           _o1[0] = captures[0];
    1132                 :          23 :           if (TREE_TYPE (_o1[0]) != ctype)
    1133                 :             :             {
    1134                 :          19 :               _r1 = fold_build1_loc (loc, NOP_EXPR, ctype, _o1[0]);
    1135                 :             :             }
    1136                 :             :           else
    1137                 :             :             _r1 = _o1[0];
    1138                 :          23 :           res_op0 = _r1;
    1139                 :             :         }
    1140                 :          23 :         tree res_op1;
    1141                 :          23 :         {
    1142                 :          23 :           tree _o1[1], _r1;
    1143                 :          23 :           _o1[0] = captures[1];
    1144                 :          23 :           _r1 = maybe_build_call_expr_loc (loc, bswap, TREE_TYPE (_o1[0]), 1, _o1[0]);
    1145                 :          23 :           if (!_r1)
    1146                 :           0 :             goto next_after_fail391;
    1147                 :          23 :           if (EXPR_P (_r1))
    1148                 :          23 :             goto next_after_fail391;
    1149                 :           0 :           res_op1 = _r1;
    1150                 :             :         }
    1151                 :           0 :         tree _r;
    1152                 :           0 :         _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
    1153                 :           0 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 293, __FILE__, __LINE__, true);
    1154                 :             :         return _r;
    1155                 :             :       }
    1156                 :             : next_after_fail391:;
    1157                 :             :   }
    1158                 :             :   return NULL_TREE;
    1159                 :             : }
    1160                 :             : 
    1161                 :             : tree
    1162                 :          25 : generic_simplify_228 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1163                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    1164                 :             :  const enum tree_code ARG_UNUSED (cmp))
    1165                 :             : {
    1166                 :          25 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1167                 :          25 :   if (single_use (captures[1]) && single_use (captures[3])
    1168                 :             : )
    1169                 :             :     {
    1170                 :          25 :       {
    1171                 :          25 :  tree otype = TREE_TYPE (captures[0]);
    1172                 :          25 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail406;
    1173                 :          25 :           {
    1174                 :          25 :             tree res_op0;
    1175                 :          25 :             {
    1176                 :          25 :               tree _o1[1], _r1;
    1177                 :          25 :               _o1[0] = captures[4];
    1178                 :          25 :               if (TREE_TYPE (_o1[0]) != otype)
    1179                 :             :                 {
    1180                 :           0 :                   _r1 = fold_build1_loc (loc, NOP_EXPR, otype, _o1[0]);
    1181                 :             :                 }
    1182                 :             :               else
    1183                 :             :                 _r1 = _o1[0];
    1184                 :          25 :               res_op0 = _r1;
    1185                 :             :             }
    1186                 :          25 :             tree res_op1;
    1187                 :          25 :             {
    1188                 :          25 :               tree _o1[1], _r1;
    1189                 :          25 :               _o1[0] = captures[2];
    1190                 :          25 :               if (TREE_TYPE (_o1[0]) != otype)
    1191                 :             :                 {
    1192                 :           0 :                   _r1 = fold_build1_loc (loc, NOP_EXPR, otype, _o1[0]);
    1193                 :             :                 }
    1194                 :             :               else
    1195                 :             :                 _r1 = _o1[0];
    1196                 :          25 :               res_op1 = _r1;
    1197                 :             :             }
    1198                 :          25 :             tree _r;
    1199                 :          25 :             _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
    1200                 :          25 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 307, __FILE__, __LINE__, true);
    1201                 :          25 :             return _r;
    1202                 :             :           }
    1203                 :           0 : next_after_fail406:;
    1204                 :             :       }
    1205                 :             :     }
    1206                 :           0 :   return NULL_TREE;
    1207                 :             : }
    1208                 :             : 
    1209                 :             : tree
    1210                 :          22 : generic_simplify_234 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1211                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    1212                 :             :  const combined_fn ARG_UNUSED (sq),
    1213                 :             :  const enum tree_code ARG_UNUSED (cmp))
    1214                 :             : {
    1215                 :          22 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1216                 :          22 :   if (flag_unsafe_math_optimizations && ! flag_errno_math
    1217                 :             : )
    1218                 :             :     {
    1219                 :          20 :       if (REAL_VALUE_NEGATIVE (TREE_REAL_CST (captures[1]))
    1220                 :             : )
    1221                 :             :         {
    1222                 :           2 :           if (cmp == EQ_EXPR || cmp == LT_EXPR || cmp == LE_EXPR
    1223                 :             : )
    1224                 :             :             {
    1225                 :           1 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail426;
    1226                 :           1 :               {
    1227                 :           1 :                 tree _r;
    1228                 :           1 :                 _r =  constant_boolean_node (false, type);
    1229                 :           1 :                 if (TREE_SIDE_EFFECTS (captures[0]))
    1230                 :           0 :                   _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    1231                 :           1 :                 if (TREE_SIDE_EFFECTS (captures[1]))
    1232                 :           0 :                   _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1233                 :           1 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 326, __FILE__, __LINE__, true);
    1234                 :           1 :                 return _r;
    1235                 :             :               }
    1236                 :           0 : next_after_fail426:;
    1237                 :           0 :             }
    1238                 :             :           else
    1239                 :             :             {
    1240                 :           1 :               if (cmp == NE_EXPR || !HONOR_NANS (captures[0])
    1241                 :             : )
    1242                 :             :                 {
    1243                 :           1 :                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail427;
    1244                 :           1 :                   {
    1245                 :           1 :                     tree _r;
    1246                 :           1 :                     _r =  constant_boolean_node (true, type);
    1247                 :           1 :                     if (TREE_SIDE_EFFECTS (captures[0]))
    1248                 :           0 :                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    1249                 :           1 :                     if (TREE_SIDE_EFFECTS (captures[1]))
    1250                 :           0 :                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1251                 :           1 :                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 327, __FILE__, __LINE__, true);
    1252                 :           1 :                     return _r;
    1253                 :             :                   }
    1254                 :           0 : next_after_fail427:;
    1255                 :             :                 }
    1256                 :             :               else
    1257                 :             :                 {
    1258                 :           0 :                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail428;
    1259                 :           0 :                   {
    1260                 :           0 :                     tree res_op0;
    1261                 :           0 :                     res_op0 = captures[0];
    1262                 :           0 :                     tree res_op1;
    1263                 :           0 :                     res_op1 =  build_real (TREE_TYPE (captures[0]), dconst0);
    1264                 :           0 :                     tree _r;
    1265                 :           0 :                     _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
    1266                 :           0 :                     if (TREE_SIDE_EFFECTS (captures[1]))
    1267                 :           0 :                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1268                 :           0 :                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 328, __FILE__, __LINE__, true);
    1269                 :           0 :                     return _r;
    1270                 :             :                   }
    1271                 :           0 : next_after_fail428:;
    1272                 :             :                 }
    1273                 :             :             }
    1274                 :             :         }
    1275                 :             :       else
    1276                 :             :         {
    1277                 :          18 :           if (real_equal (TREE_REAL_CST_PTR (captures[1]), &dconst0)
    1278                 :             : )
    1279                 :             :             {
    1280                 :           0 :               if (cmp == LT_EXPR
    1281                 :             : )
    1282                 :             :                 {
    1283                 :           0 :                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail429;
    1284                 :           0 :                   {
    1285                 :           0 :                     tree _r;
    1286                 :           0 :                     _r =  constant_boolean_node (false, type);
    1287                 :           0 :                     if (TREE_SIDE_EFFECTS (captures[0]))
    1288                 :           0 :                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    1289                 :           0 :                     if (TREE_SIDE_EFFECTS (captures[1]))
    1290                 :           0 :                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1291                 :           0 :                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 329, __FILE__, __LINE__, true);
    1292                 :           0 :                     return _r;
    1293                 :             :                   }
    1294                 :           0 : next_after_fail429:;
    1295                 :             :                 }
    1296                 :             :               else
    1297                 :             :                 {
    1298                 :           0 :                   if (cmp == GE_EXPR && !HONOR_NANS (captures[0])
    1299                 :             : )
    1300                 :             :                     {
    1301                 :           0 :                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail430;
    1302                 :           0 :                       {
    1303                 :           0 :                         tree _r;
    1304                 :           0 :                         _r =  constant_boolean_node (true, type);
    1305                 :           0 :                         if (TREE_SIDE_EFFECTS (captures[0]))
    1306                 :           0 :                           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    1307                 :           0 :                         if (TREE_SIDE_EFFECTS (captures[1]))
    1308                 :           0 :                           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1309                 :           0 :                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 330, __FILE__, __LINE__, true);
    1310                 :           0 :                         return _r;
    1311                 :             :                       }
    1312                 :           0 : next_after_fail430:;
    1313                 :             :                     }
    1314                 :             :                   else
    1315                 :             :                     {
    1316                 :           0 :                       if (cmp == LE_EXPR
    1317                 :             : )
    1318                 :             :                         {
    1319                 :           0 :                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail431;
    1320                 :           0 :                           {
    1321                 :           0 :                             tree res_op0;
    1322                 :           0 :                             res_op0 = captures[0];
    1323                 :           0 :                             tree res_op1;
    1324                 :           0 :                             res_op1 = captures[1];
    1325                 :           0 :                             tree _r;
    1326                 :           0 :                             _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
    1327                 :           0 :                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 331, __FILE__, __LINE__, true);
    1328                 :           0 :                             return _r;
    1329                 :             :                           }
    1330                 :           0 : next_after_fail431:;
    1331                 :             :                         }
    1332                 :             :                       else
    1333                 :             :                         {
    1334                 :           0 :                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail432;
    1335                 :           0 :                           {
    1336                 :           0 :                             tree res_op0;
    1337                 :           0 :                             res_op0 = captures[0];
    1338                 :           0 :                             tree res_op1;
    1339                 :           0 :                             res_op1 = captures[1];
    1340                 :           0 :                             tree _r;
    1341                 :           0 :                             _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
    1342                 :           0 :                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 332, __FILE__, __LINE__, true);
    1343                 :           0 :                             return _r;
    1344                 :             :                           }
    1345                 :           0 : next_after_fail432:;
    1346                 :             :                         }
    1347                 :             :                     }
    1348                 :             :                 }
    1349                 :             :             }
    1350                 :             :           else
    1351                 :             :             {
    1352                 :          18 :               if ((cmp == LT_EXPR
    1353                 :             :  || cmp == LE_EXPR
    1354                 :             :  || cmp == GT_EXPR
    1355                 :          18 :  || cmp == GE_EXPR)
    1356                 :          16 :  && !REAL_VALUE_ISNAN (TREE_REAL_CST (captures[1]))
    1357                 :          34 :  && !HONOR_SIGN_DEPENDENT_ROUNDING (TREE_TYPE (captures[0]))
    1358                 :             : )
    1359                 :             :                 {
    1360                 :          16 :                   {
    1361                 :          16 :  REAL_VALUE_TYPE c2;
    1362                 :          16 :  enum tree_code ncmp = cmp;
    1363                 :          16 :  const real_format *fmt
    1364                 :          16 :  = REAL_MODE_FORMAT (TYPE_MODE (TREE_TYPE (captures[0])));
    1365                 :          32 :  real_arithmetic (&c2, MULT_EXPR,
    1366                 :          16 :  &TREE_REAL_CST (captures[1]), &TREE_REAL_CST (captures[1]));
    1367                 :          16 :  real_convert (&c2, fmt, &c2);
    1368                 :          16 :  if (!REAL_VALUE_ISINF (c2))
    1369                 :             :  {
    1370                 :          13 :  tree c3 = fold_const_call (CFN_SQRT, TREE_TYPE (captures[0]),
    1371                 :          13 :  build_real (TREE_TYPE (captures[0]), c2));
    1372                 :          13 :  if (c3 == NULL_TREE || TREE_CODE (c3) != REAL_CST)
    1373                 :             :  ncmp = ERROR_MARK;
    1374                 :          13 :  else if ((cmp == LT_EXPR || cmp == GE_EXPR)
    1375                 :          13 :  && real_less (&TREE_REAL_CST (c3), &TREE_REAL_CST (captures[1])))
    1376                 :           4 :  ncmp = cmp == LT_EXPR ? LE_EXPR : GT_EXPR;
    1377                 :           9 :  else if ((cmp == LE_EXPR || cmp == GT_EXPR)
    1378                 :          13 :  && real_less (&TREE_REAL_CST (captures[1]), &TREE_REAL_CST (c3)))
    1379                 :           1 :  ncmp = cmp == LE_EXPR ? LT_EXPR : GE_EXPR;
    1380                 :             :  else
    1381                 :             :  {
    1382                 :           8 :  REAL_VALUE_TYPE c2alt, tow;
    1383                 :           8 :  if (cmp == LT_EXPR || cmp == GE_EXPR)
    1384                 :           5 :  tow = dconst0;
    1385                 :             :  else
    1386                 :           3 :  tow = dconstinf;
    1387                 :           8 :  real_nextafter (&c2alt, fmt, &c2, &tow);
    1388                 :           8 :  real_convert (&c2alt, fmt, &c2alt);
    1389                 :           8 :  if (REAL_VALUE_ISINF (c2alt))
    1390                 :             :  ncmp = ERROR_MARK;
    1391                 :             :  else
    1392                 :             :  {
    1393                 :           8 :  c3 = fold_const_call (CFN_SQRT, TREE_TYPE (captures[0]),
    1394                 :           8 :  build_real (TREE_TYPE (captures[0]), c2alt));
    1395                 :           8 :  if (c3 == NULL_TREE || TREE_CODE (c3) != REAL_CST)
    1396                 :             :  ncmp = ERROR_MARK;
    1397                 :           8 :  else if (real_equal (&TREE_REAL_CST (c3),
    1398                 :           8 :  &TREE_REAL_CST (captures[1])))
    1399                 :           8 :  c2 = c2alt;
    1400                 :             :  }
    1401                 :             :  }
    1402                 :             :  }
    1403                 :          16 :                       if (cmp == GT_EXPR || cmp == GE_EXPR
    1404                 :             : )
    1405                 :             :                         {
    1406                 :           5 :                           if (REAL_VALUE_ISINF (c2)
    1407                 :             : )
    1408                 :             :                             {
    1409                 :           1 :                               if (HONOR_INFINITIES (captures[0])
    1410                 :             : )
    1411                 :             :                                 {
    1412                 :           0 :                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail433;
    1413                 :           0 :                                   {
    1414                 :           0 :                                     tree res_op0;
    1415                 :           0 :                                     res_op0 = captures[0];
    1416                 :           0 :                                     tree res_op1;
    1417                 :           0 :                                     res_op1 =  build_real (TREE_TYPE (captures[0]), c2);
    1418                 :           0 :                                     tree _r;
    1419                 :           0 :                                     _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
    1420                 :           0 :                                     if (TREE_SIDE_EFFECTS (captures[1]))
    1421                 :           0 :                                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1422                 :           0 :                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 333, __FILE__, __LINE__, true);
    1423                 :          14 :                                     return _r;
    1424                 :             :                                   }
    1425                 :           0 : next_after_fail433:;
    1426                 :             :                                 }
    1427                 :             :                               else
    1428                 :             :                                 {
    1429                 :           1 :                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail434;
    1430                 :           1 :                                   {
    1431                 :           1 :                                     tree _r;
    1432                 :           1 :                                     _r =  constant_boolean_node (false, type);
    1433                 :           1 :                                     if (TREE_SIDE_EFFECTS (captures[0]))
    1434                 :           0 :                                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    1435                 :           1 :                                     if (TREE_SIDE_EFFECTS (captures[1]))
    1436                 :           0 :                                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1437                 :           1 :                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 334, __FILE__, __LINE__, true);
    1438                 :           1 :                                     return _r;
    1439                 :             :                                   }
    1440                 :           0 : next_after_fail434:;
    1441                 :             :                                 }
    1442                 :             :                             }
    1443                 :             :                           else
    1444                 :             :                             {
    1445                 :           4 :                               if (ncmp != ERROR_MARK
    1446                 :             : )
    1447                 :             :                                 {
    1448                 :           4 :                                   if (ncmp == GE_EXPR
    1449                 :             : )
    1450                 :             :                                     {
    1451                 :           1 :                                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail435;
    1452                 :           1 :                                       {
    1453                 :           1 :                                         tree res_op0;
    1454                 :           1 :                                         res_op0 = captures[0];
    1455                 :           1 :                                         tree res_op1;
    1456                 :           1 :                                         res_op1 =  build_real (TREE_TYPE (captures[0]), c2);
    1457                 :           1 :                                         tree _r;
    1458                 :           1 :                                         _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
    1459                 :           1 :                                         if (TREE_SIDE_EFFECTS (captures[1]))
    1460                 :           0 :                                           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1461                 :           1 :                                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 335, __FILE__, __LINE__, true);
    1462                 :           1 :                                         return _r;
    1463                 :             :                                       }
    1464                 :           0 : next_after_fail435:;
    1465                 :             :                                     }
    1466                 :             :                                   else
    1467                 :             :                                     {
    1468                 :           3 :                                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail436;
    1469                 :           3 :                                       {
    1470                 :           3 :                                         tree res_op0;
    1471                 :           3 :                                         res_op0 = captures[0];
    1472                 :           3 :                                         tree res_op1;
    1473                 :           3 :                                         res_op1 =  build_real (TREE_TYPE (captures[0]), c2);
    1474                 :           3 :                                         tree _r;
    1475                 :           3 :                                         _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
    1476                 :           3 :                                         if (TREE_SIDE_EFFECTS (captures[1]))
    1477                 :           0 :                                           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1478                 :           3 :                                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 336, __FILE__, __LINE__, true);
    1479                 :           3 :                                         return _r;
    1480                 :             :                                       }
    1481                 :           0 : next_after_fail436:;
    1482                 :             :                                     }
    1483                 :             :                                 }
    1484                 :             :                             }
    1485                 :             :                         }
    1486                 :             :                       else
    1487                 :             :                         {
    1488                 :          11 :                           if (REAL_VALUE_ISINF (c2)
    1489                 :             : )
    1490                 :             :                             {
    1491                 :           2 :                               if (! HONOR_NANS (captures[0]) && ! HONOR_INFINITIES (captures[0])
    1492                 :             : )
    1493                 :             :                                 {
    1494                 :           1 :                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail437;
    1495                 :           1 :                                   {
    1496                 :           1 :                                     tree _r;
    1497                 :           1 :                                     _r =  constant_boolean_node (true, type);
    1498                 :           1 :                                     if (TREE_SIDE_EFFECTS (captures[0]))
    1499                 :           0 :                                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    1500                 :           1 :                                     if (TREE_SIDE_EFFECTS (captures[1]))
    1501                 :           0 :                                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1502                 :           1 :                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 337, __FILE__, __LINE__, true);
    1503                 :           1 :                                     return _r;
    1504                 :             :                                   }
    1505                 :           0 : next_after_fail437:;
    1506                 :             :                                 }
    1507                 :             :                               else
    1508                 :             :                                 {
    1509                 :           1 :                                   if (! HONOR_NANS (captures[0])
    1510                 :             : )
    1511                 :             :                                     {
    1512                 :           0 :                                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail438;
    1513                 :           0 :                                       {
    1514                 :           0 :                                         tree res_op0;
    1515                 :           0 :                                         res_op0 = captures[0];
    1516                 :           0 :                                         tree res_op1;
    1517                 :           0 :                                         res_op1 =  build_real (TREE_TYPE (captures[0]), c2);
    1518                 :           0 :                                         tree _r;
    1519                 :           0 :                                         _r = fold_build2_loc (loc, NE_EXPR, type, res_op0, res_op1);
    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 (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 338, __FILE__, __LINE__, true);
    1523                 :           0 :                                         return _r;
    1524                 :             :                                       }
    1525                 :           0 : next_after_fail438:;
    1526                 :             :                                     }
    1527                 :             :                                   else
    1528                 :             :                                     {
    1529                 :           1 :                                       if (! HONOR_INFINITIES (captures[0])
    1530                 :             : )
    1531                 :             :                                         {
    1532                 :           0 :                                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail439;
    1533                 :           0 :                                           {
    1534                 :           0 :                                             tree res_op0;
    1535                 :           0 :                                             res_op0 = captures[0];
    1536                 :           0 :                                             tree res_op1;
    1537                 :           0 :                                             res_op1 =  build_real (TREE_TYPE (captures[0]), dconst0);
    1538                 :           0 :                                             tree _r;
    1539                 :           0 :                                             _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
    1540                 :           0 :                                             if (TREE_SIDE_EFFECTS (captures[1]))
    1541                 :           0 :                                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1542                 :           0 :                                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 339, __FILE__, __LINE__, true);
    1543                 :           0 :                                             return _r;
    1544                 :             :                                           }
    1545                 :           0 : next_after_fail439:;
    1546                 :             :                                         }
    1547                 :             :                                       else
    1548                 :             :                                         {
    1549                 :           1 :                                           if (1
    1550                 :             : )
    1551                 :             :                                             {
    1552                 :           1 :                                               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail440;
    1553                 :           1 :                                               {
    1554                 :           1 :                                                 if (! tree_invariant_p (captures[0])) goto next_after_fail440;
    1555                 :           0 :                                                 tree res_op0;
    1556                 :           0 :                                                 {
    1557                 :           0 :                                                   tree _o1[2], _r1;
    1558                 :           0 :                                                   _o1[0] = unshare_expr (captures[0]);
    1559                 :           0 :                                                   _o1[1] =  build_real (TREE_TYPE (captures[0]), dconst0);
    1560                 :           0 :                                                   _r1 = fold_build2_loc (loc, GE_EXPR, type, _o1[0], _o1[1]);
    1561                 :           0 :                                                   res_op0 = _r1;
    1562                 :             :                                                 }
    1563                 :           0 :                                                 tree res_op1;
    1564                 :           0 :                                                 {
    1565                 :           0 :                                                   tree _o1[2], _r1;
    1566                 :           0 :                                                   _o1[0] = captures[0];
    1567                 :           0 :                                                   _o1[1] =  build_real (TREE_TYPE (captures[0]), c2);
    1568                 :           0 :                                                   _r1 = fold_build2_loc (loc, NE_EXPR, type, _o1[0], _o1[1]);
    1569                 :           0 :                                                   res_op1 = _r1;
    1570                 :             :                                                 }
    1571                 :           0 :                                                 tree _r;
    1572                 :           0 :                                                 _r = fold_build2_loc (loc, TRUTH_ANDIF_EXPR, type, res_op0, res_op1);
    1573                 :           0 :                                                 if (TREE_SIDE_EFFECTS (captures[1]))
    1574                 :           0 :                                                   _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1575                 :           0 :                                                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 340, __FILE__, __LINE__, true);
    1576                 :           0 :                                                 return _r;
    1577                 :             :                                               }
    1578                 :           2 : next_after_fail440:;
    1579                 :             :                                             }
    1580                 :             :                                         }
    1581                 :             :                                     }
    1582                 :             :                                 }
    1583                 :             :                             }
    1584                 :             :                           else
    1585                 :             :                             {
    1586                 :           9 :                               if (ncmp != ERROR_MARK && ! HONOR_NANS (captures[0])
    1587                 :             : )
    1588                 :             :                                 {
    1589                 :           8 :                                   if (ncmp == LT_EXPR
    1590                 :             : )
    1591                 :             :                                     {
    1592                 :           4 :                                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail441;
    1593                 :           4 :                                       {
    1594                 :           4 :                                         tree res_op0;
    1595                 :           4 :                                         res_op0 = captures[0];
    1596                 :           4 :                                         tree res_op1;
    1597                 :           4 :                                         res_op1 =  build_real (TREE_TYPE (captures[0]), c2);
    1598                 :           4 :                                         tree _r;
    1599                 :           4 :                                         _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
    1600                 :           4 :                                         if (TREE_SIDE_EFFECTS (captures[1]))
    1601                 :           0 :                                           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1602                 :           4 :                                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 341, __FILE__, __LINE__, true);
    1603                 :           4 :                                         return _r;
    1604                 :             :                                       }
    1605                 :           0 : next_after_fail441:;
    1606                 :             :                                     }
    1607                 :             :                                   else
    1608                 :             :                                     {
    1609                 :           4 :                                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail442;
    1610                 :           4 :                                       {
    1611                 :           4 :                                         tree res_op0;
    1612                 :           4 :                                         res_op0 = captures[0];
    1613                 :           4 :                                         tree res_op1;
    1614                 :           4 :                                         res_op1 =  build_real (TREE_TYPE (captures[0]), c2);
    1615                 :           4 :                                         tree _r;
    1616                 :           4 :                                         _r = fold_build2_loc (loc, LE_EXPR, type, res_op0, res_op1);
    1617                 :           4 :                                         if (TREE_SIDE_EFFECTS (captures[1]))
    1618                 :           0 :                                           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1619                 :           4 :                                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 342, __FILE__, __LINE__, true);
    1620                 :           4 :                                         return _r;
    1621                 :             :                                       }
    1622                 :           0 : next_after_fail442:;
    1623                 :             :                                     }
    1624                 :             :                                 }
    1625                 :             :                               else
    1626                 :             :                                 {
    1627                 :           1 :                                   if (ncmp != ERROR_MARK &&
    1628                 :             : 1
    1629                 :             : )
    1630                 :             :                                     {
    1631                 :           1 :                                       if (ncmp == LT_EXPR
    1632                 :             : )
    1633                 :             :                                         {
    1634                 :           1 :                                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail443;
    1635                 :           1 :                                           {
    1636                 :           1 :                                             if (! tree_invariant_p (captures[0])) goto next_after_fail443;
    1637                 :           0 :                                             tree res_op0;
    1638                 :           0 :                                             {
    1639                 :           0 :                                               tree _o1[2], _r1;
    1640                 :           0 :                                               _o1[0] = unshare_expr (captures[0]);
    1641                 :           0 :                                               _o1[1] =  build_real (TREE_TYPE (captures[0]), dconst0);
    1642                 :           0 :                                               _r1 = fold_build2_loc (loc, GE_EXPR, type, _o1[0], _o1[1]);
    1643                 :           0 :                                               res_op0 = _r1;
    1644                 :             :                                             }
    1645                 :           0 :                                             tree res_op1;
    1646                 :           0 :                                             {
    1647                 :           0 :                                               tree _o1[2], _r1;
    1648                 :           0 :                                               _o1[0] = captures[0];
    1649                 :           0 :                                               _o1[1] =  build_real (TREE_TYPE (captures[0]), c2);
    1650                 :           0 :                                               _r1 = fold_build2_loc (loc, LT_EXPR, type, _o1[0], _o1[1]);
    1651                 :           0 :                                               res_op1 = _r1;
    1652                 :             :                                             }
    1653                 :           0 :                                             tree _r;
    1654                 :           0 :                                             _r = fold_build2_loc (loc, TRUTH_ANDIF_EXPR, type, res_op0, res_op1);
    1655                 :           0 :                                             if (TREE_SIDE_EFFECTS (captures[1]))
    1656                 :           0 :                                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1657                 :           0 :                                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 343, __FILE__, __LINE__, true);
    1658                 :           0 :                                             return _r;
    1659                 :             :                                           }
    1660                 :           2 : next_after_fail443:;
    1661                 :             :                                         }
    1662                 :             :                                       else
    1663                 :             :                                         {
    1664                 :           0 :                                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail444;
    1665                 :           0 :                                           {
    1666                 :           0 :                                             if (! tree_invariant_p (captures[0])) goto next_after_fail444;
    1667                 :           0 :                                             tree res_op0;
    1668                 :           0 :                                             {
    1669                 :           0 :                                               tree _o1[2], _r1;
    1670                 :           0 :                                               _o1[0] = unshare_expr (captures[0]);
    1671                 :           0 :                                               _o1[1] =  build_real (TREE_TYPE (captures[0]), dconst0);
    1672                 :           0 :                                               _r1 = fold_build2_loc (loc, GE_EXPR, type, _o1[0], _o1[1]);
    1673                 :           0 :                                               res_op0 = _r1;
    1674                 :             :                                             }
    1675                 :           0 :                                             tree res_op1;
    1676                 :           0 :                                             {
    1677                 :           0 :                                               tree _o1[2], _r1;
    1678                 :           0 :                                               _o1[0] = captures[0];
    1679                 :           0 :                                               _o1[1] =  build_real (TREE_TYPE (captures[0]), c2);
    1680                 :           0 :                                               _r1 = fold_build2_loc (loc, LE_EXPR, type, _o1[0], _o1[1]);
    1681                 :           0 :                                               res_op1 = _r1;
    1682                 :             :                                             }
    1683                 :           0 :                                             tree _r;
    1684                 :           0 :                                             _r = fold_build2_loc (loc, TRUTH_ANDIF_EXPR, type, res_op0, res_op1);
    1685                 :           0 :                                             if (TREE_SIDE_EFFECTS (captures[1]))
    1686                 :           0 :                                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1687                 :           0 :                                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 344, __FILE__, __LINE__, true);
    1688                 :           0 :                                             return _r;
    1689                 :             :                                           }
    1690                 :           2 : next_after_fail444:;
    1691                 :             :                                         }
    1692                 :             :                                     }
    1693                 :             :                                 }
    1694                 :             :                             }
    1695                 :             :                         }
    1696                 :             :                   }
    1697                 :             :                 }
    1698                 :             :             }
    1699                 :             :         }
    1700                 :             :     }
    1701                 :             :   return NULL_TREE;
    1702                 :             : }
    1703                 :             : 
    1704                 :             : tree
    1705                 :       79157 : generic_simplify_315 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1706                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    1707                 :             :  const enum tree_code ARG_UNUSED (op))
    1708                 :             : {
    1709                 :       79157 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1710                 :      158314 :   if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
    1711                 :       79157 :  && TYPE_UNSIGNED (TREE_TYPE (captures[1]))
    1712                 :      158314 :  && wi::only_sign_bit_p (wi::to_wide (captures[1]))
    1713                 :             : )
    1714                 :             :     {
    1715                 :           5 :       {
    1716                 :           5 :  tree stype = signed_type_for (TREE_TYPE (captures[1]));
    1717                 :           5 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail582;
    1718                 :           5 :           {
    1719                 :           5 :             tree res_op0;
    1720                 :           5 :             {
    1721                 :           5 :               tree _o1[1], _r1;
    1722                 :           5 :               _o1[0] = captures[0];
    1723                 :           5 :               if (TREE_TYPE (_o1[0]) != stype)
    1724                 :             :                 {
    1725                 :           5 :                   _r1 = fold_build1_loc (loc, NOP_EXPR, stype, _o1[0]);
    1726                 :             :                 }
    1727                 :             :               else
    1728                 :             :                 _r1 = _o1[0];
    1729                 :           5 :               res_op0 = _r1;
    1730                 :             :             }
    1731                 :           5 :             tree res_op1;
    1732                 :           5 :             {
    1733                 :           5 :               tree _o1[1], _r1;
    1734                 :           5 :               _o1[0] = captures[2];
    1735                 :           5 :               if (TREE_TYPE (_o1[0]) != stype)
    1736                 :             :                 {
    1737                 :           5 :                   _r1 = fold_build1_loc (loc, NOP_EXPR, stype, _o1[0]);
    1738                 :             :                 }
    1739                 :             :               else
    1740                 :             :                 _r1 = _o1[0];
    1741                 :           5 :               res_op1 = _r1;
    1742                 :             :             }
    1743                 :           5 :             tree _r;
    1744                 :           5 :             _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
    1745                 :           5 :             if (TREE_SIDE_EFFECTS (captures[1]))
    1746                 :           0 :               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    1747                 :           5 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 463, __FILE__, __LINE__, true);
    1748                 :           5 :             return _r;
    1749                 :             :           }
    1750                 :           0 : next_after_fail582:;
    1751                 :             :       }
    1752                 :             :     }
    1753                 :             :   return NULL_TREE;
    1754                 :             : }
    1755                 :             : 
    1756                 :             : tree
    1757                 :    18137031 : generic_simplify_327 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    1758                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    1759                 :             :  const enum tree_code ARG_UNUSED (cmp))
    1760                 :             : {
    1761                 :    18137031 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    1762                 :    36268818 :   if ((INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
    1763                 :       10381 :  || POINTER_TYPE_P (TREE_TYPE (captures[2]))
    1764                 :        1800 :  || VECTOR_INTEGER_TYPE_P (TREE_TYPE (captures[2])))
    1765                 :    36268818 :  && tree_nop_conversion_p (TREE_TYPE (captures[0]), TREE_TYPE (captures[1]))
    1766                 :             : )
    1767                 :             :     {
    1768                 :    18137031 :       {
    1769                 :    18137031 :  tree cst = uniform_integer_cst_p (captures[2]);
    1770                 :    18137031 :  tree arg1_type = TREE_TYPE (cst);
    1771                 :    18137031 :  unsigned int prec = TYPE_PRECISION (arg1_type);
    1772                 :    18137031 :  wide_int max = wi::max_value (arg1_type);
    1773                 :    18137031 :  wide_int signed_max = wi::max_value (prec, SIGNED);
    1774                 :    18137031 :  wide_int min = wi::min_value (arg1_type);
    1775                 :    18137031 :           if (wi::to_wide (cst) == max
    1776                 :             : )
    1777                 :             :             {
    1778                 :      169291 :               if (cmp == GT_EXPR
    1779                 :             : )
    1780                 :             :                 {
    1781                 :      116706 :                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail612;
    1782                 :      116706 :                   {
    1783                 :      116706 :                     tree _r;
    1784                 :      116706 :                     _r =  constant_boolean_node (false, type);
    1785                 :      116706 :                     if (TREE_SIDE_EFFECTS (captures[0]))
    1786                 :          17 :                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    1787                 :      116706 :                     if (TREE_SIDE_EFFECTS (captures[2]))
    1788                 :           0 :                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    1789                 :      116706 :                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 477, __FILE__, __LINE__, true);
    1790                 :      116706 :                     return _r;
    1791                 :             :                   }
    1792                 :           0 : next_after_fail612:;
    1793                 :             :                 }
    1794                 :             :               else
    1795                 :             :                 {
    1796                 :       52585 :                   if (cmp == GE_EXPR
    1797                 :             : )
    1798                 :             :                     {
    1799                 :           7 :                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail613;
    1800                 :           7 :                       {
    1801                 :           7 :                         tree res_op0;
    1802                 :           7 :                         res_op0 = captures[0];
    1803                 :           7 :                         tree res_op1;
    1804                 :           7 :                         res_op1 = captures[2];
    1805                 :           7 :                         tree _r;
    1806                 :           7 :                         _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
    1807                 :           7 :                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 478, __FILE__, __LINE__, true);
    1808                 :           7 :                         return _r;
    1809                 :             :                       }
    1810                 :           0 : next_after_fail613:;
    1811                 :             :                     }
    1812                 :             :                   else
    1813                 :             :                     {
    1814                 :       52578 :                       if (cmp == LE_EXPR
    1815                 :             : )
    1816                 :             :                         {
    1817                 :       52568 :                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail614;
    1818                 :       52568 :                           {
    1819                 :       52568 :                             tree _r;
    1820                 :       52568 :                             _r =  constant_boolean_node (true, type);
    1821                 :       52568 :                             if (TREE_SIDE_EFFECTS (captures[0]))
    1822                 :          26 :                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    1823                 :       52568 :                             if (TREE_SIDE_EFFECTS (captures[2]))
    1824                 :           0 :                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    1825                 :       52568 :                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 479, __FILE__, __LINE__, true);
    1826                 :       52568 :                             return _r;
    1827                 :             :                           }
    1828                 :           0 : next_after_fail614:;
    1829                 :             :                         }
    1830                 :             :                       else
    1831                 :             :                         {
    1832                 :          10 :                           if (cmp == LT_EXPR
    1833                 :             : )
    1834                 :             :                             {
    1835                 :          10 :                               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail615;
    1836                 :          10 :                               {
    1837                 :          10 :                                 tree res_op0;
    1838                 :          10 :                                 res_op0 = captures[0];
    1839                 :          10 :                                 tree res_op1;
    1840                 :          10 :                                 res_op1 = captures[2];
    1841                 :          10 :                                 tree _r;
    1842                 :          10 :                                 _r = fold_build2_loc (loc, NE_EXPR, type, res_op0, res_op1);
    1843                 :          10 :                                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 480, __FILE__, __LINE__, true);
    1844                 :          10 :                                 return _r;
    1845                 :             :                               }
    1846                 :           0 : next_after_fail615:;
    1847                 :             :                             }
    1848                 :             :                         }
    1849                 :             :                     }
    1850                 :             :                 }
    1851                 :             :             }
    1852                 :             :           else
    1853                 :             :             {
    1854                 :    17967740 :               if (wi::to_wide (cst) == min
    1855                 :             : )
    1856                 :             :                 {
    1857                 :     1007980 :                   if (cmp == LT_EXPR
    1858                 :             : )
    1859                 :             :                     {
    1860                 :      384499 :                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail616;
    1861                 :      384499 :                       {
    1862                 :      384499 :                         tree _r;
    1863                 :      384499 :                         _r =  constant_boolean_node (false, type);
    1864                 :      384499 :                         if (TREE_SIDE_EFFECTS (captures[0]))
    1865                 :          43 :                           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    1866                 :      384499 :                         if (TREE_SIDE_EFFECTS (captures[2]))
    1867                 :           0 :                           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    1868                 :      384499 :                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 481, __FILE__, __LINE__, true);
    1869                 :      384499 :                         return _r;
    1870                 :             :                       }
    1871                 :           0 : next_after_fail616:;
    1872                 :             :                     }
    1873                 :             :                   else
    1874                 :             :                     {
    1875                 :      623481 :                       if (cmp == LE_EXPR
    1876                 :             : )
    1877                 :             :                         {
    1878                 :       65384 :                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail617;
    1879                 :       65384 :                           {
    1880                 :       65384 :                             tree res_op0;
    1881                 :       65384 :                             res_op0 = captures[0];
    1882                 :       65384 :                             tree res_op1;
    1883                 :       65384 :                             res_op1 = captures[2];
    1884                 :       65384 :                             tree _r;
    1885                 :       65384 :                             _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
    1886                 :       65384 :                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 482, __FILE__, __LINE__, true);
    1887                 :       65384 :                             return _r;
    1888                 :             :                           }
    1889                 :           0 : next_after_fail617:;
    1890                 :             :                         }
    1891                 :             :                       else
    1892                 :             :                         {
    1893                 :      558097 :                           if (cmp == GE_EXPR
    1894                 :             : )
    1895                 :             :                             {
    1896                 :      210509 :                               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail618;
    1897                 :      210509 :                               {
    1898                 :      210509 :                                 tree _r;
    1899                 :      210509 :                                 _r =  constant_boolean_node (true, type);
    1900                 :      210509 :                                 if (TREE_SIDE_EFFECTS (captures[0]))
    1901                 :          14 :                                   _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    1902                 :      210509 :                                 if (TREE_SIDE_EFFECTS (captures[2]))
    1903                 :           0 :                                   _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    1904                 :      210509 :                                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 483, __FILE__, __LINE__, true);
    1905                 :      210509 :                                 return _r;
    1906                 :             :                               }
    1907                 :           0 : next_after_fail618:;
    1908                 :             :                             }
    1909                 :             :                           else
    1910                 :             :                             {
    1911                 :      347588 :                               if (cmp == GT_EXPR
    1912                 :             : )
    1913                 :             :                                 {
    1914                 :      347588 :                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail619;
    1915                 :      347588 :                                   {
    1916                 :      347588 :                                     tree res_op0;
    1917                 :      347588 :                                     res_op0 = captures[0];
    1918                 :      347588 :                                     tree res_op1;
    1919                 :      347588 :                                     res_op1 = captures[2];
    1920                 :      347588 :                                     tree _r;
    1921                 :      347588 :                                     _r = fold_build2_loc (loc, NE_EXPR, type, res_op0, res_op1);
    1922                 :      347588 :                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 484, __FILE__, __LINE__, true);
    1923                 :      347588 :                                     return _r;
    1924                 :             :                                   }
    1925                 :           0 : next_after_fail619:;
    1926                 :             :                                 }
    1927                 :             :                             }
    1928                 :             :                         }
    1929                 :             :                     }
    1930                 :             :                 }
    1931                 :             :               else
    1932                 :             :                 {
    1933                 :    16959763 :                   if (wi::to_wide (cst) == max - 1
    1934                 :             : )
    1935                 :             :                     {
    1936                 :      320720 :                       if (cmp == GT_EXPR
    1937                 :             : )
    1938                 :             :                         {
    1939                 :      124568 :                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail620;
    1940                 :      124568 :                           {
    1941                 :      124568 :                             tree res_op0;
    1942                 :      124568 :                             res_op0 = captures[0];
    1943                 :      124568 :                             tree res_op1;
    1944                 :      124568 :                             res_op1 =  build_uniform_cst (TREE_TYPE (captures[2]),
    1945                 :      124568 :  wide_int_to_tree (TREE_TYPE (cst),
    1946                 :      124568 :  wi::to_wide (cst)
    1947                 :      249136 :  + 1));
    1948                 :      124568 :                             tree _r;
    1949                 :      124568 :                             _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
    1950                 :      124568 :                             if (TREE_SIDE_EFFECTS (captures[2]))
    1951                 :           0 :                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    1952                 :      124568 :                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 485, __FILE__, __LINE__, true);
    1953                 :      124568 :                             return _r;
    1954                 :             :                           }
    1955                 :           0 : next_after_fail620:;
    1956                 :             :                         }
    1957                 :             :                       else
    1958                 :             :                         {
    1959                 :      196152 :                           if (cmp == LE_EXPR
    1960                 :             : )
    1961                 :             :                             {
    1962                 :      196152 :                               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail621;
    1963                 :      196152 :                               {
    1964                 :      196152 :                                 tree res_op0;
    1965                 :      196152 :                                 res_op0 = captures[0];
    1966                 :      196152 :                                 tree res_op1;
    1967                 :      196152 :                                 res_op1 =  build_uniform_cst (TREE_TYPE (captures[2]),
    1968                 :      196152 :  wide_int_to_tree (TREE_TYPE (cst),
    1969                 :      196152 :  wi::to_wide (cst)
    1970                 :      392304 :  + 1));
    1971                 :      196152 :                                 tree _r;
    1972                 :      196152 :                                 _r = fold_build2_loc (loc, NE_EXPR, type, res_op0, res_op1);
    1973                 :      196152 :                                 if (TREE_SIDE_EFFECTS (captures[2]))
    1974                 :           0 :                                   _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    1975                 :      196152 :                                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 486, __FILE__, __LINE__, true);
    1976                 :      196152 :                                 return _r;
    1977                 :             :                               }
    1978                 :           0 : next_after_fail621:;
    1979                 :             :                             }
    1980                 :             :                         }
    1981                 :             :                     }
    1982                 :             :                   else
    1983                 :             :                     {
    1984                 :    16639043 :                       if (wi::to_wide (cst) == min + 1
    1985                 :             : )
    1986                 :             :                         {
    1987                 :      556871 :                           if (cmp == GE_EXPR
    1988                 :             : )
    1989                 :             :                             {
    1990                 :       39192 :                               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail622;
    1991                 :       39192 :                               {
    1992                 :       39192 :                                 tree res_op0;
    1993                 :       39192 :                                 res_op0 = captures[0];
    1994                 :       39192 :                                 tree res_op1;
    1995                 :       39192 :                                 res_op1 =  build_uniform_cst (TREE_TYPE (captures[2]),
    1996                 :       39192 :  wide_int_to_tree (TREE_TYPE (cst),
    1997                 :       39192 :  wi::to_wide (cst)
    1998                 :       78384 :  - 1));
    1999                 :       39192 :                                 tree _r;
    2000                 :       39192 :                                 _r = fold_build2_loc (loc, NE_EXPR, type, res_op0, res_op1);
    2001                 :       39192 :                                 if (TREE_SIDE_EFFECTS (captures[2]))
    2002                 :           0 :                                   _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    2003                 :       39192 :                                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 487, __FILE__, __LINE__, true);
    2004                 :       39192 :                                 return _r;
    2005                 :             :                               }
    2006                 :           0 : next_after_fail622:;
    2007                 :             :                             }
    2008                 :             :                           else
    2009                 :             :                             {
    2010                 :      517679 :                               if (cmp == LT_EXPR
    2011                 :             : )
    2012                 :             :                                 {
    2013                 :       23583 :                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail623;
    2014                 :       23583 :                                   {
    2015                 :       23583 :                                     tree res_op0;
    2016                 :       23583 :                                     res_op0 = captures[0];
    2017                 :       23583 :                                     tree res_op1;
    2018                 :       23583 :                                     res_op1 =  build_uniform_cst (TREE_TYPE (captures[2]),
    2019                 :       23583 :  wide_int_to_tree (TREE_TYPE (cst),
    2020                 :       23583 :  wi::to_wide (cst)
    2021                 :       47166 :  - 1));
    2022                 :       23583 :                                     tree _r;
    2023                 :       23583 :                                     _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
    2024                 :       23583 :                                     if (TREE_SIDE_EFFECTS (captures[2]))
    2025                 :           0 :                                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    2026                 :       23583 :                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 488, __FILE__, __LINE__, true);
    2027                 :       23583 :                                     return _r;
    2028                 :             :                                   }
    2029                 :           0 : next_after_fail623:;
    2030                 :             :                                 }
    2031                 :             :                             }
    2032                 :             :                         }
    2033                 :             :                       else
    2034                 :             :                         {
    2035                 :    16082169 :                           if (wi::to_wide (cst) == signed_max
    2036                 :      136681 :  && TYPE_UNSIGNED (arg1_type)
    2037                 :      136681 :  && TYPE_MODE (arg1_type) != BLKmode
    2038                 :    16082176 :  && prec == GET_MODE_PRECISION (SCALAR_INT_TYPE_MODE (arg1_type))
    2039                 :    16218601 :  && INTEGRAL_TYPE_P (arg1_type)
    2040                 :             : )
    2041                 :             :                             {
    2042                 :      136425 :                               if (cmp == LE_EXPR || cmp == GT_EXPR
    2043                 :             : )
    2044                 :             :                                 {
    2045                 :      136425 :                                   {
    2046                 :      136425 :  tree st = signed_type_for (TREE_TYPE (captures[2]));
    2047                 :      136425 :                                       if (cst == captures[2] && cmp == LE_EXPR
    2048                 :             : )
    2049                 :             :                                         {
    2050                 :       35775 :                                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail624;
    2051                 :       35775 :                                           {
    2052                 :       35775 :                                             tree res_op0;
    2053                 :       35775 :                                             {
    2054                 :       35775 :                                               tree _o1[1], _r1;
    2055                 :       35775 :                                               _o1[0] = captures[1];
    2056                 :       35775 :                                               if (TREE_TYPE (_o1[0]) != st)
    2057                 :             :                                                 {
    2058                 :       35775 :                                                   _r1 = fold_build1_loc (loc, NOP_EXPR, st, _o1[0]);
    2059                 :             :                                                 }
    2060                 :             :                                               else
    2061                 :             :                                                 _r1 = _o1[0];
    2062                 :       35775 :                                               res_op0 = _r1;
    2063                 :             :                                             }
    2064                 :       35775 :                                             tree res_op1;
    2065                 :       35775 :                                             res_op1 =  build_zero_cst (st);
    2066                 :       35775 :                                             tree _r;
    2067                 :       35775 :                                             _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
    2068                 :       35775 :                                             if (TREE_SIDE_EFFECTS (captures[2]))
    2069                 :           0 :                                               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    2070                 :       35775 :                                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 489, __FILE__, __LINE__, true);
    2071                 :       35775 :                                             return _r;
    2072                 :             :                                           }
    2073                 :           0 : next_after_fail624:;
    2074                 :           0 :                                         }
    2075                 :             :                                       else
    2076                 :             :                                         {
    2077                 :      100650 :                                           if (cst == captures[2] && cmp == GT_EXPR
    2078                 :             : )
    2079                 :             :                                             {
    2080                 :      100564 :                                               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail625;
    2081                 :      100564 :                                               {
    2082                 :      100564 :                                                 tree res_op0;
    2083                 :      100564 :                                                 {
    2084                 :      100564 :                                                   tree _o1[1], _r1;
    2085                 :      100564 :                                                   _o1[0] = captures[1];
    2086                 :      100564 :                                                   if (TREE_TYPE (_o1[0]) != st)
    2087                 :             :                                                     {
    2088                 :      100564 :                                                       _r1 = fold_build1_loc (loc, NOP_EXPR, st, _o1[0]);
    2089                 :             :                                                     }
    2090                 :             :                                                   else
    2091                 :             :                                                     _r1 = _o1[0];
    2092                 :      100564 :                                                   res_op0 = _r1;
    2093                 :             :                                                 }
    2094                 :      100564 :                                                 tree res_op1;
    2095                 :      100564 :                                                 res_op1 =  build_zero_cst (st);
    2096                 :      100564 :                                                 tree _r;
    2097                 :      100564 :                                                 _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
    2098                 :      100564 :                                                 if (TREE_SIDE_EFFECTS (captures[2]))
    2099                 :           0 :                                                   _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    2100                 :      100564 :                                                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 490, __FILE__, __LINE__, true);
    2101                 :      100564 :                                                 return _r;
    2102                 :             :                                               }
    2103                 :           0 : next_after_fail625:;
    2104                 :           0 :                                             }
    2105                 :             :                                           else
    2106                 :             :                                             {
    2107                 :          86 :                                               if (cmp == LE_EXPR
    2108                 :             : )
    2109                 :             :                                                 {
    2110                 :          30 :                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail626;
    2111                 :          30 :                                                   {
    2112                 :          30 :                                                     tree res_op0;
    2113                 :          30 :                                                     {
    2114                 :          30 :                                                       tree _o1[1], _r1;
    2115                 :          30 :                                                       _o1[0] = captures[1];
    2116                 :          30 :                                                       _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, st, _o1[0]);
    2117                 :          30 :                                                       res_op0 = _r1;
    2118                 :             :                                                     }
    2119                 :          30 :                                                     tree res_op1;
    2120                 :          30 :                                                     res_op1 =  build_zero_cst (st);
    2121                 :          30 :                                                     tree _r;
    2122                 :          30 :                                                     _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
    2123                 :          30 :                                                     if (TREE_SIDE_EFFECTS (captures[2]))
    2124                 :           0 :                                                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    2125                 :          30 :                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 491, __FILE__, __LINE__, true);
    2126                 :          30 :                                                     return _r;
    2127                 :             :                                                   }
    2128                 :           0 : next_after_fail626:;
    2129                 :             :                                                 }
    2130                 :             :                                               else
    2131                 :             :                                                 {
    2132                 :          56 :                                                   if (cmp == GT_EXPR
    2133                 :             : )
    2134                 :             :                                                     {
    2135                 :          56 :                                                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail627;
    2136                 :          56 :                                                       {
    2137                 :          56 :                                                         tree res_op0;
    2138                 :          56 :                                                         {
    2139                 :          56 :                                                           tree _o1[1], _r1;
    2140                 :          56 :                                                           _o1[0] = captures[1];
    2141                 :          56 :                                                           _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, st, _o1[0]);
    2142                 :          56 :                                                           res_op0 = _r1;
    2143                 :             :                                                         }
    2144                 :          56 :                                                         tree res_op1;
    2145                 :          56 :                                                         res_op1 =  build_zero_cst (st);
    2146                 :          56 :                                                         tree _r;
    2147                 :          56 :                                                         _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
    2148                 :          56 :                                                         if (TREE_SIDE_EFFECTS (captures[2]))
    2149                 :           0 :                                                           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    2150                 :          56 :                                                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 492, __FILE__, __LINE__, true);
    2151                 :          56 :                                                         return _r;
    2152                 :             :                                                       }
    2153                 :           0 : next_after_fail627:;
    2154                 :             :                                                     }
    2155                 :             :                                                 }
    2156                 :             :                                             }
    2157                 :             :                                         }
    2158                 :             :                                   }
    2159                 :             :                                 }
    2160                 :             :                             }
    2161                 :             :                         }
    2162                 :             :                     }
    2163                 :             :                 }
    2164                 :             :             }
    2165                 :    18137037 :       }
    2166                 :             :     }
    2167                 :             :   return NULL_TREE;
    2168                 :             : }
    2169                 :             : 
    2170                 :             : tree
    2171                 :          80 : generic_simplify_385 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2172                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    2173                 :             :  const enum tree_code ARG_UNUSED (bitop),
    2174                 :             :  const enum tree_code ARG_UNUSED (op))
    2175                 :             : {
    2176                 :          80 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2177                 :          80 :   {
    2178                 :          80 :  tree pmop[2];
    2179                 :          80 :  tree utype = fold_bit_and_mask (TREE_TYPE (captures[1]), captures[5], op, captures[1], bitop,
    2180                 :             :  captures[2], captures[3], captures[4], ERROR_MARK, NULL_TREE,
    2181                 :             :  NULL_TREE, pmop);
    2182                 :          80 :       if (utype
    2183                 :             : )
    2184                 :             :         {
    2185                 :          20 :           if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail715;
    2186                 :          20 :           if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail715;
    2187                 :          20 :           if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail715;
    2188                 :          20 :           if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail715;
    2189                 :          20 :           if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail715;
    2190                 :          20 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail715;
    2191                 :          20 :           {
    2192                 :          20 :             tree res_op0;
    2193                 :          20 :             {
    2194                 :          20 :               tree _o1[2], _r1;
    2195                 :          20 :               {
    2196                 :          20 :                 tree _o2[2], _r2;
    2197                 :          20 :                 {
    2198                 :          20 :                   tree _o3[1], _r3;
    2199                 :          20 :                   _o3[0] =  pmop[0];
    2200                 :          20 :                   if (TREE_TYPE (_o3[0]) != utype)
    2201                 :             :                     {
    2202                 :          10 :                       _r3 = fold_build1_loc (loc, NOP_EXPR, utype, _o3[0]);
    2203                 :             :                     }
    2204                 :             :                   else
    2205                 :             :                     _r3 = _o3[0];
    2206                 :          20 :                   _o2[0] = _r3;
    2207                 :             :                 }
    2208                 :          20 :                 {
    2209                 :          20 :                   tree _o3[1], _r3;
    2210                 :          20 :                   _o3[0] =  pmop[1];
    2211                 :          20 :                   if (TREE_TYPE (_o3[0]) != utype)
    2212                 :             :                     {
    2213                 :          10 :                       _r3 = fold_build1_loc (loc, NOP_EXPR, utype, _o3[0]);
    2214                 :             :                     }
    2215                 :             :                   else
    2216                 :             :                     _r3 = _o3[0];
    2217                 :          20 :                   _o2[1] = _r3;
    2218                 :             :                 }
    2219                 :          20 :                 _r2 = fold_build2_loc (loc, op, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
    2220                 :          20 :                 _o1[0] = _r2;
    2221                 :             :               }
    2222                 :          20 :               {
    2223                 :          20 :                 tree _o2[1], _r2;
    2224                 :          20 :                 _o2[0] = captures[5];
    2225                 :          20 :                 if (TREE_TYPE (_o2[0]) != utype)
    2226                 :             :                   {
    2227                 :          10 :                     _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
    2228                 :             :                   }
    2229                 :             :                 else
    2230                 :             :                   _r2 = _o2[0];
    2231                 :          20 :                 _o1[1] = _r2;
    2232                 :             :               }
    2233                 :          20 :               _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    2234                 :          20 :               res_op0 = _r1;
    2235                 :             :             }
    2236                 :          20 :             tree _r;
    2237                 :          20 :             _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
    2238                 :          20 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 560, __FILE__, __LINE__, true);
    2239                 :          20 :             return _r;
    2240                 :             :           }
    2241                 :          60 : next_after_fail715:;
    2242                 :             :         }
    2243                 :             :   }
    2244                 :          60 :   return NULL_TREE;
    2245                 :             : }
    2246                 :             : 
    2247                 :             : tree
    2248                 :         234 : generic_simplify_400 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2249                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    2250                 :             :  const combined_fn ARG_UNUSED (bswap))
    2251                 :             : {
    2252                 :         234 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2253                 :         234 :   if (BITS_PER_UNIT == 8
    2254                 :         234 :  && tree_fits_uhwi_p (captures[3])
    2255                 :         234 :  && tree_fits_uhwi_p (captures[4])
    2256                 :             : )
    2257                 :             :     {
    2258                 :         234 :       {
    2259                 :         234 :  unsigned HOST_WIDE_INT prec = TYPE_PRECISION (TREE_TYPE (captures[1]));
    2260                 :         234 :  unsigned HOST_WIDE_INT bits = tree_to_uhwi (captures[3]);
    2261                 :         234 :  unsigned HOST_WIDE_INT mask = tree_to_uhwi (captures[4]);
    2262                 :         234 :  unsigned HOST_WIDE_INT lo = bits & 7;
    2263                 :         234 :  unsigned HOST_WIDE_INT hi = bits - lo;
    2264                 :         234 :           if (bits < prec
    2265                 :         234 :  && mask < (256u>>lo)
    2266                 :         468 :  && bits < TYPE_PRECISION (TREE_TYPE(captures[0]))
    2267                 :             : )
    2268                 :             :             {
    2269                 :         234 :               {
    2270                 :         234 :  unsigned HOST_WIDE_INT ns = (prec - (hi + 8)) + lo;
    2271                 :         234 :                   if (ns == 0
    2272                 :             : )
    2273                 :             :                     {
    2274                 :           1 :                       if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail734;
    2275                 :           1 :                       if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail734;
    2276                 :           1 :                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail734;
    2277                 :           1 :                       {
    2278                 :           1 :                         tree res_op0;
    2279                 :           1 :                         {
    2280                 :           1 :                           tree _o1[1], _r1;
    2281                 :           1 :                           _o1[0] = captures[2];
    2282                 :           1 :                           if (TREE_TYPE (_o1[0]) != type)
    2283                 :             :                             {
    2284                 :           1 :                               _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
    2285                 :             :                             }
    2286                 :             :                           else
    2287                 :             :                             _r1 = _o1[0];
    2288                 :           1 :                           res_op0 = _r1;
    2289                 :             :                         }
    2290                 :           1 :                         tree res_op1;
    2291                 :           1 :                         res_op1 = captures[4];
    2292                 :           1 :                         tree _r;
    2293                 :           1 :                         _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
    2294                 :           1 :                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 575, __FILE__, __LINE__, true);
    2295                 :           1 :                         return _r;
    2296                 :             :                       }
    2297                 :             : next_after_fail734:;
    2298                 :             :                     }
    2299                 :             :                   else
    2300                 :             :                     {
    2301                 :         233 :                       {
    2302                 :         233 :  tree utype = unsigned_type_for (TREE_TYPE (captures[2]));
    2303                 :         233 :  tree nst = build_int_cst (integer_type_node, ns);
    2304                 :         233 :                           if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail735;
    2305                 :         233 :                           if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail735;
    2306                 :         233 :                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail735;
    2307                 :         233 :                           {
    2308                 :         233 :                             tree res_op0;
    2309                 :         233 :                             {
    2310                 :         233 :                               tree _o1[1], _r1;
    2311                 :         233 :                               {
    2312                 :         233 :                                 tree _o2[2], _r2;
    2313                 :         233 :                                 {
    2314                 :         233 :                                   tree _o3[1], _r3;
    2315                 :         233 :                                   _o3[0] = captures[2];
    2316                 :         233 :                                   if (TREE_TYPE (_o3[0]) != utype)
    2317                 :             :                                     {
    2318                 :          11 :                                       _r3 = fold_build1_loc (loc, NOP_EXPR, utype, _o3[0]);
    2319                 :             :                                     }
    2320                 :             :                                   else
    2321                 :             :                                     _r3 = _o3[0];
    2322                 :         233 :                                   _o2[0] = _r3;
    2323                 :             :                                 }
    2324                 :         233 :                                 _o2[1] = nst;
    2325                 :         233 :                                 _r2 = fold_build2_loc (loc, RSHIFT_EXPR, utype, _o2[0], _o2[1]);
    2326                 :         233 :                                 _o1[0] = _r2;
    2327                 :             :                               }
    2328                 :         233 :                               if (TREE_TYPE (_o1[0]) != type)
    2329                 :             :                                 {
    2330                 :         101 :                                   _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
    2331                 :             :                                 }
    2332                 :             :                               else
    2333                 :             :                                 _r1 = _o1[0];
    2334                 :         233 :                               res_op0 = _r1;
    2335                 :             :                             }
    2336                 :         233 :                             tree res_op1;
    2337                 :         233 :                             res_op1 = captures[4];
    2338                 :         233 :                             tree _r;
    2339                 :         233 :                             _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
    2340                 :         233 :                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 576, __FILE__, __LINE__, true);
    2341                 :         233 :                             return _r;
    2342                 :             :                           }
    2343                 :             : next_after_fail735:;
    2344                 :             :                       }
    2345                 :             :                     }
    2346                 :             :               }
    2347                 :             :             }
    2348                 :             :       }
    2349                 :             :     }
    2350                 :             :   return NULL_TREE;
    2351                 :             : }
    2352                 :             : 
    2353                 :             : tree
    2354                 :           0 : generic_simplify_415 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2355                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
    2356                 :             : {
    2357                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2358                 :           0 :   if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail784;
    2359                 :           0 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail784;
    2360                 :           0 :   {
    2361                 :           0 :     tree _r;
    2362                 :           0 :     _r = captures[2];
    2363                 :           0 :     if (TREE_SIDE_EFFECTS (captures[1]))
    2364                 :           0 :       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    2365                 :           0 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 597, __FILE__, __LINE__, true);
    2366                 :             :     return _r;
    2367                 :             :   }
    2368                 :             : next_after_fail784:;
    2369                 :             :   return NULL_TREE;
    2370                 :             : }
    2371                 :             : 
    2372                 :             : tree
    2373                 :       71825 : generic_simplify_418 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2374                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    2375                 :             :  const enum tree_code ARG_UNUSED (shift))
    2376                 :             : {
    2377                 :       71825 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2378                 :       71825 :   if (tree_nop_conversion_p (TREE_TYPE (captures[0]), TREE_TYPE (captures[1]))
    2379                 :       71825 :  && TYPE_PRECISION (type) <= HOST_BITS_PER_WIDE_INT
    2380                 :       71820 :  && tree_fits_uhwi_p (captures[4])
    2381                 :       71771 :  && tree_to_uhwi (captures[4]) > 0
    2382                 :      143595 :  && tree_to_uhwi (captures[4]) < TYPE_PRECISION (type)
    2383                 :             : )
    2384                 :             :     {
    2385                 :       71770 :       {
    2386                 :       71770 :  unsigned int shiftc = tree_to_uhwi (captures[4]);
    2387                 :       71770 :  unsigned HOST_WIDE_INT mask = TREE_INT_CST_LOW (captures[5]);
    2388                 :       71770 :  unsigned HOST_WIDE_INT newmask, zerobits = 0;
    2389                 :       71770 :  tree shift_type = TREE_TYPE (captures[2]);
    2390                 :       71770 :  unsigned int prec;
    2391                 :       71770 :  if (shift == LSHIFT_EXPR)
    2392                 :       25411 :  zerobits = ((HOST_WIDE_INT_1U << shiftc) - 1);
    2393                 :       46359 :  else if (shift == RSHIFT_EXPR
    2394                 :       46359 :  && type_has_mode_precision_p (shift_type))
    2395                 :             :  {
    2396                 :       46359 :  prec = TYPE_PRECISION (TREE_TYPE (captures[2]));
    2397                 :       46359 :  tree arg00 = captures[3];
    2398                 :       46359 :  if (captures[2] != captures[3]
    2399                 :       46359 :  && TYPE_UNSIGNED (TREE_TYPE (captures[3])))
    2400                 :             :  {
    2401                 :           0 :  tree inner_type = TREE_TYPE (captures[3]);
    2402                 :           0 :  if (type_has_mode_precision_p (inner_type)
    2403                 :           0 :  && TYPE_PRECISION (inner_type) < prec)
    2404                 :             :  {
    2405                 :           0 :  prec = TYPE_PRECISION (inner_type);
    2406                 :           0 :  if (shiftc < prec)
    2407                 :           0 :  shift_type = inner_type;
    2408                 :             :  }
    2409                 :             :  }
    2410                 :       46359 :  zerobits = HOST_WIDE_INT_M1U;
    2411                 :       46359 :  if (shiftc < prec)
    2412                 :             :  {
    2413                 :       46359 :  zerobits >>= HOST_BITS_PER_WIDE_INT - shiftc;
    2414                 :       46359 :  zerobits <<= prec - shiftc;
    2415                 :             :  }
    2416                 :       46359 :  if (!TYPE_UNSIGNED (TREE_TYPE (captures[2]))
    2417                 :       46359 :  && prec == TYPE_PRECISION (TREE_TYPE (captures[2])))
    2418                 :             :  {
    2419                 :        2717 :  if ((mask & zerobits) == 0)
    2420                 :        2706 :  shift_type = unsigned_type_for (TREE_TYPE (captures[2]));
    2421                 :             :  else
    2422                 :             :  zerobits = 0;
    2423                 :             :  }
    2424                 :             :  }
    2425                 :       71770 :           if ((mask & zerobits) == mask
    2426                 :             : )
    2427                 :             :             {
    2428                 :           3 :               if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail789;
    2429                 :           3 :               if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail789;
    2430                 :           3 :               if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail789;
    2431                 :           3 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail789;
    2432                 :           3 :               {
    2433                 :           3 :                 tree _r;
    2434                 :           3 :                 _r =  build_int_cst (type, 0);
    2435                 :           3 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 572, __FILE__, __LINE__, true);
    2436                 :           3 :                 return _r;
    2437                 :             :               }
    2438                 :             : next_after_fail789:;
    2439                 :             :             }
    2440                 :             :           else
    2441                 :             :             {
    2442                 :       71767 :               {
    2443                 :       71767 :  newmask = mask | zerobits;
    2444                 :       71767 :                   if (newmask != mask && (newmask & (newmask + 1)) == 0
    2445                 :             : )
    2446                 :             :                     {
    2447                 :             :                       {
    2448                 :       18256 :  for (prec = BITS_PER_UNIT;
    2449                 :       33103 :  prec < HOST_BITS_PER_WIDE_INT; prec <<= 1)
    2450                 :       30785 :  if (newmask == (HOST_WIDE_INT_1U << prec) - 1)
    2451                 :             :  break;
    2452                 :       14847 :                           if (prec < HOST_BITS_PER_WIDE_INT
    2453                 :        2318 :  || newmask == HOST_WIDE_INT_M1U
    2454                 :             : )
    2455                 :             :                             {
    2456                 :       12683 :                               {
    2457                 :       12683 :  tree newmaskt = build_int_cst_type (TREE_TYPE (captures[5]), newmask);
    2458                 :       12683 :                                   if (!tree_int_cst_equal (newmaskt, captures[5])
    2459                 :             : )
    2460                 :             :                                     {
    2461                 :       12683 :                                       if (shift_type != TREE_TYPE (captures[2])
    2462                 :             : )
    2463                 :             :                                         {
    2464                 :          84 :                                           if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail790;
    2465                 :          84 :                                           if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail790;
    2466                 :          84 :                                           if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail790;
    2467                 :          84 :                                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail790;
    2468                 :          84 :                                           {
    2469                 :          84 :                                             tree res_op0;
    2470                 :          84 :                                             {
    2471                 :          84 :                                               tree _o1[1], _r1;
    2472                 :          84 :                                               {
    2473                 :          84 :                                                 tree _o2[2], _r2;
    2474                 :          84 :                                                 {
    2475                 :          84 :                                                   tree _o3[1], _r3;
    2476                 :          84 :                                                   _o3[0] = captures[2];
    2477                 :          84 :                                                   if (TREE_TYPE (_o3[0]) != shift_type)
    2478                 :             :                                                     {
    2479                 :          84 :                                                       _r3 = fold_build1_loc (loc, NOP_EXPR, shift_type, _o3[0]);
    2480                 :             :                                                     }
    2481                 :             :                                                   else
    2482                 :             :                                                     _r3 = _o3[0];
    2483                 :          84 :                                                   _o2[0] = _r3;
    2484                 :             :                                                 }
    2485                 :          84 :                                                 _o2[1] = captures[4];
    2486                 :          84 :                                                 _r2 = fold_build2_loc (loc, shift, shift_type, _o2[0], _o2[1]);
    2487                 :          84 :                                                 _o1[0] = _r2;
    2488                 :             :                                               }
    2489                 :          84 :                                               if (TREE_TYPE (_o1[0]) != type)
    2490                 :             :                                                 {
    2491                 :          84 :                                                   _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
    2492                 :             :                                                 }
    2493                 :             :                                               else
    2494                 :             :                                                 _r1 = _o1[0];
    2495                 :          84 :                                               res_op0 = _r1;
    2496                 :             :                                             }
    2497                 :          84 :                                             tree res_op1;
    2498                 :          84 :                                             res_op1 =  newmaskt;
    2499                 :          84 :                                             tree _r;
    2500                 :          84 :                                             _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
    2501                 :          84 :                                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 573, __FILE__, __LINE__, true);
    2502                 :          84 :                                             return _r;
    2503                 :             :                                           }
    2504                 :             : next_after_fail790:;
    2505                 :             :                                         }
    2506                 :             :                                       else
    2507                 :             :                                         {
    2508                 :       12599 :                                           if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail791;
    2509                 :       11735 :                                           if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail791;
    2510                 :       11735 :                                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail791;
    2511                 :       11735 :                                           {
    2512                 :       11735 :                                             tree res_op0;
    2513                 :       11735 :                                             res_op0 = captures[0];
    2514                 :       11735 :                                             tree res_op1;
    2515                 :       11735 :                                             res_op1 =  newmaskt;
    2516                 :       11735 :                                             tree _r;
    2517                 :       11735 :                                             _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
    2518                 :       11735 :                                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 574, __FILE__, __LINE__, true);
    2519                 :       11735 :                                             return _r;
    2520                 :             :                                           }
    2521                 :             : next_after_fail791:;
    2522                 :             :                                         }
    2523                 :             :                                     }
    2524                 :             :                               }
    2525                 :             :                             }
    2526                 :             :                       }
    2527                 :             :                     }
    2528                 :             :               }
    2529                 :             :             }
    2530                 :             :       }
    2531                 :             :     }
    2532                 :             :   return NULL_TREE;
    2533                 :             : }
    2534                 :             : 
    2535                 :             : tree
    2536                 :        3807 : generic_simplify_441 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2537                 :             :  tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures))
    2538                 :             : {
    2539                 :        3807 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2540                 :        3807 :   if (!TYPE_SATURATING (type)
    2541                 :             : )
    2542                 :             :     {
    2543                 :        3772 :       if (!TYPE_OVERFLOW_SANITIZED (type)
    2544                 :        7564 :  && !TYPE_OVERFLOW_SANITIZED (TREE_TYPE (captures[0]))
    2545                 :             : )
    2546                 :             :         {
    2547                 :        3792 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail817;
    2548                 :        3792 :           {
    2549                 :        3792 :             tree res_op0;
    2550                 :        3792 :             res_op0 = captures[0];
    2551                 :        3792 :             tree _r;
    2552                 :        3792 :             _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
    2553                 :        3792 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 621, __FILE__, __LINE__, true);
    2554                 :        3792 :             return _r;
    2555                 :             :           }
    2556                 :           0 : next_after_fail817:;
    2557                 :             :         }
    2558                 :             :     }
    2559                 :             :   return NULL_TREE;
    2560                 :             : }
    2561                 :             : 
    2562                 :             : tree
    2563                 :           0 : generic_simplify_450 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2564                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    2565                 :             :  const enum tree_code ARG_UNUSED (minmax),
    2566                 :             :  const enum tree_code ARG_UNUSED (cmp))
    2567                 :             : {
    2568                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2569                 :           0 :   {
    2570                 :           0 :  poly_int64 off0, off1;
    2571                 :           0 :  tree base0, base1;
    2572                 :           0 :  int equal = address_compare (cmp, TREE_TYPE (captures[0]), captures[1], captures[3], base0, base1,
    2573                 :             :  off0, off1,
    2574                 :             : 1
    2575                 :             : );
    2576                 :           0 :       if (equal == 1
    2577                 :             : )
    2578                 :             :         {
    2579                 :           0 :           if (minmax == MIN_EXPR
    2580                 :             : )
    2581                 :             :             {
    2582                 :           0 :               if (known_le (off0, off1)
    2583                 :             : )
    2584                 :             :                 {
    2585                 :           0 :                   if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail832;
    2586                 :           0 :                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail832;
    2587                 :           0 :                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail832;
    2588                 :           0 :                   {
    2589                 :           0 :                     tree _r;
    2590                 :           0 :                     _r = captures[0];
    2591                 :           0 :                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 627, __FILE__, __LINE__, true);
    2592                 :           0 :                     return _r;
    2593                 :             :                   }
    2594                 :           0 : next_after_fail832:;
    2595                 :             :                 }
    2596                 :             :               else
    2597                 :             :                 {
    2598                 :           0 :                   if (known_gt (off0, off1)
    2599                 :             : )
    2600                 :             :                     {
    2601                 :           0 :                       if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail833;
    2602                 :           0 :                       if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail833;
    2603                 :           0 :                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail833;
    2604                 :           0 :                       {
    2605                 :           0 :                         tree _r;
    2606                 :           0 :                         _r = captures[2];
    2607                 :           0 :                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 628, __FILE__, __LINE__, true);
    2608                 :           0 :                         return _r;
    2609                 :             :                       }
    2610                 :           0 : next_after_fail833:;
    2611                 :             :                     }
    2612                 :             :                 }
    2613                 :             :             }
    2614                 :             :           else
    2615                 :             :             {
    2616                 :           0 :               if (known_ge (off0, off1)
    2617                 :             : )
    2618                 :             :                 {
    2619                 :           0 :                   if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail834;
    2620                 :           0 :                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail834;
    2621                 :           0 :                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail834;
    2622                 :           0 :                   {
    2623                 :           0 :                     tree _r;
    2624                 :           0 :                     _r = captures[0];
    2625                 :           0 :                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 629, __FILE__, __LINE__, true);
    2626                 :           0 :                     return _r;
    2627                 :             :                   }
    2628                 :           0 : next_after_fail834:;
    2629                 :             :                 }
    2630                 :             :               else
    2631                 :             :                 {
    2632                 :           0 :                   if (known_lt (off0, off1)
    2633                 :             : )
    2634                 :             :                     {
    2635                 :           0 :                       if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail835;
    2636                 :           0 :                       if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail835;
    2637                 :           0 :                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail835;
    2638                 :           0 :                       {
    2639                 :           0 :                         tree _r;
    2640                 :           0 :                         _r = captures[2];
    2641                 :           0 :                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 630, __FILE__, __LINE__, true);
    2642                 :           0 :                         return _r;
    2643                 :             :                       }
    2644                 :           0 : next_after_fail835:;
    2645                 :             :                     }
    2646                 :             :                 }
    2647                 :             :             }
    2648                 :             :         }
    2649                 :             :   }
    2650                 :           0 :   return NULL_TREE;
    2651                 :             : }
    2652                 :             : 
    2653                 :             : tree
    2654                 :           0 : generic_simplify_468 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2655                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
    2656                 :             :  const enum tree_code ARG_UNUSED (op))
    2657                 :             : {
    2658                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2659                 :           0 :   if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail861;
    2660                 :           0 :   if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail861;
    2661                 :           0 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail861;
    2662                 :           0 :   {
    2663                 :           0 :     tree _r;
    2664                 :           0 :     _r = captures[2];
    2665                 :           0 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 652, __FILE__, __LINE__, true);
    2666                 :             :     return _r;
    2667                 :             :   }
    2668                 :             : next_after_fail861:;
    2669                 :             :   return NULL_TREE;
    2670                 :             : }
    2671                 :             : 
    2672                 :             : tree
    2673                 :           0 : generic_simplify_473 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2674                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
    2675                 :             :  const enum tree_code ARG_UNUSED (op))
    2676                 :             : {
    2677                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2678                 :           0 :   if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail866;
    2679                 :           0 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail866;
    2680                 :           0 :   {
    2681                 :           0 :     tree _r;
    2682                 :           0 :     _r = captures[2];
    2683                 :           0 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 657, __FILE__, __LINE__, true);
    2684                 :             :     return _r;
    2685                 :             :   }
    2686                 :             : next_after_fail866:;
    2687                 :             :   return NULL_TREE;
    2688                 :             : }
    2689                 :             : 
    2690                 :             : tree
    2691                 :           0 : generic_simplify_478 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2692                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
    2693                 :             :  const combined_fn ARG_UNUSED (func))
    2694                 :             : {
    2695                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2696                 :           0 :   if (wi::to_widest (captures[4]) == TYPE_PRECISION (TREE_TYPE (captures[3])) - 1
    2697                 :             : )
    2698                 :             :     {
    2699                 :           0 :       if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail872;
    2700                 :           0 :       if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail872;
    2701                 :           0 :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail872;
    2702                 :           0 :       {
    2703                 :           0 :         tree _r;
    2704                 :           0 :         _r = captures[2];
    2705                 :           0 :         if (TREE_SIDE_EFFECTS (captures[1]))
    2706                 :           0 :           _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    2707                 :           0 :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 663, __FILE__, __LINE__, true);
    2708                 :           0 :         return _r;
    2709                 :             :       }
    2710                 :             : next_after_fail872:;
    2711                 :             :     }
    2712                 :             :   return NULL_TREE;
    2713                 :             : }
    2714                 :             : 
    2715                 :             : tree
    2716                 :           0 : generic_simplify_487 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2717                 :             :  tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
    2718                 :             :  const enum tree_code ARG_UNUSED (bitop),
    2719                 :             :  const combined_fn ARG_UNUSED (bswap))
    2720                 :             : {
    2721                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2722                 :           0 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail885;
    2723                 :           0 :   {
    2724                 :           0 :     tree res_op0;
    2725                 :           0 :     res_op0 = captures[0];
    2726                 :           0 :     tree res_op1;
    2727                 :           0 :     {
    2728                 :           0 :       tree _o1[1], _r1;
    2729                 :           0 :       _o1[0] = captures[1];
    2730                 :           0 :       _r1 = maybe_build_call_expr_loc (loc, bswap, TREE_TYPE (_o1[0]), 1, _o1[0]);
    2731                 :           0 :       if (!_r1)
    2732                 :           0 :         goto next_after_fail885;
    2733                 :           0 :       res_op1 = _r1;
    2734                 :             :     }
    2735                 :           0 :     tree _r;
    2736                 :           0 :     _r = fold_build2_loc (loc, bitop, type, res_op0, res_op1);
    2737                 :           0 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 675, __FILE__, __LINE__, true);
    2738                 :             :     return _r;
    2739                 :             :   }
    2740                 :             : next_after_fail885:;
    2741                 :             :   return NULL_TREE;
    2742                 :             : }
    2743                 :             : 
    2744                 :             : tree
    2745                 :           0 : generic_simplify_494 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2746                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
    2747                 :             :  const combined_fn ARG_UNUSED (cond_op))
    2748                 :             : {
    2749                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2750                 :           0 :   {
    2751                 :           0 :  tree op_type = TREE_TYPE (captures[5]);
    2752                 :           0 :       if (inverse_conditions_p (captures[0], captures[2])
    2753                 :           0 :  && element_precision (type) == element_precision (op_type)
    2754                 :             : )
    2755                 :             :         {
    2756                 :           0 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail892;
    2757                 :           0 :           {
    2758                 :           0 :             tree res_op0;
    2759                 :           0 :             {
    2760                 :           0 :               tree _o1[4], _r1;
    2761                 :           0 :               _o1[0] = captures[2];
    2762                 :           0 :               _o1[1] = captures[3];
    2763                 :           0 :               _o1[2] = captures[4];
    2764                 :           0 :               {
    2765                 :           0 :                 tree _o2[1], _r2;
    2766                 :           0 :                 _o2[0] = captures[1];
    2767                 :           0 :                 _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, op_type, _o2[0]);
    2768                 :           0 :                 _o1[3] = _r2;
    2769                 :             :               }
    2770                 :           0 :               _r1 = maybe_build_call_expr_loc (loc, cond_op, TREE_TYPE (_o1[1]), 4, _o1[0], _o1[1], _o1[2], _o1[3]);
    2771                 :           0 :               if (!_r1)
    2772                 :           0 :                 goto next_after_fail892;
    2773                 :           0 :               res_op0 = _r1;
    2774                 :             :             }
    2775                 :           0 :             tree _r;
    2776                 :           0 :             _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
    2777                 :           0 :             if (TREE_SIDE_EFFECTS (captures[0]))
    2778                 :           0 :               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    2779                 :           0 :             if (TREE_SIDE_EFFECTS (captures[5]))
    2780                 :           0 :               _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[5]), _r);
    2781                 :           0 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 677, __FILE__, __LINE__, true);
    2782                 :           0 :             return _r;
    2783                 :             :           }
    2784                 :             : next_after_fail892:;
    2785                 :             :         }
    2786                 :             :   }
    2787                 :             :   return NULL_TREE;
    2788                 :             : }
    2789                 :             : 
    2790                 :             : tree
    2791                 :           0 : generic_simplify_504 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2792                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
    2793                 :             :  const enum tree_code ARG_UNUSED (cmp))
    2794                 :             : {
    2795                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2796                 :           0 :   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail902;
    2797                 :           0 :   {
    2798                 :           0 :     tree res_op0;
    2799                 :           0 :     res_op0 = unshare_expr (captures[0]);
    2800                 :           0 :     tree res_op1;
    2801                 :           0 :     res_op1 = captures[0];
    2802                 :           0 :     tree _r;
    2803                 :           0 :     _r = fold_build2_loc (loc, UNORDERED_EXPR, type, res_op0, res_op1);
    2804                 :           0 :     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 687, __FILE__, __LINE__, true);
    2805                 :             :     return _r;
    2806                 :             :   }
    2807                 :           0 : next_after_fail902:;
    2808                 :           0 :   return NULL_TREE;
    2809                 :             : }
    2810                 :             : 
    2811                 :             : tree
    2812                 :           0 : generic_simplify_511 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2813                 :             :  tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
    2814                 :             :  const combined_fn ARG_UNUSED (sinhs),
    2815                 :             :  const combined_fn ARG_UNUSED (atanhs),
    2816                 :             :  const combined_fn ARG_UNUSED (sqrts))
    2817                 :             : {
    2818                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2819                 :           0 :   if (!flag_errno_math
    2820                 :             : )
    2821                 :             :     {
    2822                 :           0 :       {
    2823                 :           0 :  tree t_one = build_one_cst (type);
    2824                 :           0 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail909;
    2825                 :           0 :           {
    2826                 :           0 :             if (! tree_invariant_p (captures[1])) goto next_after_fail909;
    2827                 :           0 :             tree res_op0;
    2828                 :           0 :             res_op0 = unshare_expr (captures[1]);
    2829                 :           0 :             tree res_op1;
    2830                 :           0 :             {
    2831                 :           0 :               tree _o1[1], _r1;
    2832                 :           0 :               {
    2833                 :           0 :                 tree _o2[2], _r2;
    2834                 :           0 :                 {
    2835                 :           0 :                   tree _o3[2], _r3;
    2836                 :           0 :                   _o3[0] =  t_one;
    2837                 :           0 :                   _o3[1] = unshare_expr (captures[1]);
    2838                 :           0 :                   _r3 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
    2839                 :           0 :                   _o2[0] = _r3;
    2840                 :             :                 }
    2841                 :           0 :                 {
    2842                 :           0 :                   tree _o3[2], _r3;
    2843                 :           0 :                   _o3[0] =  t_one;
    2844                 :           0 :                   _o3[1] = captures[1];
    2845                 :           0 :                   _r3 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
    2846                 :           0 :                   _o2[1] = _r3;
    2847                 :             :                 }
    2848                 :           0 :                 _r2 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
    2849                 :           0 :                 _o1[0] = _r2;
    2850                 :             :               }
    2851                 :           0 :               _r1 = maybe_build_call_expr_loc (loc, sqrts, TREE_TYPE (_o1[0]), 1, _o1[0]);
    2852                 :           0 :               if (!_r1)
    2853                 :           0 :                 goto next_after_fail909;
    2854                 :           0 :               res_op1 = _r1;
    2855                 :             :             }
    2856                 :           0 :             tree _r;
    2857                 :           0 :             _r = fold_build2_loc (loc, RDIV_EXPR, type, res_op0, res_op1);
    2858                 :           0 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 694, __FILE__, __LINE__, true);
    2859                 :           0 :             return _r;
    2860                 :             :           }
    2861                 :             : next_after_fail909:;
    2862                 :             :       }
    2863                 :             :     }
    2864                 :             :   return NULL_TREE;
    2865                 :             : }
    2866                 :             : 
    2867                 :             : tree
    2868                 :           0 : generic_simplify_530 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2869                 :             :  tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
    2870                 :             :  const combined_fn ARG_UNUSED (fmas))
    2871                 :             : {
    2872                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2873                 :           0 :   if (canonicalize_math_after_vectorization_p ()
    2874                 :             : )
    2875                 :             :     {
    2876                 :             :       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail928;
    2877                 :             :       {
    2878                 :             :         tree res_op0;
    2879                 :             :         res_op0 = captures[0];
    2880                 :             :         tree res_op1;
    2881                 :             :         res_op1 = captures[1];
    2882                 :             :         tree res_op2;
    2883                 :             :         res_op2 = captures[2];
    2884                 :             :         tree _r;
    2885                 :             :         _r = maybe_build_call_expr_loc (loc, CFN_FMS, type, 3, res_op0, res_op1, res_op2);
    2886                 :             :         if (!_r)
    2887                 :             :           goto next_after_fail928;
    2888                 :             :         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 713, __FILE__, __LINE__, true);
    2889                 :             :         return _r;
    2890                 :             :       }
    2891                 :           0 : next_after_fail928:;
    2892                 :             :     }
    2893                 :           0 :   return NULL_TREE;
    2894                 :             : }
    2895                 :             : 
    2896                 :             : tree
    2897                 :           0 : generic_simplify_540 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
    2898                 :             :  tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
    2899                 :             :  const enum tree_code ARG_UNUSED (rot),
    2900                 :             :  const combined_fn ARG_UNUSED (popcount))
    2901                 :             : {
    2902                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2903                 :           0 :   if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
    2904                 :           0 :  && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
    2905                 :           0 :  && (
    2906                 :             : 
    2907                 :           0 :  || !TREE_SIDE_EFFECTS (captures[3]))
    2908                 :             : )
    2909                 :             :     {
    2910                 :           0 :       {
    2911                 :           0 :  tree type0 = TREE_TYPE (captures[0]);
    2912                 :           0 :  tree type1 = TREE_TYPE (captures[1]);
    2913                 :           0 :  unsigned int prec0 = TYPE_PRECISION (type0);
    2914                 :           0 :  unsigned int prec1 = TYPE_PRECISION (type1);
    2915                 :           0 :           if (prec0 == prec1 || (prec0 > prec1 && TYPE_UNSIGNED (type1))
    2916                 :             : )
    2917                 :             :             {
    2918                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail938;
    2919                 :           0 :               {
    2920                 :           0 :                 tree res_op0;
    2921                 :           0 :                 {
    2922                 :           0 :                   tree _o1[1], _r1;
    2923                 :           0 :                   _o1[0] = captures[2];
    2924                 :           0 :                   if (TREE_TYPE (_o1[0]) != type0)
    2925                 :             :                     {
    2926                 :           0 :                       _r1 = fold_build1_loc (loc, NOP_EXPR, type0, _o1[0]);
    2927                 :             :                     }
    2928                 :             :                   else
    2929                 :             :                     _r1 = _o1[0];
    2930                 :           0 :                   res_op0 = _r1;
    2931                 :             :                 }
    2932                 :           0 :                 tree _r;
    2933                 :           0 :                 _r = maybe_build_call_expr_loc (loc, popcount, type, 1, res_op0);
    2934                 :           0 :                 if (!_r)
    2935                 :           0 :                   goto next_after_fail938;
    2936                 :           0 :                 if (TREE_SIDE_EFFECTS (captures[3]))
    2937                 :           0 :                   _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
    2938                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 721, __FILE__, __LINE__, true);
    2939                 :           0 :                 return _r;
    2940                 :             :               }
    2941                 :             : next_after_fail938:;
    2942                 :             :             }
    2943                 :             :       }
    2944                 :             :     }
    2945                 :             :   return NULL_TREE;
    2946                 :             : }
    2947                 :             : 
    2948                 :             : tree
    2949                 :   573446095 : generic_simplify_CONVERT_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0)
    2950                 :             : {
    2951                 :   573446095 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    2952                 :   573446095 :   switch (TREE_CODE (_p0))
    2953                 :             :     {
    2954                 :      293879 :     case NEGATE_EXPR:
    2955                 :      293879 :       {
    2956                 :      293879 :         tree _q20 = TREE_OPERAND (_p0, 0);
    2957                 :      293879 :         switch (TREE_CODE (_q20))
    2958                 :             :           {
    2959                 :       45698 :           CASE_CONVERT:
    2960                 :       45698 :             {
    2961                 :       45698 :               tree _q30 = TREE_OPERAND (_q20, 0);
    2962                 :       45698 :               {
    2963                 :       45698 :                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q30 };
    2964                 :       45698 :                 if (INTEGRAL_TYPE_P (type)
    2965                 :       45396 :  && tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
    2966                 :       42477 :  && TYPE_PRECISION (type) > TYPE_PRECISION (TREE_TYPE (captures[2]))
    2967                 :       46446 :  && TREE_CODE (type) != BOOLEAN_TYPE
    2968                 :             : )
    2969                 :             :                   {
    2970                 :         748 :                     if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail955;
    2971                 :         748 :                     {
    2972                 :         748 :                       tree res_op0;
    2973                 :         748 :                       {
    2974                 :         748 :                         tree _o1[1], _r1;
    2975                 :         748 :                         _o1[0] = captures[2];
    2976                 :         748 :                         if (TREE_TYPE (_o1[0]) != type)
    2977                 :             :                           {
    2978                 :         748 :                             _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
    2979                 :             :                           }
    2980                 :             :                         else
    2981                 :             :                           _r1 = _o1[0];
    2982                 :         748 :                         res_op0 = _r1;
    2983                 :             :                       }
    2984                 :         748 :                       tree _r;
    2985                 :         748 :                       _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
    2986                 :         748 :                       if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 736, __FILE__, __LINE__, true);
    2987                 :         748 :                       return _r;
    2988                 :             :                     }
    2989                 :           0 : next_after_fail955:;
    2990                 :             :                   }
    2991                 :             :               }
    2992                 :       44950 :               break;
    2993                 :             :             }
    2994                 :             :           default:;
    2995                 :             :           }
    2996                 :             :         break;
    2997                 :             :       }
    2998                 :      983989 :     case BIT_AND_EXPR:
    2999                 :      983989 :       {
    3000                 :      983989 :         tree _q20 = TREE_OPERAND (_p0, 0);
    3001                 :      983989 :         tree _q21 = TREE_OPERAND (_p0, 1);
    3002                 :      983989 :         {
    3003                 :      983989 :           tree _q20_pops[1];
    3004                 :      983989 :           if (tree_nop_convert (_q20, _q20_pops))
    3005                 :             :             {
    3006                 :      513623 :               tree _q30 = _q20_pops[0];
    3007                 :      513623 :               {
    3008                 :      513623 :                 tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21 };
    3009                 :      513623 :                 tree res = generic_simplify_359 (loc, type, _p0, captures, BIT_AND_EXPR);
    3010                 :      513623 :                 if (res) return res;
    3011                 :             :               }
    3012                 :             : }
    3013                 :             :         }
    3014                 :      983989 :         {
    3015                 :      983989 :           tree _q21_pops[1];
    3016                 :      983989 :           if (tree_nop_convert (_q21, _q21_pops))
    3017                 :             :             {
    3018                 :      358099 :               tree _q40 = _q21_pops[0];
    3019                 :      358099 :               {
    3020                 :      358099 :                 tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q21, _q40, _q20 };
    3021                 :      358099 :                 tree res = generic_simplify_359 (loc, type, _p0, captures, BIT_AND_EXPR);
    3022                 :      358099 :                 if (res) return res;
    3023                 :             :               }
    3024                 :             : }
    3025                 :             :         }
    3026                 :      983989 :         break;
    3027                 :             :       }
    3028                 :      939506 :     case BIT_IOR_EXPR:
    3029                 :      939506 :       {
    3030                 :      939506 :         tree _q20 = TREE_OPERAND (_p0, 0);
    3031                 :      939506 :         tree _q21 = TREE_OPERAND (_p0, 1);
    3032                 :      939506 :         {
    3033                 :      939506 :           tree _q20_pops[1];
    3034                 :      939506 :           if (tree_nop_convert (_q20, _q20_pops))
    3035                 :             :             {
    3036                 :      350660 :               tree _q30 = _q20_pops[0];
    3037                 :      350660 :               {
    3038                 :      350660 :                 tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21 };
    3039                 :      350660 :                 tree res = generic_simplify_359 (loc, type, _p0, captures, BIT_IOR_EXPR);
    3040                 :      350660 :                 if (res) return res;
    3041                 :             :               }
    3042                 :             : }
    3043                 :             :         }
    3044                 :      939506 :         {
    3045                 :      939506 :           tree _q21_pops[1];
    3046                 :      939506 :           if (tree_nop_convert (_q21, _q21_pops))
    3047                 :             :             {
    3048                 :      852256 :               tree _q40 = _q21_pops[0];
    3049                 :      852256 :               {
    3050                 :      852256 :                 tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q21, _q40, _q20 };
    3051                 :      852256 :                 tree res = generic_simplify_359 (loc, type, _p0, captures, BIT_IOR_EXPR);
    3052                 :      852256 :                 if (res) return res;
    3053                 :             :               }
    3054                 :             : }
    3055                 :             :         }
    3056                 :      939506 :         break;
    3057                 :             :       }
    3058                 :      390778 :     case BIT_XOR_EXPR:
    3059                 :      390778 :       {
    3060                 :      390778 :         tree _q20 = TREE_OPERAND (_p0, 0);
    3061                 :      390778 :         tree _q21 = TREE_OPERAND (_p0, 1);
    3062                 :      390778 :         {
    3063                 :      390778 :           tree _q20_pops[1];
    3064                 :      390778 :           if (tree_nop_convert (_q20, _q20_pops))
    3065                 :             :             {
    3066                 :      324348 :               tree _q30 = _q20_pops[0];
    3067                 :      324348 :               {
    3068                 :      324348 :                 tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21 };
    3069                 :      324348 :                 tree res = generic_simplify_359 (loc, type, _p0, captures, BIT_XOR_EXPR);
    3070                 :      324348 :                 if (res) return res;
    3071                 :             :               }
    3072                 :             : }
    3073                 :             :         }
    3074                 :      390778 :         {
    3075                 :      390778 :           tree _q21_pops[1];
    3076                 :      390778 :           if (tree_nop_convert (_q21, _q21_pops))
    3077                 :             :             {
    3078                 :      355026 :               tree _q40 = _q21_pops[0];
    3079                 :      355026 :               {
    3080                 :      355026 :                 tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q21, _q40, _q20 };
    3081                 :      355026 :                 tree res = generic_simplify_359 (loc, type, _p0, captures, BIT_XOR_EXPR);
    3082                 :      355026 :                 if (res) return res;
    3083                 :             :               }
    3084                 :             : }
    3085                 :             :         }
    3086                 :      390778 :         break;
    3087                 :             :       }
    3088                 :     7366534 :     case MULT_EXPR:
    3089                 :     7366534 :       {
    3090                 :     7366534 :         tree _q20 = TREE_OPERAND (_p0, 0);
    3091                 :     7366534 :         tree _q21 = TREE_OPERAND (_p0, 1);
    3092                 :     7366534 :         if (tree_zero_one_valued_p (_q20))
    3093                 :             :           {
    3094                 :       55624 :             switch (TREE_CODE (_q21))
    3095                 :             :               {
    3096                 :       51046 :               case INTEGER_CST:
    3097                 :       51046 :                 {
    3098                 :       51046 :                   {
    3099                 :       51046 :                     tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
    3100                 :       51046 :                     if (INTEGRAL_TYPE_P (type)
    3101                 :       51046 :  && INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
    3102                 :      102092 :  && TYPE_PRECISION (type) < TYPE_PRECISION (TREE_TYPE (captures[0]))
    3103                 :             : )
    3104                 :             :                       {
    3105                 :          13 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail956;
    3106                 :          13 :                         {
    3107                 :          13 :                           tree res_op0;
    3108                 :          13 :                           {
    3109                 :          13 :                             tree _o1[1], _r1;
    3110                 :          13 :                             _o1[0] = captures[1];
    3111                 :          13 :                             if (TREE_TYPE (_o1[0]) != type)
    3112                 :             :                               {
    3113                 :          13 :                                 _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
    3114                 :             :                               }
    3115                 :             :                             else
    3116                 :             :                               _r1 = _o1[0];
    3117                 :          13 :                             res_op0 = _r1;
    3118                 :             :                           }
    3119                 :          13 :                           tree res_op1;
    3120                 :          13 :                           {
    3121                 :          13 :                             tree _o1[1], _r1;
    3122                 :          13 :                             _o1[0] = captures[2];
    3123                 :          13 :                             if (TREE_TYPE (_o1[0]) != type)
    3124                 :             :                               {
    3125                 :          13 :                                 _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
    3126                 :             :                               }
    3127                 :             :                             else
    3128                 :             :                               _r1 = _o1[0];
    3129                 :          13 :                             res_op1 = _r1;
    3130                 :             :                           }
    3131                 :          13 :                           tree _r;
    3132                 :          13 :                           _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
    3133                 :          13 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 737, __FILE__, __LINE__, true);
    3134                 :          13 :                           return _r;
    3135                 :             :                         }
    3136                 :           0 : next_after_fail956:;
    3137                 :             :                       }
    3138                 :             :                   }
    3139                 :       51033 :                   break;
    3140                 :             :                 }
    3141                 :             :               default:;
    3142                 :             :               }
    3143                 :             :           }
    3144                 :             :         break;
    3145                 :             :       }
    3146                 :      395386 :     case POINTER_DIFF_EXPR:
    3147                 :      395386 :       {
    3148                 :      395386 :         tree _q20 = TREE_OPERAND (_p0, 0);
    3149                 :      395386 :         tree _q21 = TREE_OPERAND (_p0, 1);
    3150                 :      395386 :         switch (TREE_CODE (_q21))
    3151                 :             :           {
    3152                 :         199 :           case INTEGER_CST:
    3153                 :         199 :             {
    3154                 :         199 :               {
    3155                 :         199 :                 tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
    3156                 :         199 :                 if (POINTER_TYPE_P (type)
    3157                 :             : )
    3158                 :             :                   {
    3159                 :          17 :                     if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail957;
    3160                 :          17 :                     if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail957;
    3161                 :          17 :                     if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail957;
    3162                 :          17 :                     {
    3163                 :          17 :                       tree _r;
    3164                 :          17 :                       _r =  build_fold_addr_expr_with_type
    3165                 :             :  (build2 (MEM_REF, char_type_node, captures[0],
    3166                 :             :  wide_int_to_tree (ptr_type_node, wi::neg (wi::to_wide (captures[1])))),
    3167                 :             :  type);
    3168                 :          17 :                       if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 738, __FILE__, __LINE__, true);
    3169                 :          17 :                       return _r;
    3170                 :             :                     }
    3171                 :         182 : next_after_fail957:;
    3172                 :             :                   }
    3173                 :             :               }
    3174                 :         182 :               break;
    3175                 :             :             }
    3176                 :             :           default:;
    3177                 :             :           }
    3178                 :             :         break;
    3179                 :             :       }
    3180                 :      185231 :     case EQ_EXPR:
    3181                 :      185231 :       {
    3182                 :      185231 :         tree _q20 = TREE_OPERAND (_p0, 0);
    3183                 :      185231 :         tree _q21 = TREE_OPERAND (_p0, 1);
    3184                 :      185231 :         if (tree_zero_one_valued_p (_q20))
    3185                 :             :           {
    3186                 :        1403 :             switch (TREE_CODE (_q21))
    3187                 :             :               {
    3188                 :         503 :               case INTEGER_CST:
    3189                 :         503 :                 {
    3190                 :         503 :                   {
    3191                 :         503 :                     tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
    3192                 :         503 :                     tree res = generic_simplify_360 (loc, type, _p0, captures, EQ_EXPR);
    3193                 :         503 :                     if (res) return res;
    3194                 :             :                   }
    3195                 :         464 :                   break;
    3196                 :             :                 }
    3197                 :             :               default:;
    3198                 :             :               }
    3199                 :             :           }
    3200                 :             :         break;
    3201                 :             :       }
    3202                 :      222010 :     case NE_EXPR:
    3203                 :      222010 :       {
    3204                 :      222010 :         tree _q20 = TREE_OPERAND (_p0, 0);
    3205                 :      222010 :         tree _q21 = TREE_OPERAND (_p0, 1);
    3206                 :      222010 :         if (tree_zero_one_valued_p (_q20))
    3207                 :             :           {
    3208                 :        1883 :             switch (TREE_CODE (_q21))
    3209                 :             :               {
    3210                 :        1548 :               case INTEGER_CST:
    3211                 :        1548 :                 {
    3212                 :        1548 :                   {
    3213                 :        1548 :                     tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
    3214                 :        1548 :                     tree res = generic_simplify_360 (loc, type, _p0, captures, NE_EXPR);
    3215                 :        1548 :                     if (res) return res;
    3216                 :             :                   }
    3217                 :           1 :                   break;
    3218                 :             :                 }
    3219                 :             :               default:;
    3220                 :             :               }
    3221                 :             :           }
    3222                 :             :         break;
    3223                 :             :       }
    3224                 :        1743 :     case MIN_EXPR:
    3225                 :        1743 :       {
    3226                 :        1743 :         tree _q20 = TREE_OPERAND (_p0, 0);
    3227                 :        1743 :         tree _q21 = TREE_OPERAND (_p0, 1);
    3228                 :        1743 :         switch (TREE_CODE (_q20))
    3229                 :             :           {
    3230                 :         628 :           CASE_CONVERT:
    3231                 :         628 :             {
    3232                 :         628 :               tree _q30 = TREE_OPERAND (_q20, 0);
    3233                 :         628 :               switch (TREE_CODE (_q21))
    3234                 :             :                 {
    3235                 :         585 :                 case INTEGER_CST:
    3236                 :         585 :                   {
    3237                 :         585 :                     {
    3238                 :         585 :                       tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q21 };
    3239                 :         585 :                       tree res = generic_simplify_361 (loc, type, _p0, captures, MIN_EXPR);
    3240                 :         585 :                       if (res) return res;
    3241                 :             :                     }
    3242                 :         585 :                     break;
    3243                 :             :                   }
    3244                 :             :                 default:;
    3245                 :             :                 }
    3246                 :             :               break;
    3247                 :             :             }
    3248                 :             :           default:;
    3249                 :             :           }
    3250                 :             :         break;
    3251                 :             :       }
    3252                 :      268546 :     case MAX_EXPR:
    3253                 :      268546 :       {
    3254                 :      268546 :         tree _q20 = TREE_OPERAND (_p0, 0);
    3255                 :      268546 :         tree _q21 = TREE_OPERAND (_p0, 1);
    3256                 :      268546 :         switch (TREE_CODE (_q20))
    3257                 :             :           {
    3258                 :        7012 :           CASE_CONVERT:
    3259                 :        7012 :             {
    3260                 :        7012 :               tree _q30 = TREE_OPERAND (_q20, 0);
    3261                 :        7012 :               switch (TREE_CODE (_q21))
    3262                 :             :                 {
    3263                 :        6979 :                 case INTEGER_CST:
    3264                 :        6979 :                   {
    3265                 :        6979 :                     {
    3266                 :        6979 :                       tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q21 };
    3267                 :        6979 :                       tree res = generic_simplify_361 (loc, type, _p0, captures, MAX_EXPR);
    3268                 :        6979 :                       if (res) return res;
    3269                 :             :                     }
    3270                 :        6979 :                     break;
    3271                 :             :                   }
    3272                 :             :                 default:;
    3273                 :             :                 }
    3274                 :             :               break;
    3275                 :             :             }
    3276                 :             :           default:;
    3277                 :             :           }
    3278                 :             :         break;
    3279                 :             :       }
    3280                 :      258828 :     case LSHIFT_EXPR:
    3281                 :      258828 :       {
    3282                 :      258828 :         tree _q20 = TREE_OPERAND (_p0, 0);
    3283                 :      258828 :         tree _q21 = TREE_OPERAND (_p0, 1);
    3284                 :      258828 :         switch (TREE_CODE (_q21))
    3285                 :             :           {
    3286                 :       14174 :           case INTEGER_CST:
    3287                 :       14174 :             {
    3288                 :       14174 :               {
    3289                 :       14174 :                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
    3290                 :       14174 :                 if (INTEGRAL_TYPE_P (type)
    3291                 :       14147 :  && INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
    3292                 :       14147 :  && !integer_zerop (captures[2])
    3293                 :       27546 :  && TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
    3294                 :             : )
    3295                 :             :                   {
    3296                 :       12057 :                     if (TYPE_PRECISION (type) == TYPE_PRECISION (TREE_TYPE (captures[0]))
    3297                 :       12057 :  || wi::ltu_p (wi::to_wide (captures[2]), TYPE_PRECISION (type))
    3298                 :             : )
    3299                 :             :                       {
    3300                 :       11814 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail958;
    3301                 :       11814 :                         {
    3302                 :       11814 :                           tree res_op0;
    3303                 :       11814 :                           {
    3304                 :       11814 :                             tree _o1[1], _r1;
    3305                 :       11814 :                             _o1[0] = captures[1];
    3306                 :       11814 :                             if (TREE_TYPE (_o1[0]) != type)
    3307                 :             :                               {
    3308                 :        2740 :                                 _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
    3309                 :             :                               }
    3310                 :             :                             else
    3311                 :             :                               _r1 = _o1[0];
    3312                 :       11814 :                             res_op0 = _r1;
    3313                 :             :                           }
    3314                 :       11814 :                           tree res_op1;
    3315                 :       11814 :                           res_op1 = captures[2];
    3316                 :       11814 :                           tree _r;
    3317                 :       11814 :                           _r = fold_build2_loc (loc, LSHIFT_EXPR, type, res_op0, res_op1);
    3318                 :       11814 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 739, __FILE__, __LINE__, true);
    3319                 :       11814 :                           return _r;
    3320                 :             :                         }
    3321                 :           0 : next_after_fail958:;
    3322                 :             :                       }
    3323                 :             :                     else
    3324                 :             :                       {
    3325                 :         243 :                         if (wi::ltu_p (wi::to_wide (captures[2]), TYPE_PRECISION (TREE_TYPE (captures[0])))
    3326                 :             : )
    3327                 :             :                           {
    3328                 :         225 :                             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail959;
    3329                 :         225 :                             {
    3330                 :         225 :                               tree _r;
    3331                 :         225 :                               _r =  build_zero_cst (type);
    3332                 :         225 :                               if (TREE_SIDE_EFFECTS (captures[1]))
    3333                 :          14 :                                 _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    3334                 :         225 :                               if (TREE_SIDE_EFFECTS (captures[2]))
    3335                 :           0 :                                 _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
    3336                 :         225 :                               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 740, __FILE__, __LINE__, true);
    3337                 :         225 :                               return _r;
    3338                 :             :                             }
    3339                 :           0 : next_after_fail959:;
    3340                 :             :                           }
    3341                 :             :                       }
    3342                 :             :                   }
    3343                 :             :               }
    3344                 :        2135 :               break;
    3345                 :             :             }
    3346                 :             :           default:;
    3347                 :             :           }
    3348                 :             :         break;
    3349                 :             :       }
    3350                 :   573431692 :     default:;
    3351                 :             :     }
    3352                 :   573431692 :   {
    3353                 :   573431692 :     tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
    3354                 :  1146863384 :     if ((
    3355                 :             : 
    3356                 :             :  && useless_type_conversion_p (type, TREE_TYPE (captures[0])))
    3357                 :             :  || (
    3358                 :             : 1
    3359                 :   573431692 :  && type == TREE_TYPE (captures[0]))
    3360                 :             : )
    3361                 :             :       {
    3362                 :    35865036 :         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail960;
    3363                 :    35865036 :         {
    3364                 :    35865036 :           tree _r;
    3365                 :    35865036 :           _r = captures[0];
    3366                 :    35865036 :           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 741, __FILE__, __LINE__, true);
    3367                 :    35865036 :           return _r;
    3368                 :             :         }
    3369                 :           0 : next_after_fail960:;
    3370                 :             :       }
    3371                 :             :   }
    3372                 :   537566656 :   switch (TREE_CODE (_p0))
    3373                 :             :     {
    3374                 :    75247551 :     CASE_CONVERT:
    3375                 :    75247551 :       {
    3376                 :    75247551 :         tree _q20 = TREE_OPERAND (_p0, 0);
    3377                 :    75247551 :         {
    3378                 :    75247551 :           tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q20 };
    3379                 :    75247551 :           {
    3380                 :    75247551 :  tree inside_type = TREE_TYPE (captures[1]);
    3381                 :    75247551 :  tree inter_type = TREE_TYPE (captures[0]);
    3382                 :    75247551 :  int inside_int = INTEGRAL_TYPE_P (inside_type);
    3383                 :    75247551 :  int inside_ptr = POINTER_TYPE_P (inside_type);
    3384                 :    75247551 :  int inside_float = FLOAT_TYPE_P (inside_type);
    3385                 :    75247551 :  int inside_vec = VECTOR_TYPE_P (inside_type);
    3386                 :    75247551 :  unsigned int inside_prec = element_precision (inside_type);
    3387                 :    75247551 :  int inside_unsignedp = TYPE_UNSIGNED (inside_type);
    3388                 :    75247551 :  int inter_int = INTEGRAL_TYPE_P (inter_type);
    3389                 :    75247551 :  int inter_ptr = POINTER_TYPE_P (inter_type);
    3390                 :    75247551 :  int inter_float = FLOAT_TYPE_P (inter_type);
    3391                 :    75247551 :  int inter_vec = VECTOR_TYPE_P (inter_type);
    3392                 :    75247551 :  unsigned int inter_prec = element_precision (inter_type);
    3393                 :    75247551 :  int inter_unsignedp = TYPE_UNSIGNED (inter_type);
    3394                 :    75247551 :  int final_int = INTEGRAL_TYPE_P (type);
    3395                 :    75247551 :  int final_ptr = POINTER_TYPE_P (type);
    3396                 :    75247551 :  int final_float = FLOAT_TYPE_P (type);
    3397                 :    75247551 :  int final_vec = VECTOR_TYPE_P (type);
    3398                 :    75247551 :  unsigned int final_prec = element_precision (type);
    3399                 :    75247551 :  int final_unsignedp = TYPE_UNSIGNED (type);
    3400                 :    75247551 :               if (((
    3401                 :             : 
    3402                 :             :  && useless_type_conversion_p (type, inside_type))
    3403                 :             :  || (
    3404                 :             : 1
    3405                 :    75247551 :  && TYPE_MAIN_VARIANT (type) == TYPE_MAIN_VARIANT (inside_type)))
    3406                 :    15739188 :  && (((inter_int || inter_ptr) && final_int)
    3407                 :    13033413 :  || (inter_float && final_float))
    3408                 :    77968625 :  && inter_prec >= final_prec
    3409                 :             : )
    3410                 :             :                 {
    3411                 :     2182444 :                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail961;
    3412                 :     2182444 :                   {
    3413                 :     2182444 :                     tree res_op0;
    3414                 :     2182444 :                     res_op0 = captures[1];
    3415                 :     2182444 :                     tree _r;
    3416                 :     2182444 :                     _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
    3417                 :     2182444 :                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 742, __FILE__, __LINE__, true);
    3418                 :     2182444 :                     return _r;
    3419                 :             :                   }
    3420                 :           0 : next_after_fail961:;
    3421                 :             :                 }
    3422                 :             :               else
    3423                 :             :                 {
    3424                 :    73065107 :                   if (((inter_int && inside_int) || (inter_float && inside_float))
    3425                 :    21948407 :  && (final_int || final_float)
    3426                 :    21829310 :  && inter_prec >= inside_prec
    3427                 :    20514146 :  && (inter_float || inter_unsignedp == inside_unsignedp)
    3428                 :             : )
    3429                 :             :                     {
    3430                 :    15034895 :                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail962;
    3431                 :    15034895 :                       {
    3432                 :    15034895 :                         tree res_op0;
    3433                 :    15034895 :                         res_op0 = captures[1];
    3434                 :    15034895 :                         tree _r;
    3435                 :    15034895 :                         _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
    3436                 :    15034895 :                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 743, __FILE__, __LINE__, true);
    3437                 :    15034895 :                         return _r;
    3438                 :             :                       }
    3439                 :           0 : next_after_fail962:;
    3440                 :           0 :                     }
    3441                 :             :                   else
    3442                 :             :                     {
    3443                 :    58030212 :                       if (inside_int && inter_int && final_int
    3444                 :     6787802 :  && ((inside_prec < inter_prec && inter_prec < final_prec
    3445                 :      201362 :  && inside_unsignedp && !inter_unsignedp)
    3446                 :     6613178 :  || final_prec == inter_prec
    3447                 :     5100033 :  || (inside_prec < inter_prec && inter_prec > final_prec
    3448                 :      137213 :  && !inside_unsignedp && inter_unsignedp))
    3449                 :             : )
    3450                 :             :                         {
    3451                 :     1754199 :                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail963;
    3452                 :     1754199 :                           {
    3453                 :     1754199 :                             tree res_op0;
    3454                 :     1754199 :                             res_op0 = captures[1];
    3455                 :     1754199 :                             tree _r;
    3456                 :     1754199 :                             _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
    3457                 :     1754199 :                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 744, __FILE__, __LINE__, true);
    3458                 :     1754199 :                             return _r;
    3459                 :             :                           }
    3460                 :           0 : next_after_fail963:;
    3461                 :           0 :                         }
    3462                 :             :                       else
    3463                 :             :                         {
    3464                 :    56276013 :                           if (! inside_float && ! inter_float && ! final_float
    3465                 :             :  && ! inside_vec && ! inter_vec && ! final_vec
    3466                 :    56269396 :  && (inter_prec >= inside_prec || inter_prec >= final_prec)
    3467                 :    55352735 :  && ! (inside_int && inter_int
    3468                 :     4236035 :  && inter_unsignedp != inside_unsignedp
    3469                 :     4236035 :  && inter_prec < final_prec)
    3470                 :    51398542 :  && ((inter_unsignedp && inter_prec > inside_prec)
    3471                 :    51398542 :  == (final_unsignedp && final_prec > inter_prec))
    3472                 :    51377145 :  && ! (inside_ptr && inter_prec != final_prec)
    3473                 :    50779649 :  && ! (final_ptr && inside_prec != inter_prec)
    3474                 :             : )
    3475                 :             :                             {
    3476                 :    50761111 :                               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail964;
    3477                 :    50761111 :                               {
    3478                 :    50761111 :                                 tree res_op0;
    3479                 :    50761111 :                                 res_op0 = captures[1];
    3480                 :    50761111 :                                 tree _r;
    3481                 :    50761111 :                                 _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
    3482                 :    50761111 :                                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 745, __FILE__, __LINE__, true);
    3483                 :    50761111 :                                 return _r;
    3484                 :             :                               }
    3485                 :           0 : next_after_fail964:;
    3486                 :           0 :                             }
    3487                 :             :                           else
    3488                 :             :                             {
    3489                 :     5514902 :                               if (inside_int && inter_int && final_int
    3490                 :     4898009 :  && final_prec <= inside_prec
    3491                 :      822507 :  && inter_prec >= inside_prec
    3492                 :             : )
    3493                 :             :                                 {
    3494                 :           0 :                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail965;
    3495                 :           0 :                                   {
    3496                 :           0 :                                     tree res_op0;
    3497                 :           0 :                                     res_op0 = captures[1];
    3498                 :           0 :                                     tree _r;
    3499                 :           0 :                                     _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
    3500                 :           0 :                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 746, __FILE__, __LINE__, true);
    3501                 :           0 :                                     return _r;
    3502                 :             :                                   }
    3503                 :           0 : next_after_fail965:;
    3504                 :           0 :                                 }
    3505                 :             :                               else
    3506                 :             :                                 {
    3507                 :             :                                   if (0
    3508                 :             :  && final_int && inter_int && inside_int
    3509                 :             :  && final_prec == inside_prec
    3510                 :             :  && final_prec > inter_prec
    3511                 :             :  && inter_unsignedp
    3512                 :             : )
    3513                 :             :                                     {
    3514                 :             :                                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail966;
    3515                 :             :                                       {
    3516                 :             :                                         tree res_op0;
    3517                 :             :                                         {
    3518                 :             :                                           tree _o1[2], _r1;
    3519                 :             :                                           _o1[0] = captures[1];
    3520                 :             :                                           _o1[1] =  wide_int_to_tree
    3521                 :             :  (inside_type,
    3522                 :             :  wi::mask (inter_prec, false,
    3523                 :             :  TYPE_PRECISION (inside_type)));
    3524                 :             :                                           _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    3525                 :             :                                           res_op0 = _r1;
    3526                 :             :                                         }
    3527                 :             :                                         tree _r;
    3528                 :             :                                         _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
    3529                 :             :                                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 747, __FILE__, __LINE__, true);
    3530                 :             :                                         return _r;
    3531                 :             :                                       }
    3532                 :             : next_after_fail966:;
    3533                 :             :                                     }
    3534                 :             :                                   else
    3535                 :             :                                     {
    3536                 :             :                                       if (0
    3537                 :             :  && inside_int && inter_float && final_int &&
    3538                 :             :  (unsigned) significand_size (TYPE_MODE (inter_type))
    3539                 :             :  >= inside_prec - !inside_unsignedp
    3540                 :             : )
    3541                 :             :                                         {
    3542                 :             :                                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail967;
    3543                 :             :                                           {
    3544                 :             :                                             tree res_op0;
    3545                 :             :                                             res_op0 = captures[1];
    3546                 :             :                                             tree _r;
    3547                 :             :                                             _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
    3548                 :             :                                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 748, __FILE__, __LINE__, true);
    3549                 :             :                                             return _r;
    3550                 :             :                                           }
    3551                 :             : next_after_fail967:;
    3552                 :             :                                         }
    3553                 :             :                                     }
    3554                 :             :                                 }
    3555                 :             :                             }
    3556                 :             :                         }
    3557                 :             :                     }
    3558                 :             :                 }
    3559                 :             :           }
    3560                 :             :         }
    3561                 :     5514902 :         break;
    3562                 :             :       }
    3563                 :        3086 :     case FLOAT_EXPR:
    3564                 :        3086 :       {
    3565                 :        3086 :         tree _q20 = TREE_OPERAND (_p0, 0);
    3566                 :        3086 :         {
    3567                 :        3086 :           tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q20 };
    3568                 :        3086 :           {
    3569                 :        3086 :  tree inside_type = TREE_TYPE (captures[1]);
    3570                 :        3086 :  tree inter_type = TREE_TYPE (captures[0]);
    3571                 :        3086 :  int inside_int = INTEGRAL_TYPE_P (inside_type);
    3572                 :        3086 :  int inside_ptr = POINTER_TYPE_P (inside_type);
    3573                 :        3086 :  int inside_float = FLOAT_TYPE_P (inside_type);
    3574                 :        3086 :  int inside_vec = VECTOR_TYPE_P (inside_type);
    3575                 :        3086 :  unsigned int inside_prec = element_precision (inside_type);
    3576                 :        3086 :  int inside_unsignedp = TYPE_UNSIGNED (inside_type);
    3577                 :        3086 :  int inter_int = INTEGRAL_TYPE_P (inter_type);
    3578                 :        3086 :  int inter_ptr = POINTER_TYPE_P (inter_type);
    3579                 :        3086 :  int inter_float = FLOAT_TYPE_P (inter_type);
    3580                 :        3086 :  int inter_vec = VECTOR_TYPE_P (inter_type);
    3581                 :        3086 :  unsigned int inter_prec = element_precision (inter_type);
    3582                 :        3086 :  int inter_unsignedp = TYPE_UNSIGNED (inter_type);
    3583                 :        3086 :  int final_int = INTEGRAL_TYPE_P (type);
    3584                 :        3086 :  int final_ptr = POINTER_TYPE_P (type);
    3585                 :        3086 :  int final_float = FLOAT_TYPE_P (type);
    3586                 :        3086 :  int final_vec = VECTOR_TYPE_P (type);
    3587                 :        3086 :  unsigned int final_prec = element_precision (type);
    3588                 :        3086 :  int final_unsignedp = TYPE_UNSIGNED (type);
    3589                 :        3086 :               if (((
    3590                 :             : 
    3591                 :             :  && useless_type_conversion_p (type, inside_type))
    3592                 :             :  || (
    3593                 :             : 1
    3594                 :        3086 :  && TYPE_MAIN_VARIANT (type) == TYPE_MAIN_VARIANT (inside_type)))
    3595                 :           0 :  && (((inter_int || inter_ptr) && final_int)
    3596                 :           0 :  || (inter_float && final_float))
    3597                 :        3086 :  && inter_prec >= final_prec
    3598                 :             : )
    3599                 :             :                 {
    3600                 :           0 :                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail968;
    3601                 :           0 :                   {
    3602                 :           0 :                     tree res_op0;
    3603                 :           0 :                     res_op0 = captures[1];
    3604                 :           0 :                     tree _r;
    3605                 :           0 :                     _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
    3606                 :           0 :                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 742, __FILE__, __LINE__, true);
    3607                 :           0 :                     return _r;
    3608                 :             :                   }
    3609                 :           0 : next_after_fail968:;
    3610                 :             :                 }
    3611                 :             :               else
    3612                 :             :                 {
    3613                 :        3086 :                   if (((inter_int && inside_int) || (inter_float && inside_float))
    3614                 :           0 :  && (final_int || final_float)
    3615                 :           0 :  && inter_prec >= inside_prec
    3616                 :           0 :  && (inter_float || inter_unsignedp == inside_unsignedp)
    3617                 :             : )
    3618                 :             :                     {
    3619                 :           0 :                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail969;
    3620                 :           0 :                       {
    3621                 :           0 :                         tree res_op0;
    3622                 :           0 :                         res_op0 = captures[1];
    3623                 :           0 :                         tree _r;
    3624                 :           0 :                         _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
    3625                 :           0 :                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 743, __FILE__, __LINE__, true);
    3626                 :           0 :                         return _r;
    3627                 :             :                       }
    3628                 :           0 : next_after_fail969:;
    3629                 :           0 :                     }
    3630                 :             :                   else
    3631                 :             :                     {
    3632                 :        3086 :                       if (inside_int && inter_int && final_int
    3633                 :           0 :  && ((inside_prec < inter_prec && inter_prec < final_prec
    3634                 :           0 :  && inside_unsignedp && !inter_unsignedp)
    3635                 :           0 :  || final_prec == inter_prec
    3636                 :           0 :  || (inside_prec < inter_prec && inter_prec > final_prec
    3637                 :           0 :  && !inside_unsignedp && inter_unsignedp))
    3638                 :             : )
    3639                 :             :                         {
    3640                 :           0 :                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail970;
    3641                 :           0 :                           {
    3642                 :           0 :                             tree res_op0;
    3643                 :           0 :                             res_op0 = captures[1];
    3644                 :           0 :                             tree _r;
    3645                 :           0 :                             _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
    3646                 :           0 :                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 744, __FILE__, __LINE__, true);
    3647                 :           0 :                             return _r;
    3648                 :             :                           }
    3649                 :           0 : next_after_fail970:;
    3650                 :           0 :                         }
    3651                 :             :                       else
    3652                 :             :                         {
    3653                 :        3086 :                           if (! inside_float && ! inter_float && ! final_float
    3654                 :             :  && ! inside_vec && ! inter_vec && ! final_vec
    3655                 :           0 :  && (inter_prec >= inside_prec || inter_prec >= final_prec)
    3656                 :           0 :  && ! (inside_int && inter_int
    3657                 :           0 :  && inter_unsignedp != inside_unsignedp
    3658                 :           0 :  && inter_prec < final_prec)
    3659                 :           0 :  && ((inter_unsignedp && inter_prec > inside_prec)
    3660                 :           0 :  == (final_unsignedp && final_prec > inter_prec))
    3661                 :           0 :  && ! (inside_ptr && inter_prec != final_prec)
    3662                 :           0 :  && ! (final_ptr && inside_prec != inter_prec)
    3663                 :             : )
    3664                 :             :                             {
    3665                 :           0 :                               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail971;
    3666                 :           0 :                               {
    3667                 :           0 :                                 tree res_op0;
    3668                 :           0 :                                 res_op0 = captures[1];
    3669                 :           0 :                                 tree _r;
    3670                 :           0 :                                 _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
    3671                 :           0 :                                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 745, __FILE__, __LINE__, true);
    3672                 :           0 :                                 return _r;
    3673                 :             :                               }
    3674                 :           0 : next_after_fail971:;
    3675                 :           0 :                             }
    3676                 :             :                           else
    3677                 :             :                             {
    3678                 :        3086 :                               if (inside_int && inter_int && final_int
    3679                 :           0 :  && final_prec <= inside_prec
    3680                 :           0 :  && inter_prec >= inside_prec
    3681                 :             : )
    3682                 :             :                                 {
    3683                 :           0 :                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail972;
    3684                 :           0 :                                   {
    3685                 :           0 :                                     tree res_op0;
    3686                 :           0 :                                     res_op0 = captures[1];
    3687                 :           0 :                                     tree _r;
    3688                 :           0 :                                     _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
    3689                 :           0 :                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 746, __FILE__, __LINE__, true);
    3690                 :           0 :                                     return _r;
    3691                 :             :                                   }
    3692                 :           0 : next_after_fail972:;
    3693                 :           0 :                                 }
    3694                 :             :                               else
    3695                 :             :                                 {
    3696                 :             :                                   if (0
    3697                 :             :  && final_int && inter_int && inside_int
    3698                 :             :  && final_prec == inside_prec
    3699                 :             :  && final_prec > inter_prec
    3700                 :             :  && inter_unsignedp
    3701                 :             : )
    3702                 :             :                                     {
    3703                 :             :                                       if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail973;
    3704                 :             :                                       {
    3705                 :             :                                         tree res_op0;
    3706                 :             :                                         {
    3707                 :             :                                           tree _o1[2], _r1;
    3708                 :             :                                           _o1[0] = captures[1];
    3709                 :             :                                           _o1[1] =  wide_int_to_tree
    3710                 :             :  (inside_type,
    3711                 :             :  wi::mask (inter_prec, false,
    3712                 :             :  TYPE_PRECISION (inside_type)));
    3713                 :             :                                           _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    3714                 :             :                                           res_op0 = _r1;
    3715                 :             :                                         }
    3716                 :             :                                         tree _r;
    3717                 :             :                                         _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
    3718                 :             :                                         if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 747, __FILE__, __LINE__, true);
    3719                 :             :                                         return _r;
    3720                 :             :                                       }
    3721                 :             : next_after_fail973:;
    3722                 :             :                                     }
    3723                 :             :                                   else
    3724                 :             :                                     {
    3725                 :             :                                       if (0
    3726                 :             :  && inside_int && inter_float && final_int &&
    3727                 :             :  (unsigned) significand_size (TYPE_MODE (inter_type))
    3728                 :             :  >= inside_prec - !inside_unsignedp
    3729                 :             : )
    3730                 :             :                                         {
    3731                 :             :                                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail974;
    3732                 :             :                                           {
    3733                 :             :                                             tree res_op0;
    3734                 :             :                                             res_op0 = captures[1];
    3735                 :             :                                             tree _r;
    3736                 :             :                                             _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
    3737                 :             :                                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 748, __FILE__, __LINE__, true);
    3738                 :             :                                             return _r;
    3739                 :             :                                           }
    3740                 :             : next_after_fail974:;
    3741                 :             :                                         }
    3742                 :             :                                     }
    3743                 :             :                                 }
    3744                 :             :                             }
    3745                 :             :                         }
    3746                 :             :                     }
    3747                 :             :                 }
    3748                 :             :           }
    3749                 :             :         }
    3750                 :        3086 :         break;
    3751                 :             :       }
    3752                 :      726008 :     case BIT_AND_EXPR:
    3753                 :      726008 :       {
    3754                 :      726008 :         tree _q20 = TREE_OPERAND (_p0, 0);
    3755                 :      726008 :         tree _q21 = TREE_OPERAND (_p0, 1);
    3756                 :      726008 :         switch (TREE_CODE (_q21))
    3757                 :             :           {
    3758                 :      248780 :           case INTEGER_CST:
    3759                 :      248780 :             {
    3760                 :      248780 :               {
    3761                 :      248780 :                 tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
    3762                 :      248780 :                 if (INTEGRAL_TYPE_P (type)
    3763                 :      248270 :  && INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
    3764                 :      248270 :  && TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
    3765                 :      359287 :  && operand_equal_p (captures[1], build_low_bits_mask (TREE_TYPE (captures[1]),
    3766                 :      110507 :  TYPE_PRECISION (type)), 0)
    3767                 :             : )
    3768                 :             :                   {
    3769                 :        2796 :                     if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail975;
    3770                 :        2796 :                     {
    3771                 :        2796 :                       tree res_op0;
    3772                 :        2796 :                       res_op0 = captures[0];
    3773                 :        2796 :                       tree _r;
    3774                 :        2796 :                       _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
    3775                 :        2796 :                       if (TREE_SIDE_EFFECTS (captures[1]))
    3776                 :           0 :                         _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    3777                 :        2796 :                       if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 749, __FILE__, __LINE__, true);
    3778                 :        2796 :                       return _r;
    3779                 :             :                     }
    3780                 :           0 : next_after_fail975:;
    3781                 :             :                   }
    3782                 :             :               }
    3783                 :      245984 :               break;
    3784                 :             :             }
    3785                 :             :           default:;
    3786                 :             :           }
    3787                 :             :         break;
    3788                 :             :       }
    3789                 :           5 :     case VEC_COND_EXPR:
    3790                 :           5 :       {
    3791                 :           5 :         tree _q20 = TREE_OPERAND (_p0, 0);
    3792                 :           5 :         tree _q21 = TREE_OPERAND (_p0, 1);
    3793                 :           5 :         tree _q22 = TREE_OPERAND (_p0, 2);
    3794                 :           5 :         {
    3795                 :           5 :           tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22 };
    3796                 :           5 :           if (VECTOR_TYPE_P (type)
    3797                 :           5 :  && types_match (TREE_TYPE (captures[1]), truth_type_for (type))
    3798                 :             : )
    3799                 :             :             {
    3800                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail976;
    3801                 :           0 :               {
    3802                 :           0 :                 tree res_op0;
    3803                 :           0 :                 res_op0 = captures[1];
    3804                 :           0 :                 tree res_op1;
    3805                 :           0 :                 {
    3806                 :           0 :                   tree _o1[1], _r1;
    3807                 :           0 :                   _o1[0] = captures[2];
    3808                 :           0 :                   if (TREE_TYPE (_o1[0]) != type)
    3809                 :             :                     {
    3810                 :           0 :                       _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
    3811                 :           0 :                       if (EXPR_P (_r1))
    3812                 :           0 :                         goto next_after_fail976;
    3813                 :             :                     }
    3814                 :             :                   else
    3815                 :             :                     _r1 = _o1[0];
    3816                 :           0 :                   res_op1 = _r1;
    3817                 :             :                 }
    3818                 :           0 :                 tree res_op2;
    3819                 :           0 :                 {
    3820                 :           0 :                   tree _o1[1], _r1;
    3821                 :           0 :                   _o1[0] = captures[3];
    3822                 :           0 :                   if (TREE_TYPE (_o1[0]) != type)
    3823                 :             :                     {
    3824                 :           0 :                       _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
    3825                 :           0 :                       if (EXPR_P (_r1))
    3826                 :           0 :                         goto next_after_fail976;
    3827                 :             :                     }
    3828                 :             :                   else
    3829                 :             :                     _r1 = _o1[0];
    3830                 :           0 :                   res_op2 = _r1;
    3831                 :             :                 }
    3832                 :           0 :                 tree _r;
    3833                 :           0 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    3834                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 750, __FILE__, __LINE__, true);
    3835                 :           0 :                 return _r;
    3836                 :             :               }
    3837                 :           5 : next_after_fail976:;
    3838                 :             :             }
    3839                 :             :         }
    3840                 :           5 :         break;
    3841                 :             :       }
    3842                 :      388017 :     case COND_EXPR:
    3843                 :      388017 :       {
    3844                 :      388017 :         tree _q20 = TREE_OPERAND (_p0, 0);
    3845                 :      388017 :         tree _q21 = TREE_OPERAND (_p0, 1);
    3846                 :      388017 :         tree _q22 = TREE_OPERAND (_p0, 2);
    3847                 :      388017 :         switch (TREE_CODE (_q21))
    3848                 :             :           {
    3849                 :      154385 :           case INTEGER_CST:
    3850                 :      154385 :             {
    3851                 :      154385 :               switch (TREE_CODE (_q22))
    3852                 :             :                 {
    3853                 :       86748 :                 case INTEGER_CST:
    3854                 :       86748 :                   {
    3855                 :       86748 :                     {
    3856                 :       86748 :                       tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22 };
    3857                 :       86748 :                       if (INTEGRAL_TYPE_P (type)
    3858                 :       86748 :  && INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
    3859                 :             : )
    3860                 :             :                         {
    3861                 :       86748 :                           if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail977;
    3862                 :       86748 :                           if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail977;
    3863                 :       86748 :                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail977;
    3864                 :       86748 :                           {
    3865                 :       86748 :                             tree res_op0;
    3866                 :       86748 :                             res_op0 = captures[1];
    3867                 :       86748 :                             tree res_op1;
    3868                 :       86748 :                             {
    3869                 :       86748 :                               tree _o1[1], _r1;
    3870                 :       86748 :                               _o1[0] = captures[2];
    3871                 :       86748 :                               if (TREE_TYPE (_o1[0]) != type)
    3872                 :             :                                 {
    3873                 :       86748 :                                   _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
    3874                 :             :                                 }
    3875                 :             :                               else
    3876                 :             :                                 _r1 = _o1[0];
    3877                 :       86748 :                               res_op1 = _r1;
    3878                 :             :                             }
    3879                 :       86748 :                             tree res_op2;
    3880                 :       86748 :                             {
    3881                 :       86748 :                               tree _o1[1], _r1;
    3882                 :       86748 :                               _o1[0] = captures[3];
    3883                 :       86748 :                               if (TREE_TYPE (_o1[0]) != type)
    3884                 :             :                                 {
    3885                 :       86748 :                                   _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
    3886                 :             :                                 }
    3887                 :             :                               else
    3888                 :             :                                 _r1 = _o1[0];
    3889                 :       86748 :                               res_op2 = _r1;
    3890                 :             :                             }
    3891                 :       86748 :                             tree _r;
    3892                 :       86748 :                             _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
    3893                 :       86748 :                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 751, __FILE__, __LINE__, true);
    3894                 :       86748 :                             return _r;
    3895                 :             :                           }
    3896                 :           0 : next_after_fail977:;
    3897                 :             :                         }
    3898                 :             :                     }
    3899                 :           0 :                     break;
    3900                 :             :                   }
    3901                 :             :                 default:;
    3902                 :             :                 }
    3903                 :             :               break;
    3904                 :             :             }
    3905                 :             :           default:;
    3906                 :             :           }
    3907                 :             :         break;
    3908                 :             :       }
    3909                 :     8559852 :     case PLUS_EXPR:
    3910                 :     8559852 :       {
    3911                 :     8559852 :         tree _q20 = TREE_OPERAND (_p0, 0);
    3912                 :     8559852 :         tree _q21 = TREE_OPERAND (_p0, 1);
    3913                 :     8559852 :         switch (TREE_CODE (_q20))
    3914                 :             :           {
    3915                 :     2998648 :           CASE_CONVERT:
    3916                 :     2998648 :             {
    3917                 :     2998648 :               tree _q30 = TREE_OPERAND (_q20, 0);
    3918                 :     2998648 :               switch (TREE_CODE (_q21))
    3919                 :             :                 {
    3920                 :      284467 :                 CASE_CONVERT:
    3921                 :      284467 :                   {
    3922                 :      284467 :                     tree _q50 = TREE_OPERAND (_q21, 0);
    3923                 :      284467 :                     {
    3924                 :      284467 :                       tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50 };
    3925                 :      284467 :                       tree res = generic_simplify_362 (loc, type, _p0, captures, PLUS_EXPR);
    3926                 :      284467 :                       if (res) return res;
    3927                 :             :                     }
    3928                 :      284430 :                     break;
    3929                 :             :                   }
    3930                 :     2998611 :                 default:;
    3931                 :             :                 }
    3932                 :     2998611 :               {
    3933                 :     2998611 :                 tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q21 };
    3934                 :     2998611 :                 tree res = generic_simplify_363 (loc, type, _p0, captures, PLUS_EXPR);
    3935                 :     2998611 :                 if (res) return res;
    3936                 :             :               }
    3937                 :     2986711 :               break;
    3938                 :             :             }
    3939                 :     8547915 :           default:;
    3940                 :             :           }
    3941                 :     8547915 :         switch (TREE_CODE (_q21))
    3942                 :             :           {
    3943                 :      949734 :           CASE_CONVERT:
    3944                 :      949734 :             {
    3945                 :      949734 :               tree _q40 = TREE_OPERAND (_q21, 0);
    3946                 :      949734 :               {
    3947                 :      949734 :                 tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q20, _q21, _q40 };
    3948                 :      949734 :                 tree res = generic_simplify_364 (loc, type, _p0, captures, PLUS_EXPR);
    3949                 :      949734 :                 if (res) return res;
    3950                 :             :               }
    3951                 :      949734 :               break;
    3952                 :             :             }
    3953                 :     8547915 :           default:;
    3954                 :             :           }
    3955                 :     8547915 :         {
    3956                 :     8547915 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q20, _q21, _q21 };
    3957                 :     8547915 :           tree res = generic_simplify_365 (loc, type, _p0, captures, PLUS_EXPR);
    3958                 :     8547915 :           if (res) return res;
    3959                 :             :         }
    3960                 :     8547881 :         break;
    3961                 :             :       }
    3962                 :      762228 :     case MINUS_EXPR:
    3963                 :      762228 :       {
    3964                 :      762228 :         tree _q20 = TREE_OPERAND (_p0, 0);
    3965                 :      762228 :         tree _q21 = TREE_OPERAND (_p0, 1);
    3966                 :      762228 :         switch (TREE_CODE (_q20))
    3967                 :             :           {
    3968                 :      271973 :           CASE_CONVERT:
    3969                 :      271973 :             {
    3970                 :      271973 :               tree _q30 = TREE_OPERAND (_q20, 0);
    3971                 :      271973 :               switch (TREE_CODE (_q21))
    3972                 :             :                 {
    3973                 :      127947 :                 CASE_CONVERT:
    3974                 :      127947 :                   {
    3975                 :      127947 :                     tree _q50 = TREE_OPERAND (_q21, 0);
    3976                 :      127947 :                     {
    3977                 :      127947 :                       tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50 };
    3978                 :      127947 :                       tree res = generic_simplify_362 (loc, type, _p0, captures, MINUS_EXPR);
    3979                 :      127947 :                       if (res) return res;
    3980                 :             :                     }
    3981                 :      127925 :                     break;
    3982                 :             :                   }
    3983                 :      271951 :                 default:;
    3984                 :             :                 }
    3985                 :      271951 :               {
    3986                 :      271951 :                 tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q21 };
    3987                 :      271951 :                 tree res = generic_simplify_363 (loc, type, _p0, captures, MINUS_EXPR);
    3988                 :      271951 :                 if (res) return res;
    3989                 :             :               }
    3990                 :      270838 :               break;
    3991                 :             :             }
    3992                 :      761093 :           default:;
    3993                 :             :           }
    3994                 :      761093 :         switch (TREE_CODE (_q21))
    3995                 :             :           {
    3996                 :      179083 :           CASE_CONVERT:
    3997                 :      179083 :             {
    3998                 :      179083 :               tree _q40 = TREE_OPERAND (_q21, 0);
    3999                 :      179083 :               {
    4000                 :      179083 :                 tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q20, _q21, _q40 };
    4001                 :      179083 :                 tree res = generic_simplify_364 (loc, type, _p0, captures, MINUS_EXPR);
    4002                 :      179083 :                 if (res) return res;
    4003                 :             :               }
    4004                 :      179073 :               break;
    4005                 :             :             }
    4006                 :      761083 :           default:;
    4007                 :             :           }
    4008                 :      761083 :         {
    4009                 :      761083 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q20, _q21, _q21 };
    4010                 :      761083 :           tree res = generic_simplify_365 (loc, type, _p0, captures, MINUS_EXPR);
    4011                 :      761083 :           if (res) return res;
    4012                 :             :         }
    4013                 :      761051 :         break;
    4014                 :             :       }
    4015                 :     7205187 :     case MULT_EXPR:
    4016                 :     7205187 :       {
    4017                 :     7205187 :         tree _q20 = TREE_OPERAND (_p0, 0);
    4018                 :     7205187 :         tree _q21 = TREE_OPERAND (_p0, 1);
    4019                 :     7205187 :         switch (TREE_CODE (_q20))
    4020                 :             :           {
    4021                 :     3371996 :           CASE_CONVERT:
    4022                 :     3371996 :             {
    4023                 :     3371996 :               tree _q30 = TREE_OPERAND (_q20, 0);
    4024                 :     3371996 :               switch (TREE_CODE (_q21))
    4025                 :             :                 {
    4026                 :      298329 :                 CASE_CONVERT:
    4027                 :      298329 :                   {
    4028                 :      298329 :                     tree _q50 = TREE_OPERAND (_q21, 0);
    4029                 :      298329 :                     {
    4030                 :      298329 :                       tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50 };
    4031                 :      298329 :                       tree res = generic_simplify_362 (loc, type, _p0, captures, MULT_EXPR);
    4032                 :      298329 :                       if (res) return res;
    4033                 :             :                     }
    4034                 :      298329 :                     break;
    4035                 :             :                   }
    4036                 :     3371996 :                 default:;
    4037                 :             :                 }
    4038                 :     3371996 :               {
    4039                 :     3371996 :                 tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q21 };
    4040                 :     3371996 :                 tree res = generic_simplify_363 (loc, type, _p0, captures, MULT_EXPR);
    4041                 :     3371996 :                 if (res) return res;
    4042                 :             :               }
    4043                 :     3371866 :               break;
    4044                 :             :             }
    4045                 :     7205057 :           default:;
    4046                 :             :           }
    4047                 :     7205057 :         switch (TREE_CODE (_q21))
    4048                 :             :           {
    4049                 :      663950 :           CASE_CONVERT:
    4050                 :      663950 :             {
    4051                 :      663950 :               tree _q40 = TREE_OPERAND (_q21, 0);
    4052                 :      663950 :               {
    4053                 :      663950 :                 tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q20, _q21, _q40 };
    4054                 :      663950 :                 tree res = generic_simplify_364 (loc, type, _p0, captures, MULT_EXPR);
    4055                 :      663950 :                 if (res) return res;
    4056                 :             :               }
    4057                 :      663950 :               break;
    4058                 :             :             }
    4059                 :     7205057 :           default:;
    4060                 :             :           }
    4061                 :     7205057 :         {
    4062                 :     7205057 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q20, _q21, _q21 };
    4063                 :     7205057 :           tree res = generic_simplify_365 (loc, type, _p0, captures, MULT_EXPR);
    4064                 :     7205057 :           if (res) return res;
    4065                 :             :         }
    4066                 :     7205024 :         break;
    4067                 :             :       }
    4068                 :        2981 :     case RDIV_EXPR:
    4069                 :        2981 :       {
    4070                 :        2981 :         tree _q20 = TREE_OPERAND (_p0, 0);
    4071                 :        2981 :         tree _q21 = TREE_OPERAND (_p0, 1);
    4072                 :        2981 :         switch (TREE_CODE (_q20))
    4073                 :             :           {
    4074                 :         961 :           CASE_CONVERT:
    4075                 :         961 :             {
    4076                 :         961 :               tree _q30 = TREE_OPERAND (_q20, 0);
    4077                 :         961 :               switch (TREE_CODE (_q21))
    4078                 :             :                 {
    4079                 :         667 :                 CASE_CONVERT:
    4080                 :         667 :                   {
    4081                 :         667 :                     tree _q50 = TREE_OPERAND (_q21, 0);
    4082                 :         667 :                     {
    4083                 :         667 :                       tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50 };
    4084                 :         667 :                       tree res = generic_simplify_362 (loc, type, _p0, captures, RDIV_EXPR);
    4085                 :         667 :                       if (res) return res;
    4086                 :             :                     }
    4087                 :         666 :                     break;
    4088                 :             :                   }
    4089                 :         960 :                 default:;
    4090                 :             :                 }
    4091                 :         960 :               {
    4092                 :         960 :                 tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q21 };
    4093                 :         960 :                 tree res = generic_simplify_363 (loc, type, _p0, captures, RDIV_EXPR);
    4094                 :         960 :                 if (res) return res;
    4095                 :             :               }
    4096                 :         958 :               break;
    4097                 :             :             }
    4098                 :        2978 :           default:;
    4099                 :             :           }
    4100                 :        2978 :         switch (TREE_CODE (_q21))
    4101                 :             :           {
    4102                 :        1580 :           CASE_CONVERT:
    4103                 :        1580 :             {
    4104                 :        1580 :               tree _q40 = TREE_OPERAND (_q21, 0);
    4105                 :        1580 :               {
    4106                 :        1580 :                 tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q20, _q21, _q40 };
    4107                 :        1580 :                 tree res = generic_simplify_364 (loc, type, _p0, captures, RDIV_EXPR);
    4108                 :        1580 :                 if (res) return res;
    4109                 :             :               }
    4110                 :         936 :               break;
    4111                 :             :             }
    4112                 :        2334 :           default:;
    4113                 :             :           }
    4114                 :        2334 :         {
    4115                 :        2334 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q20, _q21, _q21 };
    4116                 :        2334 :           tree res = generic_simplify_365 (loc, type, _p0, captures, RDIV_EXPR);
    4117                 :        2334 :           if (res) return res;
    4118                 :             :         }
    4119                 :        2296 :         break;
    4120                 :             :       }
    4121                 :      272673 :     case NEGATE_EXPR:
    4122                 :      272673 :       {
    4123                 :      272673 :         tree _q20 = TREE_OPERAND (_p0, 0);
    4124                 :      272673 :         {
    4125                 :      272673 :           tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
    4126                 :      272673 :           tree res = generic_simplify_366 (loc, type, _p0, captures);
    4127                 :      272673 :           if (res) return res;
    4128                 :             :         }
    4129                 :      272651 :         break;
    4130                 :             :       }
    4131                 :             :     default:;
    4132                 :             :     }
    4133                 :             :   return NULL_TREE;
    4134                 :             : }
    4135                 :             : 
    4136                 :             : tree
    4137                 :        5069 : generic_simplify_CEIL_DIV_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
    4138                 :             : {
    4139                 :        5069 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    4140                 :        5069 :   if (integer_onep (_p1))
    4141                 :             :     {
    4142                 :        1236 :       {
    4143                 :        1236 :         tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
    4144                 :        1236 :         tree res = generic_simplify_164 (loc, type, _p0, _p1, captures, CEIL_DIV_EXPR);
    4145                 :        1236 :         if (res) return res;
    4146                 :             :       }
    4147                 :             :     }
    4148                 :        3833 :   if (integer_zerop (_p0))
    4149                 :             :     {
    4150                 :           0 :       {
    4151                 :           0 :         tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    4152                 :           0 :         tree res = generic_simplify_283 (loc, type, _p0, _p1, captures, CEIL_DIV_EXPR);
    4153                 :           0 :         if (res) return res;
    4154                 :             :       }
    4155                 :             :     }
    4156                 :        3833 :   switch (TREE_CODE (_p1))
    4157                 :             :     {
    4158                 :          32 :     case SSA_NAME:
    4159                 :          32 :       {
    4160                 :          32 :         {
    4161                 :          32 :           tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    4162                 :          32 :           tree res = generic_simplify_285 (loc, type, _p0, _p1, captures, CEIL_DIV_EXPR);
    4163                 :          32 :           if (res) return res;
    4164                 :             :         }
    4165                 :          32 :         break;
    4166                 :             :       }
    4167                 :        3833 :     default:;
    4168                 :             :     }
    4169                 :        3833 : if (integer_minus_onep (_p1))
    4170                 :             :   {
    4171                 :           0 :     {
    4172                 :           0 :       tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    4173                 :           0 :       tree res = generic_simplify_284 (loc, type, _p0, _p1, captures, CEIL_DIV_EXPR);
    4174                 :           0 :       if (res) return res;
    4175                 :             :     }
    4176                 :             :   }
    4177                 :        3833 :   if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
    4178                 :             :     {
    4179                 :           0 :       {
    4180                 :           0 :         tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
    4181                 :           0 :         tree res = generic_simplify_286 (loc, type, _p0, _p1, captures, CEIL_DIV_EXPR);
    4182                 :           0 :         if (res) return res;
    4183                 :             :       }
    4184                 :             :     }
    4185                 :        3833 :   switch (TREE_CODE (_p1))
    4186                 :             :     {
    4187                 :           0 :     case ABS_EXPR:
    4188                 :           0 :       {
    4189                 :           0 :         tree _q30 = TREE_OPERAND (_p1, 0);
    4190                 :           0 :         if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
    4191                 :             :           {
    4192                 :           0 :             {
    4193                 :           0 :               tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
    4194                 :           0 :               tree res = generic_simplify_287 (loc, type, _p0, _p1, captures, CEIL_DIV_EXPR);
    4195                 :           0 :               if (res) return res;
    4196                 :             :             }
    4197                 :             :           }
    4198                 :             :         break;
    4199                 :             :       }
    4200                 :        3833 :     default:;
    4201                 :             :     }
    4202                 :        3833 :   switch (TREE_CODE (_p0))
    4203                 :             :     {
    4204                 :           0 :     case ABS_EXPR:
    4205                 :           0 :       {
    4206                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
    4207                 :           0 :         if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
    4208                 :             :           {
    4209                 :           0 :             {
    4210                 :           0 :               tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
    4211                 :           0 :               tree res = generic_simplify_287 (loc, type, _p0, _p1, captures, CEIL_DIV_EXPR);
    4212                 :           0 :               if (res) return res;
    4213                 :             :             }
    4214                 :             :           }
    4215                 :             :         break;
    4216                 :             :       }
    4217                 :        3833 :     default:;
    4218                 :             :     }
    4219                 :        3833 :   switch (TREE_CODE (_p1))
    4220                 :             :     {
    4221                 :           0 :     case NEGATE_EXPR:
    4222                 :           0 :       {
    4223                 :           0 :         tree _q30 = TREE_OPERAND (_p1, 0);
    4224                 :           0 :         if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
    4225                 :             :           {
    4226                 :           0 :             {
    4227                 :           0 :               tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
    4228                 :           0 :               tree res = generic_simplify_288 (loc, type, _p0, _p1, captures, CEIL_DIV_EXPR);
    4229                 :           0 :               if (res) return res;
    4230                 :             :             }
    4231                 :             :           }
    4232                 :             :         break;
    4233                 :             :       }
    4234                 :        3833 :     default:;
    4235                 :             :     }
    4236                 :        3833 :   switch (TREE_CODE (_p0))
    4237                 :             :     {
    4238                 :           0 :     case NEGATE_EXPR:
    4239                 :           0 :       {
    4240                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
    4241                 :           0 :         if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
    4242                 :             :           {
    4243                 :           0 :             {
    4244                 :           0 :               tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
    4245                 :           0 :               tree res = generic_simplify_288 (loc, type, _p0, _p1, captures, CEIL_DIV_EXPR);
    4246                 :           0 :               if (res) return res;
    4247                 :             :             }
    4248                 :             :           }
    4249                 :             :         break;
    4250                 :             :       }
    4251                 :         156 :     CASE_CONVERT:
    4252                 :         156 :       {
    4253                 :         156 :         tree _q20 = TREE_OPERAND (_p0, 0);
    4254                 :         156 :         switch (TREE_CODE (_q20))
    4255                 :             :           {
    4256                 :           0 :           case BIT_AND_EXPR:
    4257                 :           0 :             {
    4258                 :           0 :               tree _q30 = TREE_OPERAND (_q20, 0);
    4259                 :           0 :               tree _q31 = TREE_OPERAND (_q20, 1);
    4260                 :           0 :               switch (TREE_CODE (_q31))
    4261                 :             :                 {
    4262                 :           0 :                 case INTEGER_CST:
    4263                 :           0 :                   {
    4264                 :           0 :                     switch (TREE_CODE (_p1))
    4265                 :             :                       {
    4266                 :           0 :                       case INTEGER_CST:
    4267                 :           0 :                         {
    4268                 :           0 :                           {
    4269                 :           0 :                             tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
    4270                 :           0 :                             tree res = generic_simplify_290 (loc, type, _p0, _p1, captures, CEIL_DIV_EXPR);
    4271                 :           0 :                             if (res) return res;
    4272                 :             :                           }
    4273                 :           0 :                           break;
    4274                 :             :                         }
    4275                 :             :                       default:;
    4276                 :             :                       }
    4277                 :             :                     break;
    4278                 :             :                   }
    4279                 :             :                 default:;
    4280                 :             :                 }
    4281                 :             :               break;
    4282                 :             :             }
    4283                 :             :           default:;
    4284                 :             :           }
    4285                 :             :         break;
    4286                 :             :       }
    4287                 :           0 :     case BIT_AND_EXPR:
    4288                 :           0 :       {
    4289                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
    4290                 :           0 :         tree _q21 = TREE_OPERAND (_p0, 1);
    4291                 :           0 :         switch (TREE_CODE (_q21))
    4292                 :             :           {
    4293                 :           0 :           case INTEGER_CST:
    4294                 :           0 :             {
    4295                 :           0 :               switch (TREE_CODE (_p1))
    4296                 :             :                 {
    4297                 :           0 :                 case INTEGER_CST:
    4298                 :           0 :                   {
    4299                 :           0 :                     {
    4300                 :           0 :                       tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
    4301                 :           0 :                       tree res = generic_simplify_290 (loc, type, _p0, _p1, captures, CEIL_DIV_EXPR);
    4302                 :           0 :                       if (res) return res;
    4303                 :             :                     }
    4304                 :           0 :                     break;
    4305                 :             :                   }
    4306                 :             :                 default:;
    4307                 :             :                 }
    4308                 :             :               break;
    4309                 :             :             }
    4310                 :             :           default:;
    4311                 :             :           }
    4312                 :             :         break;
    4313                 :             :       }
    4314                 :           0 :     case MULT_EXPR:
    4315                 :           0 :       {
    4316                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
    4317                 :           0 :         tree _q21 = TREE_OPERAND (_p0, 1);
    4318                 :           0 :         if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
    4319                 :             :           {
    4320                 :           0 :             {
    4321                 :           0 :               tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
    4322                 :           0 :               tree res = generic_simplify_291 (loc, type, _p0, _p1, captures, CEIL_DIV_EXPR);
    4323                 :           0 :               if (res) return res;
    4324                 :             :             }
    4325                 :             :           }
    4326                 :           0 :         if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
    4327                 :             :           {
    4328                 :           0 :             {
    4329                 :           0 :               tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
    4330                 :           0 :               tree res = generic_simplify_291 (loc, type, _p0, _p1, captures, CEIL_DIV_EXPR);
    4331                 :           0 :               if (res) return res;
    4332                 :             :             }
    4333                 :             :           }
    4334                 :           0 :         switch (TREE_CODE (_q21))
    4335                 :             :           {
    4336                 :           0 :           case INTEGER_CST:
    4337                 :           0 :             {
    4338                 :           0 :               switch (TREE_CODE (_p1))
    4339                 :             :                 {
    4340                 :           0 :                 case MULT_EXPR:
    4341                 :           0 :                   {
    4342                 :           0 :                     tree _q50 = TREE_OPERAND (_p1, 0);
    4343                 :           0 :                     tree _q51 = TREE_OPERAND (_p1, 1);
    4344                 :           0 :                     if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
    4345                 :             :                       {
    4346                 :           0 :                         switch (TREE_CODE (_q51))
    4347                 :             :                           {
    4348                 :           0 :                           case INTEGER_CST:
    4349                 :           0 :                             {
    4350                 :           0 :                               {
    4351                 :           0 :                                 tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
    4352                 :           0 :                                 tree res = generic_simplify_292 (loc, type, _p0, _p1, captures, CEIL_DIV_EXPR);
    4353                 :           0 :                                 if (res) return res;
    4354                 :             :                               }
    4355                 :           0 :                               break;
    4356                 :             :                             }
    4357                 :             :                           default:;
    4358                 :             :                           }
    4359                 :             :                       }
    4360                 :             :                     break;
    4361                 :             :                   }
    4362                 :             :                 default:;
    4363                 :             :                 }
    4364                 :             :               break;
    4365                 :             :             }
    4366                 :             :           default:;
    4367                 :             :           }
    4368                 :             :         break;
    4369                 :             :       }
    4370                 :           0 :     case VEC_COND_EXPR:
    4371                 :           0 :       {
    4372                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
    4373                 :           0 :         tree _q21 = TREE_OPERAND (_p0, 1);
    4374                 :           0 :         tree _q22 = TREE_OPERAND (_p0, 2);
    4375                 :           0 :         switch (TREE_CODE (_p1))
    4376                 :             :           {
    4377                 :           0 :           case VEC_COND_EXPR:
    4378                 :           0 :             {
    4379                 :           0 :               tree _q60 = TREE_OPERAND (_p1, 0);
    4380                 :           0 :               tree _q61 = TREE_OPERAND (_p1, 1);
    4381                 :           0 :               tree _q62 = TREE_OPERAND (_p1, 2);
    4382                 :           0 :               if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
    4383                 :             :                 {
    4384                 :           0 :                   {
    4385                 :           0 :                     tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
    4386                 :           0 :                     if (TREE_CODE_CLASS (CEIL_DIV_EXPR) != tcc_comparison
    4387                 :             :  || types_match (type, TREE_TYPE (captures[2]))
    4388                 :             :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]), ERROR_MARK)
    4389                 :             :  || (optimize_vectors_before_lowering_p ()
    4390                 :             :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]),
    4391                 :             :  TREE_TYPE (captures[1]), ERROR_MARK))
    4392                 :             : )
    4393                 :             :                       {
    4394                 :           0 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1427;
    4395                 :           0 :                         {
    4396                 :           0 :                           tree res_op0;
    4397                 :           0 :                           res_op0 = captures[1];
    4398                 :           0 :                           tree res_op1;
    4399                 :           0 :                           {
    4400                 :           0 :                             tree _o1[2], _r1;
    4401                 :           0 :                             _o1[0] = captures[2];
    4402                 :           0 :                             _o1[1] = captures[5];
    4403                 :           0 :                             _r1 = fold_build2_loc (loc, CEIL_DIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    4404                 :           0 :                             if (EXPR_P (_r1))
    4405                 :           0 :                               goto next_after_fail1427;
    4406                 :           0 :                             res_op1 = _r1;
    4407                 :             :                           }
    4408                 :           0 :                           tree res_op2;
    4409                 :           0 :                           {
    4410                 :           0 :                             tree _o1[2], _r1;
    4411                 :           0 :                             _o1[0] = captures[3];
    4412                 :           0 :                             _o1[1] = captures[6];
    4413                 :           0 :                             _r1 = fold_build2_loc (loc, CEIL_DIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    4414                 :           0 :                             if (EXPR_P (_r1))
    4415                 :           0 :                               goto next_after_fail1427;
    4416                 :           0 :                             res_op2 = _r1;
    4417                 :             :                           }
    4418                 :           0 :                           tree _r;
    4419                 :           0 :                           _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    4420                 :           0 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 793, __FILE__, __LINE__, true);
    4421                 :           0 :                           return _r;
    4422                 :             :                         }
    4423                 :           0 : next_after_fail1427:;
    4424                 :             :                       }
    4425                 :             :                   }
    4426                 :             :                 }
    4427                 :             :               break;
    4428                 :             :             }
    4429                 :           0 :           default:;
    4430                 :             :           }
    4431                 :           0 :         {
    4432                 :           0 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
    4433                 :           0 :           if (TREE_CODE_CLASS (CEIL_DIV_EXPR) != tcc_comparison
    4434                 :             :  || types_match (type, TREE_TYPE (captures[2]))
    4435                 :             :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]), ERROR_MARK)
    4436                 :             :  || (optimize_vectors_before_lowering_p ()
    4437                 :             :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]),
    4438                 :             :  TREE_TYPE (captures[1]), ERROR_MARK))
    4439                 :             : )
    4440                 :             :             {
    4441                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1428;
    4442                 :           0 :               {
    4443                 :           0 :                 if (! tree_invariant_p (captures[4])) goto next_after_fail1428;
    4444                 :           0 :                 tree res_op0;
    4445                 :           0 :                 res_op0 = captures[1];
    4446                 :           0 :                 tree res_op1;
    4447                 :           0 :                 {
    4448                 :           0 :                   tree _o1[2], _r1;
    4449                 :           0 :                   _o1[0] = captures[2];
    4450                 :           0 :                   _o1[1] = unshare_expr (captures[4]);
    4451                 :           0 :                   _r1 = fold_build2_loc (loc, CEIL_DIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    4452                 :           0 :                   if (EXPR_P (_r1))
    4453                 :           0 :                     goto next_after_fail1428;
    4454                 :           0 :                   res_op1 = _r1;
    4455                 :             :                 }
    4456                 :           0 :                 tree res_op2;
    4457                 :           0 :                 {
    4458                 :           0 :                   tree _o1[2], _r1;
    4459                 :           0 :                   _o1[0] = captures[3];
    4460                 :           0 :                   _o1[1] = captures[4];
    4461                 :           0 :                   _r1 = fold_build2_loc (loc, CEIL_DIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    4462                 :           0 :                   if (EXPR_P (_r1))
    4463                 :           0 :                     goto next_after_fail1428;
    4464                 :           0 :                   res_op2 = _r1;
    4465                 :             :                 }
    4466                 :           0 :                 tree _r;
    4467                 :           0 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    4468                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 794, __FILE__, __LINE__, true);
    4469                 :           0 :                 return _r;
    4470                 :             :               }
    4471                 :           0 : next_after_fail1428:;
    4472                 :             :             }
    4473                 :             :         }
    4474                 :           0 :         break;
    4475                 :             :       }
    4476                 :        3833 :     default:;
    4477                 :             :     }
    4478                 :        3833 :   switch (TREE_CODE (_p1))
    4479                 :             :     {
    4480                 :           0 :     case VEC_COND_EXPR:
    4481                 :           0 :       {
    4482                 :           0 :         tree _q30 = TREE_OPERAND (_p1, 0);
    4483                 :           0 :         tree _q31 = TREE_OPERAND (_p1, 1);
    4484                 :           0 :         tree _q32 = TREE_OPERAND (_p1, 2);
    4485                 :           0 :         {
    4486                 :           0 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
    4487                 :           0 :           if (TREE_CODE_CLASS (CEIL_DIV_EXPR) != tcc_comparison
    4488                 :             :  || types_match (type, TREE_TYPE (captures[3]))
    4489                 :             :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]), ERROR_MARK)
    4490                 :             :  || (optimize_vectors_before_lowering_p ()
    4491                 :             :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]),
    4492                 :             :  TREE_TYPE (captures[2]), ERROR_MARK))
    4493                 :             : )
    4494                 :             :             {
    4495                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1429;
    4496                 :           0 :               {
    4497                 :           0 :                 if (! tree_invariant_p (captures[0])) goto next_after_fail1429;
    4498                 :           0 :                 tree res_op0;
    4499                 :           0 :                 res_op0 = captures[2];
    4500                 :           0 :                 tree res_op1;
    4501                 :           0 :                 {
    4502                 :           0 :                   tree _o1[2], _r1;
    4503                 :           0 :                   _o1[0] = unshare_expr (captures[0]);
    4504                 :           0 :                   _o1[1] = captures[3];
    4505                 :           0 :                   _r1 = fold_build2_loc (loc, CEIL_DIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    4506                 :           0 :                   if (EXPR_P (_r1))
    4507                 :           0 :                     goto next_after_fail1429;
    4508                 :           0 :                   res_op1 = _r1;
    4509                 :             :                 }
    4510                 :           0 :                 tree res_op2;
    4511                 :           0 :                 {
    4512                 :           0 :                   tree _o1[2], _r1;
    4513                 :           0 :                   _o1[0] = captures[0];
    4514                 :           0 :                   _o1[1] = captures[4];
    4515                 :           0 :                   _r1 = fold_build2_loc (loc, CEIL_DIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    4516                 :           0 :                   if (EXPR_P (_r1))
    4517                 :           0 :                     goto next_after_fail1429;
    4518                 :           0 :                   res_op2 = _r1;
    4519                 :             :                 }
    4520                 :           0 :                 tree _r;
    4521                 :           0 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    4522                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 795, __FILE__, __LINE__, true);
    4523                 :           0 :                 return _r;
    4524                 :             :               }
    4525                 :           0 : next_after_fail1429:;
    4526                 :             :             }
    4527                 :             :         }
    4528                 :           0 :         break;
    4529                 :             :       }
    4530                 :             :     default:;
    4531                 :             :     }
    4532                 :             :   return NULL_TREE;
    4533                 :             : }
    4534                 :             : 
    4535                 :             : tree
    4536                 :     2939896 : generic_simplify_EXACT_DIV_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
    4537                 :             : {
    4538                 :     2939896 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    4539                 :     2939896 :   if (integer_onep (_p1))
    4540                 :             :     {
    4541                 :     1892634 :       {
    4542                 :     1892634 :         tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
    4543                 :     1892634 :         tree res = generic_simplify_164 (loc, type, _p0, _p1, captures, EXACT_DIV_EXPR);
    4544                 :     1892634 :         if (res) return res;
    4545                 :             :       }
    4546                 :             :     }
    4547                 :     1047262 :   if (integer_zerop (_p0))
    4548                 :             :     {
    4549                 :           0 :       {
    4550                 :           0 :         tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    4551                 :           0 :         tree res = generic_simplify_283 (loc, type, _p0, _p1, captures, EXACT_DIV_EXPR);
    4552                 :           0 :         if (res) return res;
    4553                 :             :       }
    4554                 :             :     }
    4555                 :     1047262 :   switch (TREE_CODE (_p1))
    4556                 :             :     {
    4557                 :           0 :     case SSA_NAME:
    4558                 :           0 :       {
    4559                 :           0 :         {
    4560                 :           0 :           tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    4561                 :           0 :           tree res = generic_simplify_285 (loc, type, _p0, _p1, captures, EXACT_DIV_EXPR);
    4562                 :           0 :           if (res) return res;
    4563                 :             :         }
    4564                 :           0 :         break;
    4565                 :             :       }
    4566                 :     1047262 :     default:;
    4567                 :             :     }
    4568                 :     1047262 : if (integer_minus_onep (_p1))
    4569                 :             :   {
    4570                 :           0 :     {
    4571                 :           0 :       tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    4572                 :           0 :       tree res = generic_simplify_284 (loc, type, _p0, _p1, captures, EXACT_DIV_EXPR);
    4573                 :           0 :       if (res) return res;
    4574                 :             :     }
    4575                 :             :   }
    4576                 :     1047262 :   if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
    4577                 :             :     {
    4578                 :           0 :       {
    4579                 :           0 :         tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
    4580                 :           0 :         tree res = generic_simplify_286 (loc, type, _p0, _p1, captures, EXACT_DIV_EXPR);
    4581                 :           0 :         if (res) return res;
    4582                 :             :       }
    4583                 :             :     }
    4584                 :     1047262 :   switch (TREE_CODE (_p1))
    4585                 :             :     {
    4586                 :           0 :     case ABS_EXPR:
    4587                 :           0 :       {
    4588                 :           0 :         tree _q30 = TREE_OPERAND (_p1, 0);
    4589                 :           0 :         if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
    4590                 :             :           {
    4591                 :           0 :             {
    4592                 :           0 :               tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
    4593                 :           0 :               tree res = generic_simplify_287 (loc, type, _p0, _p1, captures, EXACT_DIV_EXPR);
    4594                 :           0 :               if (res) return res;
    4595                 :             :             }
    4596                 :             :           }
    4597                 :             :         break;
    4598                 :             :       }
    4599                 :     1047262 :     default:;
    4600                 :             :     }
    4601                 :     1047262 :   switch (TREE_CODE (_p0))
    4602                 :             :     {
    4603                 :           0 :     case ABS_EXPR:
    4604                 :           0 :       {
    4605                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
    4606                 :           0 :         if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
    4607                 :             :           {
    4608                 :           0 :             {
    4609                 :           0 :               tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
    4610                 :           0 :               tree res = generic_simplify_287 (loc, type, _p0, _p1, captures, EXACT_DIV_EXPR);
    4611                 :           0 :               if (res) return res;
    4612                 :             :             }
    4613                 :             :           }
    4614                 :             :         break;
    4615                 :             :       }
    4616                 :     1047262 :     default:;
    4617                 :             :     }
    4618                 :     1047262 :   switch (TREE_CODE (_p1))
    4619                 :             :     {
    4620                 :           0 :     case NEGATE_EXPR:
    4621                 :           0 :       {
    4622                 :           0 :         tree _q30 = TREE_OPERAND (_p1, 0);
    4623                 :           0 :         if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
    4624                 :             :           {
    4625                 :           0 :             {
    4626                 :           0 :               tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
    4627                 :           0 :               tree res = generic_simplify_288 (loc, type, _p0, _p1, captures, EXACT_DIV_EXPR);
    4628                 :           0 :               if (res) return res;
    4629                 :             :             }
    4630                 :             :           }
    4631                 :             :         break;
    4632                 :             :       }
    4633                 :     1047262 :     default:;
    4634                 :             :     }
    4635                 :     1047262 :   switch (TREE_CODE (_p0))
    4636                 :             :     {
    4637                 :        1058 :     case NEGATE_EXPR:
    4638                 :        1058 :       {
    4639                 :        1058 :         tree _q20 = TREE_OPERAND (_p0, 0);
    4640                 :        1058 :         if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
    4641                 :             :           {
    4642                 :           0 :             {
    4643                 :           0 :               tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
    4644                 :           0 :               tree res = generic_simplify_288 (loc, type, _p0, _p1, captures, EXACT_DIV_EXPR);
    4645                 :           0 :               if (res) return res;
    4646                 :             :             }
    4647                 :             :           }
    4648                 :             :         break;
    4649                 :             :       }
    4650                 :           0 :     case EXACT_DIV_EXPR:
    4651                 :           0 :       {
    4652                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
    4653                 :           0 :         tree _q21 = TREE_OPERAND (_p0, 1);
    4654                 :           0 :         switch (TREE_CODE (_q21))
    4655                 :             :           {
    4656                 :           0 :           case INTEGER_CST:
    4657                 :           0 :             {
    4658                 :           0 :               switch (TREE_CODE (_p1))
    4659                 :             :                 {
    4660                 :           0 :                 case INTEGER_CST:
    4661                 :           0 :                   {
    4662                 :           0 :                     {
    4663                 :           0 :                       tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
    4664                 :           0 :                       tree res = generic_simplify_289 (loc, type, _p0, _p1, captures, EXACT_DIV_EXPR);
    4665                 :           0 :                       if (res) return res;
    4666                 :             :                     }
    4667                 :           0 :                     break;
    4668                 :             :                   }
    4669                 :             :                 default:;
    4670                 :             :                 }
    4671                 :             :               break;
    4672                 :             :             }
    4673                 :             :           default:;
    4674                 :             :           }
    4675                 :             :         break;
    4676                 :             :       }
    4677                 :        7915 :     CASE_CONVERT:
    4678                 :        7915 :       {
    4679                 :        7915 :         tree _q20 = TREE_OPERAND (_p0, 0);
    4680                 :        7915 :         switch (TREE_CODE (_q20))
    4681                 :             :           {
    4682                 :           0 :           case BIT_AND_EXPR:
    4683                 :           0 :             {
    4684                 :           0 :               tree _q30 = TREE_OPERAND (_q20, 0);
    4685                 :           0 :               tree _q31 = TREE_OPERAND (_q20, 1);
    4686                 :           0 :               switch (TREE_CODE (_q31))
    4687                 :             :                 {
    4688                 :           0 :                 case INTEGER_CST:
    4689                 :           0 :                   {
    4690                 :           0 :                     switch (TREE_CODE (_p1))
    4691                 :             :                       {
    4692                 :           0 :                       case INTEGER_CST:
    4693                 :           0 :                         {
    4694                 :           0 :                           {
    4695                 :           0 :                             tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
    4696                 :           0 :                             tree res = generic_simplify_290 (loc, type, _p0, _p1, captures, EXACT_DIV_EXPR);
    4697                 :           0 :                             if (res) return res;
    4698                 :             :                           }
    4699                 :           0 :                           break;
    4700                 :             :                         }
    4701                 :             :                       default:;
    4702                 :             :                       }
    4703                 :             :                     break;
    4704                 :             :                   }
    4705                 :             :                 default:;
    4706                 :             :                 }
    4707                 :             :               break;
    4708                 :             :             }
    4709                 :             :           default:;
    4710                 :             :           }
    4711                 :             :         break;
    4712                 :             :       }
    4713                 :           0 :     case BIT_AND_EXPR:
    4714                 :           0 :       {
    4715                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
    4716                 :           0 :         tree _q21 = TREE_OPERAND (_p0, 1);
    4717                 :           0 :         switch (TREE_CODE (_q21))
    4718                 :             :           {
    4719                 :           0 :           case INTEGER_CST:
    4720                 :           0 :             {
    4721                 :           0 :               switch (TREE_CODE (_p1))
    4722                 :             :                 {
    4723                 :           0 :                 case INTEGER_CST:
    4724                 :           0 :                   {
    4725                 :           0 :                     {
    4726                 :           0 :                       tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
    4727                 :           0 :                       tree res = generic_simplify_290 (loc, type, _p0, _p1, captures, EXACT_DIV_EXPR);
    4728                 :           0 :                       if (res) return res;
    4729                 :             :                     }
    4730                 :           0 :                     break;
    4731                 :             :                   }
    4732                 :             :                 default:;
    4733                 :             :                 }
    4734                 :             :               break;
    4735                 :             :             }
    4736                 :             :           default:;
    4737                 :             :           }
    4738                 :             :         break;
    4739                 :             :       }
    4740                 :        4187 :     case MULT_EXPR:
    4741                 :        4187 :       {
    4742                 :        4187 :         tree _q20 = TREE_OPERAND (_p0, 0);
    4743                 :        4187 :         tree _q21 = TREE_OPERAND (_p0, 1);
    4744                 :        4187 :         if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
    4745                 :             :           {
    4746                 :        3783 :             {
    4747                 :        3783 :               tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
    4748                 :        3783 :               tree res = generic_simplify_291 (loc, type, _p0, _p1, captures, EXACT_DIV_EXPR);
    4749                 :        3783 :               if (res) return res;
    4750                 :             :             }
    4751                 :             :           }
    4752                 :        4178 :         if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
    4753                 :             :           {
    4754                 :           0 :             {
    4755                 :           0 :               tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
    4756                 :           0 :               tree res = generic_simplify_291 (loc, type, _p0, _p1, captures, EXACT_DIV_EXPR);
    4757                 :           0 :               if (res) return res;
    4758                 :             :             }
    4759                 :             :           }
    4760                 :        4178 :         switch (TREE_CODE (_q21))
    4761                 :             :           {
    4762                 :        4178 :           case INTEGER_CST:
    4763                 :        4178 :             {
    4764                 :        4178 :               switch (TREE_CODE (_p1))
    4765                 :             :                 {
    4766                 :           0 :                 case MULT_EXPR:
    4767                 :           0 :                   {
    4768                 :           0 :                     tree _q50 = TREE_OPERAND (_p1, 0);
    4769                 :           0 :                     tree _q51 = TREE_OPERAND (_p1, 1);
    4770                 :           0 :                     if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
    4771                 :             :                       {
    4772                 :           0 :                         switch (TREE_CODE (_q51))
    4773                 :             :                           {
    4774                 :           0 :                           case INTEGER_CST:
    4775                 :           0 :                             {
    4776                 :           0 :                               {
    4777                 :           0 :                                 tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
    4778                 :           0 :                                 tree res = generic_simplify_292 (loc, type, _p0, _p1, captures, EXACT_DIV_EXPR);
    4779                 :           0 :                                 if (res) return res;
    4780                 :             :                               }
    4781                 :           0 :                               break;
    4782                 :             :                             }
    4783                 :             :                           default:;
    4784                 :             :                           }
    4785                 :             :                       }
    4786                 :             :                     break;
    4787                 :             :                   }
    4788                 :             :                 default:;
    4789                 :             :                 }
    4790                 :             :               break;
    4791                 :             :             }
    4792                 :             :           default:;
    4793                 :             :           }
    4794                 :             :         break;
    4795                 :             :       }
    4796                 :             :     default:;
    4797                 :             :     }
    4798                 :             :   return NULL_TREE;
    4799                 :             : }
    4800                 :             : 
    4801                 :             : tree
    4802                 :     6165509 : generic_simplify_RDIV_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
    4803                 :             : {
    4804                 :     6165509 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    4805                 :     6165509 :   if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
    4806                 :             :     {
    4807                 :         703 :       {
    4808                 :         703 :         tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
    4809                 :           1 :         if (FLOAT_TYPE_P (type)
    4810                 :         703 :  && ! HONOR_NANS (type)
    4811                 :         705 :  && ! HONOR_INFINITIES (type)
    4812                 :             : )
    4813                 :             :           {
    4814                 :           2 :             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1439;
    4815                 :           2 :             {
    4816                 :           2 :               tree _r;
    4817                 :           2 :               _r =  build_one_cst (type);
    4818                 :           2 :               if (TREE_SIDE_EFFECTS (captures[0]))
    4819                 :           0 :                 _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    4820                 :           2 :               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 886, __FILE__, __LINE__, true);
    4821                 :           2 :               return _r;
    4822                 :             :             }
    4823                 :           0 : next_after_fail1439:;
    4824                 :             :           }
    4825                 :             :       }
    4826                 :             :     }
    4827                 :     6165507 :   switch (TREE_CODE (_p1))
    4828                 :             :     {
    4829                 :       18920 :     case NEGATE_EXPR:
    4830                 :       18920 :       {
    4831                 :       18920 :         tree _q30 = TREE_OPERAND (_p1, 0);
    4832                 :       18920 :         if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
    4833                 :             :           {
    4834                 :           0 :             {
    4835                 :           0 :               tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
    4836                 :           0 :               tree res = generic_simplify_301 (loc, type, _p0, _p1, captures);
    4837                 :           0 :               if (res) return res;
    4838                 :             :             }
    4839                 :             :           }
    4840                 :             :         break;
    4841                 :             :       }
    4842                 :     6165507 :     default:;
    4843                 :             :     }
    4844                 :     6165507 :   switch (TREE_CODE (_p0))
    4845                 :             :     {
    4846                 :       94668 :     case NEGATE_EXPR:
    4847                 :       94668 :       {
    4848                 :       94668 :         tree _q20 = TREE_OPERAND (_p0, 0);
    4849                 :       94668 :         if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
    4850                 :             :           {
    4851                 :           2 :             {
    4852                 :           2 :               tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
    4853                 :           2 :               tree res = generic_simplify_301 (loc, type, _p0, _p1, captures);
    4854                 :           2 :               if (res) return res;
    4855                 :             :             }
    4856                 :             :           }
    4857                 :             :         break;
    4858                 :             :       }
    4859                 :      517492 :     CASE_CONVERT:
    4860                 :      517492 :       {
    4861                 :      517492 :         tree _q20 = TREE_OPERAND (_p0, 0);
    4862                 :      517492 :         switch (TREE_CODE (_p1))
    4863                 :             :           {
    4864                 :       36800 :           CASE_CONVERT:
    4865                 :       36800 :             {
    4866                 :       36800 :               tree _q40 = TREE_OPERAND (_p1, 0);
    4867                 :       36800 :               switch (TREE_CODE (_q40))
    4868                 :             :                 {
    4869                 :           0 :                 case ABS_EXPR:
    4870                 :           0 :                   {
    4871                 :           0 :                     tree _q50 = TREE_OPERAND (_q40, 0);
    4872                 :           0 :                     if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
    4873                 :             :                       {
    4874                 :           0 :                         {
    4875                 :           0 :                           tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
    4876                 :           0 :                           tree res = generic_simplify_302 (loc, type, _p0, _p1, captures);
    4877                 :           0 :                           if (res) return res;
    4878                 :             :                         }
    4879                 :             :                       }
    4880                 :             :                     break;
    4881                 :             :                   }
    4882                 :             :                 default:;
    4883                 :             :                 }
    4884                 :             :               break;
    4885                 :             :             }
    4886                 :      517492 :           default:;
    4887                 :             :           }
    4888                 :      517492 :         switch (TREE_CODE (_q20))
    4889                 :             :           {
    4890                 :           0 :           case ABS_EXPR:
    4891                 :           0 :             {
    4892                 :           0 :               tree _q30 = TREE_OPERAND (_q20, 0);
    4893                 :           0 :               switch (TREE_CODE (_p1))
    4894                 :             :                 {
    4895                 :           0 :                 CASE_CONVERT:
    4896                 :           0 :                   {
    4897                 :           0 :                     tree _q50 = TREE_OPERAND (_p1, 0);
    4898                 :           0 :                     if ((_q50 == _q30 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q30, 0) && types_match (_q50, _q30)))
    4899                 :             :                       {
    4900                 :           0 :                         {
    4901                 :           0 :                           tree captures[1] ATTRIBUTE_UNUSED = { _q30 };
    4902                 :           0 :                           tree res = generic_simplify_302 (loc, type, _p0, _p1, captures);
    4903                 :           0 :                           if (res) return res;
    4904                 :             :                         }
    4905                 :             :                       }
    4906                 :             :                     break;
    4907                 :             :                   }
    4908                 :             :                 default:;
    4909                 :             :                 }
    4910                 :             :               break;
    4911                 :             :             }
    4912                 :             :           default:;
    4913                 :             :           }
    4914                 :             :         break;
    4915                 :             :       }
    4916                 :     6165507 :     default:;
    4917                 :             :     }
    4918                 :     6165507 :   switch (TREE_CODE (_p1))
    4919                 :             :     {
    4920                 :          54 :     case ABS_EXPR:
    4921                 :          54 :       {
    4922                 :          54 :         tree _q30 = TREE_OPERAND (_p1, 0);
    4923                 :          54 :         if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
    4924                 :             :           {
    4925                 :           0 :             {
    4926                 :           0 :               tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
    4927                 :           0 :               tree res = generic_simplify_302 (loc, type, _p0, _p1, captures);
    4928                 :           0 :               if (res) return res;
    4929                 :             :             }
    4930                 :             :           }
    4931                 :             :         break;
    4932                 :             :       }
    4933                 :     6165507 :     default:;
    4934                 :             :     }
    4935                 :     6165507 :   switch (TREE_CODE (_p0))
    4936                 :             :     {
    4937                 :         163 :     case ABS_EXPR:
    4938                 :         163 :       {
    4939                 :         163 :         tree _q20 = TREE_OPERAND (_p0, 0);
    4940                 :         163 :         if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
    4941                 :             :           {
    4942                 :           0 :             {
    4943                 :           0 :               tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
    4944                 :           0 :               tree res = generic_simplify_302 (loc, type, _p0, _p1, captures);
    4945                 :           0 :               if (res) return res;
    4946                 :             :             }
    4947                 :             :           }
    4948                 :             :         break;
    4949                 :             :       }
    4950                 :     6165507 :     default:;
    4951                 :             :     }
    4952                 :     6165507 :   if (real_onep (_p1))
    4953                 :             :     {
    4954                 :          88 :       {
    4955                 :          88 :         tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
    4956                 :          88 :         if (!tree_expr_maybe_signaling_nan_p (captures[0])
    4957                 :             : )
    4958                 :             :           {
    4959                 :          88 :             if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1440;
    4960                 :          88 :             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1440;
    4961                 :          88 :             {
    4962                 :          88 :               tree res_op0;
    4963                 :          88 :               res_op0 = captures[0];
    4964                 :          88 :               tree _r;
    4965                 :          88 :               _r = non_lvalue_loc (loc, res_op0);
    4966                 :          88 :               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 887, __FILE__, __LINE__, true);
    4967                 :          88 :               return _r;
    4968                 :             :             }
    4969                 :             : next_after_fail1440:;
    4970                 :             :           }
    4971                 :             :       }
    4972                 :             :     }
    4973                 :     6165419 :   if (real_minus_onep (_p1))
    4974                 :             :     {
    4975                 :          37 :       {
    4976                 :          37 :         tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
    4977                 :          37 :         if (!tree_expr_maybe_signaling_nan_p (captures[0])
    4978                 :             : )
    4979                 :             :           {
    4980                 :          37 :             if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1441;
    4981                 :          37 :             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1441;
    4982                 :          37 :             {
    4983                 :          37 :               tree res_op0;
    4984                 :          37 :               res_op0 = captures[0];
    4985                 :          37 :               tree _r;
    4986                 :          37 :               _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
    4987                 :          37 :               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 888, __FILE__, __LINE__, true);
    4988                 :          37 :               return _r;
    4989                 :             :             }
    4990                 :             : next_after_fail1441:;
    4991                 :             :           }
    4992                 :             :       }
    4993                 :             :     }
    4994                 :     6165382 :   switch (TREE_CODE (_p0))
    4995                 :             :     {
    4996                 :       37462 :     case RDIV_EXPR:
    4997                 :       37462 :       {
    4998                 :       37462 :         tree _q20 = TREE_OPERAND (_p0, 0);
    4999                 :       37462 :         tree _q21 = TREE_OPERAND (_p0, 1);
    5000                 :       37462 :         {
    5001                 :       37462 :           tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
    5002                 :       37462 :           if (flag_reciprocal_math
    5003                 :             : )
    5004                 :             :             {
    5005                 :          12 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1442;
    5006                 :          12 :               {
    5007                 :          12 :                 tree res_op0;
    5008                 :          12 :                 res_op0 = captures[1];
    5009                 :          12 :                 tree res_op1;
    5010                 :          12 :                 {
    5011                 :          12 :                   tree _o1[2], _r1;
    5012                 :          12 :                   _o1[0] = captures[2];
    5013                 :          12 :                   _o1[1] = captures[3];
    5014                 :          12 :                   _r1 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    5015                 :          12 :                   res_op1 = _r1;
    5016                 :             :                 }
    5017                 :          12 :                 tree _r;
    5018                 :          12 :                 _r = fold_build2_loc (loc, RDIV_EXPR, type, res_op0, res_op1);
    5019                 :          12 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 889, __FILE__, __LINE__, true);
    5020                 :          12 :                 return _r;
    5021                 :             :               }
    5022                 :           0 : next_after_fail1442:;
    5023                 :             :             }
    5024                 :             :         }
    5025                 :       37450 :         break;
    5026                 :             :       }
    5027                 :     6165370 :     default:;
    5028                 :             :     }
    5029                 :     6165370 :   switch (TREE_CODE (_p1))
    5030                 :             :     {
    5031                 :      959141 :     case MULT_EXPR:
    5032                 :      959141 :       {
    5033                 :      959141 :         tree _q30 = TREE_OPERAND (_p1, 0);
    5034                 :      959141 :         tree _q31 = TREE_OPERAND (_p1, 1);
    5035                 :      959141 :         switch (TREE_CODE (_q31))
    5036                 :             :           {
    5037                 :      376414 :           case REAL_CST:
    5038                 :      376414 :             {
    5039                 :      376414 :               {
    5040                 :      376414 :                 tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31 };
    5041                 :      376414 :                 if (flag_reciprocal_math
    5042                 :             : )
    5043                 :             :                   {
    5044                 :         224 :                     {
    5045                 :         224 :  tree tem = const_binop (RDIV_EXPR, type, build_one_cst (type), captures[3]);
    5046                 :         224 :                         if (tem
    5047                 :             : )
    5048                 :             :                           {
    5049                 :         224 :                             if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1443;
    5050                 :         224 :                             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1443;
    5051                 :         224 :                             {
    5052                 :         224 :                               tree res_op0;
    5053                 :         224 :                               {
    5054                 :         224 :                                 tree _o1[2], _r1;
    5055                 :         224 :                                 _o1[0] = captures[0];
    5056                 :         224 :                                 _o1[1] =  tem;
    5057                 :         224 :                                 _r1 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    5058                 :         224 :                                 res_op0 = _r1;
    5059                 :             :                               }
    5060                 :         224 :                               tree res_op1;
    5061                 :         224 :                               res_op1 = captures[2];
    5062                 :         224 :                               tree _r;
    5063                 :         224 :                               _r = fold_build2_loc (loc, RDIV_EXPR, type, res_op0, res_op1);
    5064                 :         224 :                               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 890, __FILE__, __LINE__, true);
    5065                 :         224 :                               return _r;
    5066                 :             :                             }
    5067                 :      376190 : next_after_fail1443:;
    5068                 :             :                           }
    5069                 :             :                     }
    5070                 :             :                   }
    5071                 :             :               }
    5072                 :      376190 :               break;
    5073                 :             :             }
    5074                 :             :           default:;
    5075                 :             :           }
    5076                 :             :         break;
    5077                 :             :       }
    5078                 :           1 :     case RDIV_EXPR:
    5079                 :           1 :       {
    5080                 :           1 :         tree _q30 = TREE_OPERAND (_p1, 0);
    5081                 :           1 :         tree _q31 = TREE_OPERAND (_p1, 1);
    5082                 :           1 :         {
    5083                 :           1 :           tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31 };
    5084                 :           1 :           if (flag_reciprocal_math
    5085                 :             : )
    5086                 :             :             {
    5087                 :           1 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1444;
    5088                 :           1 :               {
    5089                 :           1 :                 tree res_op0;
    5090                 :           1 :                 {
    5091                 :           1 :                   tree _o1[2], _r1;
    5092                 :           1 :                   _o1[0] = captures[0];
    5093                 :           1 :                   _o1[1] = captures[2];
    5094                 :           1 :                   _r1 = fold_build2_loc (loc, RDIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    5095                 :           1 :                   res_op0 = _r1;
    5096                 :             :                 }
    5097                 :           1 :                 tree res_op1;
    5098                 :           1 :                 res_op1 = captures[3];
    5099                 :           1 :                 tree _r;
    5100                 :           1 :                 _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
    5101                 :           1 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 891, __FILE__, __LINE__, true);
    5102                 :           1 :                 return _r;
    5103                 :             :               }
    5104                 :           0 : next_after_fail1444:;
    5105                 :             :             }
    5106                 :             :         }
    5107                 :           0 :         break;
    5108                 :             :       }
    5109                 :       18920 :     case NEGATE_EXPR:
    5110                 :       18920 :       {
    5111                 :       18920 :         tree _q30 = TREE_OPERAND (_p1, 0);
    5112                 :       18920 :         {
    5113                 :       18920 :           tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
    5114                 :       18920 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1445;
    5115                 :       18920 :           {
    5116                 :       18920 :             tree res_op0;
    5117                 :       18920 :             {
    5118                 :       18920 :               tree _o1[1], _r1;
    5119                 :       18920 :               _o1[0] = captures[0];
    5120                 :       18920 :               _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
    5121                 :       18920 :               res_op0 = _r1;
    5122                 :             :             }
    5123                 :       18920 :             tree res_op1;
    5124                 :       18920 :             res_op1 = captures[1];
    5125                 :       18920 :             tree _r;
    5126                 :       18920 :             _r = fold_build2_loc (loc, RDIV_EXPR, type, res_op0, res_op1);
    5127                 :       18920 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 892, __FILE__, __LINE__, true);
    5128                 :       18920 :             return _r;
    5129                 :             :           }
    5130                 :           0 : next_after_fail1445:;
    5131                 :             :         }
    5132                 :           0 :         break;
    5133                 :             :       }
    5134                 :      998160 :     case REAL_CST:
    5135                 :      998160 :       {
    5136                 :      998160 :         {
    5137                 :      998160 :           tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    5138                 :      998160 :           if (optimize
    5139                 :             : )
    5140                 :             :             {
    5141                 :      992703 :               if (flag_reciprocal_math
    5142                 :      992703 :  && !real_zerop (captures[1])
    5143                 :             : )
    5144                 :             :                 {
    5145                 :         550 :                   {
    5146                 :         550 :  tree tem = const_binop (RDIV_EXPR, type, build_one_cst (type), captures[1]);
    5147                 :         550 :                       if (tem
    5148                 :             : )
    5149                 :             :                         {
    5150                 :         549 :                           if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1446;
    5151                 :         549 :                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1446;
    5152                 :         549 :                           {
    5153                 :         549 :                             tree res_op0;
    5154                 :         549 :                             res_op0 = captures[0];
    5155                 :         549 :                             tree res_op1;
    5156                 :         549 :                             res_op1 =  tem;
    5157                 :         549 :                             tree _r;
    5158                 :         549 :                             _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
    5159                 :         549 :                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 893, __FILE__, __LINE__, true);
    5160                 :         549 :                             return _r;
    5161                 :             :                           }
    5162                 :      696530 : next_after_fail1446:;
    5163                 :             :                         }
    5164                 :             :                   }
    5165                 :             :                 }
    5166                 :             :               else
    5167                 :             :                 {
    5168                 :      992153 :                   if (REAL_CST != COMPLEX_CST
    5169                 :             : )
    5170                 :             :                     {
    5171                 :      992153 :                       {
    5172                 :      992153 :  tree inverse = exact_inverse (type, captures[1]);
    5173                 :      992153 :                           if (inverse
    5174                 :             : )
    5175                 :             :                             {
    5176                 :      301081 :                               if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1447;
    5177                 :      301081 :                               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1447;
    5178                 :      301081 :                               {
    5179                 :      301081 :                                 tree res_op0;
    5180                 :      301081 :                                 res_op0 = captures[0];
    5181                 :      301081 :                                 tree res_op1;
    5182                 :      301081 :                                 res_op1 =  inverse;
    5183                 :      301081 :                                 tree _r;
    5184                 :      301081 :                                 _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
    5185                 :      301081 :                                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 894, __FILE__, __LINE__, true);
    5186                 :      301081 :                                 return _r;
    5187                 :             :                               }
    5188                 :      696530 : next_after_fail1447:;
    5189                 :             :                             }
    5190                 :             :                       }
    5191                 :             :                     }
    5192                 :             :                 }
    5193                 :             :             }
    5194                 :             :         }
    5195                 :      696530 :         break;
    5196                 :             :       }
    5197                 :         114 :     case COMPLEX_CST:
    5198                 :         114 :       {
    5199                 :         114 :         {
    5200                 :         114 :           tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    5201                 :         114 :           if (optimize
    5202                 :             : )
    5203                 :             :             {
    5204                 :         106 :               if (flag_reciprocal_math
    5205                 :         106 :  && !real_zerop (captures[1])
    5206                 :             : )
    5207                 :             :                 {
    5208                 :           7 :                   {
    5209                 :           7 :  tree tem = const_binop (RDIV_EXPR, type, build_one_cst (type), captures[1]);
    5210                 :           7 :                       if (tem
    5211                 :             : )
    5212                 :             :                         {
    5213                 :           7 :                           if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1448;
    5214                 :           7 :                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1448;
    5215                 :           7 :                           {
    5216                 :           7 :                             tree res_op0;
    5217                 :           7 :                             res_op0 = captures[0];
    5218                 :           7 :                             tree res_op1;
    5219                 :           7 :                             res_op1 =  tem;
    5220                 :           7 :                             tree _r;
    5221                 :           7 :                             _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
    5222                 :           7 :                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 893, __FILE__, __LINE__, true);
    5223                 :           7 :                             return _r;
    5224                 :             :                           }
    5225                 :         107 : next_after_fail1448:;
    5226                 :             :                         }
    5227                 :             :                   }
    5228                 :             :                 }
    5229                 :             :               else
    5230                 :             :                 {
    5231                 :             :                   if (COMPLEX_CST != COMPLEX_CST
    5232                 :             : )
    5233                 :             :                     {
    5234                 :             :                       {
    5235                 :             :  tree inverse = exact_inverse (type, captures[1]);
    5236                 :             :                           if (inverse
    5237                 :             : )
    5238                 :             :                             {
    5239                 :             :                               if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1449;
    5240                 :             :                               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1449;
    5241                 :             :                               {
    5242                 :             :                                 tree res_op0;
    5243                 :             :                                 res_op0 = captures[0];
    5244                 :             :                                 tree res_op1;
    5245                 :             :                                 res_op1 =  inverse;
    5246                 :             :                                 tree _r;
    5247                 :             :                                 _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
    5248                 :             :                                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 894, __FILE__, __LINE__, true);
    5249                 :             :                                 return _r;
    5250                 :             :                               }
    5251                 :             : next_after_fail1449:;
    5252                 :             :                             }
    5253                 :             :                       }
    5254                 :             :                     }
    5255                 :             :                 }
    5256                 :             :             }
    5257                 :             :         }
    5258                 :         107 :         break;
    5259                 :             :       }
    5260                 :          43 :     case VECTOR_CST:
    5261                 :          43 :       {
    5262                 :          43 :         {
    5263                 :          43 :           tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    5264                 :          43 :           if (optimize
    5265                 :             : )
    5266                 :             :             {
    5267                 :          39 :               if (flag_reciprocal_math
    5268                 :          39 :  && !real_zerop (captures[1])
    5269                 :             : )
    5270                 :             :                 {
    5271                 :           4 :                   {
    5272                 :           4 :  tree tem = const_binop (RDIV_EXPR, type, build_one_cst (type), captures[1]);
    5273                 :           4 :                       if (tem
    5274                 :             : )
    5275                 :             :                         {
    5276                 :           0 :                           if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1450;
    5277                 :           0 :                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1450;
    5278                 :           0 :                           {
    5279                 :           0 :                             tree res_op0;
    5280                 :           0 :                             res_op0 = captures[0];
    5281                 :           0 :                             tree res_op1;
    5282                 :           0 :                             res_op1 =  tem;
    5283                 :           0 :                             tree _r;
    5284                 :           0 :                             _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
    5285                 :           0 :                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 893, __FILE__, __LINE__, true);
    5286                 :           0 :                             return _r;
    5287                 :             :                           }
    5288                 :          15 : next_after_fail1450:;
    5289                 :             :                         }
    5290                 :             :                   }
    5291                 :             :                 }
    5292                 :             :               else
    5293                 :             :                 {
    5294                 :          35 :                   if (VECTOR_CST != COMPLEX_CST
    5295                 :             : )
    5296                 :             :                     {
    5297                 :          35 :                       {
    5298                 :          35 :  tree inverse = exact_inverse (type, captures[1]);
    5299                 :          35 :                           if (inverse
    5300                 :             : )
    5301                 :             :                             {
    5302                 :          28 :                               if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1451;
    5303                 :          28 :                               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1451;
    5304                 :          28 :                               {
    5305                 :          28 :                                 tree res_op0;
    5306                 :          28 :                                 res_op0 = captures[0];
    5307                 :          28 :                                 tree res_op1;
    5308                 :          28 :                                 res_op1 =  inverse;
    5309                 :          28 :                                 tree _r;
    5310                 :          28 :                                 _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
    5311                 :          28 :                                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 894, __FILE__, __LINE__, true);
    5312                 :          28 :                                 return _r;
    5313                 :             :                               }
    5314                 :          15 : next_after_fail1451:;
    5315                 :             :                             }
    5316                 :             :                       }
    5317                 :             :                     }
    5318                 :             :                 }
    5319                 :             :             }
    5320                 :             :         }
    5321                 :          15 :         break;
    5322                 :             :       }
    5323                 :     5844560 :     default:;
    5324                 :             :     }
    5325                 :     5844560 :   switch (TREE_CODE (_p0))
    5326                 :             :     {
    5327                 :           0 :     case VEC_COND_EXPR:
    5328                 :           0 :       {
    5329                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
    5330                 :           0 :         tree _q21 = TREE_OPERAND (_p0, 1);
    5331                 :           0 :         tree _q22 = TREE_OPERAND (_p0, 2);
    5332                 :           0 :         switch (TREE_CODE (_p1))
    5333                 :             :           {
    5334                 :           0 :           case VEC_COND_EXPR:
    5335                 :           0 :             {
    5336                 :           0 :               tree _q60 = TREE_OPERAND (_p1, 0);
    5337                 :           0 :               tree _q61 = TREE_OPERAND (_p1, 1);
    5338                 :           0 :               tree _q62 = TREE_OPERAND (_p1, 2);
    5339                 :           0 :               if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
    5340                 :             :                 {
    5341                 :           0 :                   {
    5342                 :           0 :                     tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
    5343                 :           0 :                     if (TREE_CODE_CLASS (RDIV_EXPR) != tcc_comparison
    5344                 :             :  || types_match (type, TREE_TYPE (captures[2]))
    5345                 :             :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]), ERROR_MARK)
    5346                 :             :  || (optimize_vectors_before_lowering_p ()
    5347                 :             :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]),
    5348                 :             :  TREE_TYPE (captures[1]), ERROR_MARK))
    5349                 :             : )
    5350                 :             :                       {
    5351                 :           0 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1452;
    5352                 :           0 :                         {
    5353                 :           0 :                           tree res_op0;
    5354                 :           0 :                           res_op0 = captures[1];
    5355                 :           0 :                           tree res_op1;
    5356                 :           0 :                           {
    5357                 :           0 :                             tree _o1[2], _r1;
    5358                 :           0 :                             _o1[0] = captures[2];
    5359                 :           0 :                             _o1[1] = captures[5];
    5360                 :           0 :                             _r1 = fold_build2_loc (loc, RDIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    5361                 :           0 :                             if (EXPR_P (_r1))
    5362                 :           0 :                               goto next_after_fail1452;
    5363                 :           0 :                             res_op1 = _r1;
    5364                 :             :                           }
    5365                 :           0 :                           tree res_op2;
    5366                 :           0 :                           {
    5367                 :           0 :                             tree _o1[2], _r1;
    5368                 :           0 :                             _o1[0] = captures[3];
    5369                 :           0 :                             _o1[1] = captures[6];
    5370                 :           0 :                             _r1 = fold_build2_loc (loc, RDIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    5371                 :           0 :                             if (EXPR_P (_r1))
    5372                 :           0 :                               goto next_after_fail1452;
    5373                 :           0 :                             res_op2 = _r1;
    5374                 :             :                           }
    5375                 :           0 :                           tree _r;
    5376                 :           0 :                           _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    5377                 :           0 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 793, __FILE__, __LINE__, true);
    5378                 :           0 :                           return _r;
    5379                 :             :                         }
    5380                 :           0 : next_after_fail1452:;
    5381                 :             :                       }
    5382                 :             :                   }
    5383                 :             :                 }
    5384                 :             :               break;
    5385                 :             :             }
    5386                 :           0 :           default:;
    5387                 :             :           }
    5388                 :           0 :         {
    5389                 :           0 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
    5390                 :           0 :           if (TREE_CODE_CLASS (RDIV_EXPR) != tcc_comparison
    5391                 :             :  || types_match (type, TREE_TYPE (captures[2]))
    5392                 :             :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]), ERROR_MARK)
    5393                 :             :  || (optimize_vectors_before_lowering_p ()
    5394                 :             :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]),
    5395                 :             :  TREE_TYPE (captures[1]), ERROR_MARK))
    5396                 :             : )
    5397                 :             :             {
    5398                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1453;
    5399                 :           0 :               {
    5400                 :           0 :                 if (! tree_invariant_p (captures[4])) goto next_after_fail1453;
    5401                 :           0 :                 tree res_op0;
    5402                 :           0 :                 res_op0 = captures[1];
    5403                 :           0 :                 tree res_op1;
    5404                 :           0 :                 {
    5405                 :           0 :                   tree _o1[2], _r1;
    5406                 :           0 :                   _o1[0] = captures[2];
    5407                 :           0 :                   _o1[1] = unshare_expr (captures[4]);
    5408                 :           0 :                   _r1 = fold_build2_loc (loc, RDIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    5409                 :           0 :                   if (EXPR_P (_r1))
    5410                 :           0 :                     goto next_after_fail1453;
    5411                 :           0 :                   res_op1 = _r1;
    5412                 :             :                 }
    5413                 :           0 :                 tree res_op2;
    5414                 :           0 :                 {
    5415                 :           0 :                   tree _o1[2], _r1;
    5416                 :           0 :                   _o1[0] = captures[3];
    5417                 :           0 :                   _o1[1] = captures[4];
    5418                 :           0 :                   _r1 = fold_build2_loc (loc, RDIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    5419                 :           0 :                   if (EXPR_P (_r1))
    5420                 :           0 :                     goto next_after_fail1453;
    5421                 :           0 :                   res_op2 = _r1;
    5422                 :             :                 }
    5423                 :           0 :                 tree _r;
    5424                 :           0 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    5425                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 794, __FILE__, __LINE__, true);
    5426                 :           0 :                 return _r;
    5427                 :             :               }
    5428                 :           0 : next_after_fail1453:;
    5429                 :             :             }
    5430                 :             :         }
    5431                 :           0 :         break;
    5432                 :             :       }
    5433                 :     5844560 :     default:;
    5434                 :             :     }
    5435                 :     5844560 :   switch (TREE_CODE (_p1))
    5436                 :             :     {
    5437                 :           0 :     case VEC_COND_EXPR:
    5438                 :           0 :       {
    5439                 :           0 :         tree _q30 = TREE_OPERAND (_p1, 0);
    5440                 :           0 :         tree _q31 = TREE_OPERAND (_p1, 1);
    5441                 :           0 :         tree _q32 = TREE_OPERAND (_p1, 2);
    5442                 :           0 :         {
    5443                 :           0 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
    5444                 :           0 :           if (TREE_CODE_CLASS (RDIV_EXPR) != tcc_comparison
    5445                 :             :  || types_match (type, TREE_TYPE (captures[3]))
    5446                 :             :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]), ERROR_MARK)
    5447                 :             :  || (optimize_vectors_before_lowering_p ()
    5448                 :             :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]),
    5449                 :             :  TREE_TYPE (captures[2]), ERROR_MARK))
    5450                 :             : )
    5451                 :             :             {
    5452                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1454;
    5453                 :           0 :               {
    5454                 :           0 :                 if (! tree_invariant_p (captures[0])) goto next_after_fail1454;
    5455                 :           0 :                 tree res_op0;
    5456                 :           0 :                 res_op0 = captures[2];
    5457                 :           0 :                 tree res_op1;
    5458                 :           0 :                 {
    5459                 :           0 :                   tree _o1[2], _r1;
    5460                 :           0 :                   _o1[0] = unshare_expr (captures[0]);
    5461                 :           0 :                   _o1[1] = captures[3];
    5462                 :           0 :                   _r1 = fold_build2_loc (loc, RDIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    5463                 :           0 :                   if (EXPR_P (_r1))
    5464                 :           0 :                     goto next_after_fail1454;
    5465                 :           0 :                   res_op1 = _r1;
    5466                 :             :                 }
    5467                 :           0 :                 tree res_op2;
    5468                 :           0 :                 {
    5469                 :           0 :                   tree _o1[2], _r1;
    5470                 :           0 :                   _o1[0] = captures[0];
    5471                 :           0 :                   _o1[1] = captures[4];
    5472                 :           0 :                   _r1 = fold_build2_loc (loc, RDIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    5473                 :           0 :                   if (EXPR_P (_r1))
    5474                 :           0 :                     goto next_after_fail1454;
    5475                 :           0 :                   res_op2 = _r1;
    5476                 :             :                 }
    5477                 :           0 :                 tree _r;
    5478                 :           0 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    5479                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 795, __FILE__, __LINE__, true);
    5480                 :           0 :                 return _r;
    5481                 :             :               }
    5482                 :           0 : next_after_fail1454:;
    5483                 :             :             }
    5484                 :             :         }
    5485                 :           0 :         break;
    5486                 :             :       }
    5487                 :      773332 :     case CALL_EXPR:
    5488                 :      773332 :       switch (get_call_combined_fn (_p1))
    5489                 :             :         {
    5490                 :          20 :         case CFN_BUILT_IN_SQRTF:
    5491                 :          20 :           if (call_expr_nargs (_p1) == 1)
    5492                 :             :     {
    5493                 :          20 :               tree _q30 = CALL_EXPR_ARG (_p1, 0);
    5494                 :          20 :               switch (TREE_CODE (_q30))
    5495                 :             :                 {
    5496                 :           0 :                 case RDIV_EXPR:
    5497                 :           0 :                   {
    5498                 :           0 :                     tree _q40 = TREE_OPERAND (_q30, 0);
    5499                 :           0 :                     tree _q41 = TREE_OPERAND (_q30, 1);
    5500                 :           0 :                     {
    5501                 :           0 :                       tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q40, _q41 };
    5502                 :           0 :                       if (flag_unsafe_math_optimizations
    5503                 :             : )
    5504                 :             :                         {
    5505                 :           0 :                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1455;
    5506                 :           0 :                           {
    5507                 :           0 :                             tree res_op0;
    5508                 :           0 :                             res_op0 = captures[0];
    5509                 :           0 :                             tree res_op1;
    5510                 :           0 :                             {
    5511                 :           0 :                               tree _o1[1], _r1;
    5512                 :           0 :                               {
    5513                 :           0 :                                 tree _o2[2], _r2;
    5514                 :           0 :                                 _o2[0] = captures[4];
    5515                 :           0 :                                 _o2[1] = captures[3];
    5516                 :           0 :                                 _r2 = fold_build2_loc (loc, RDIV_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
    5517                 :           0 :                                 _o1[0] = _r2;
    5518                 :             :                               }
    5519                 :           0 :                               _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_SQRTF, TREE_TYPE (_o1[0]), 1, _o1[0]);
    5520                 :           0 :                               if (!_r1)
    5521                 :           0 :                                 goto next_after_fail1455;
    5522                 :           0 :                               res_op1 = _r1;
    5523                 :             :                             }
    5524                 :           0 :                             tree _r;
    5525                 :           0 :                             _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
    5526                 :           0 :                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 895, __FILE__, __LINE__, true);
    5527                 :           0 :                             return _r;
    5528                 :             :                           }
    5529                 :           0 : next_after_fail1455:;
    5530                 :             :                         }
    5531                 :             :                     }
    5532                 :           0 :                     break;
    5533                 :             :                   }
    5534                 :             :                 default:;
    5535                 :             :                 }
    5536                 :             :             }
    5537                 :             :           break;
    5538                 :           0 :         case CFN_BUILT_IN_SQRTL:
    5539                 :           0 :           if (call_expr_nargs (_p1) == 1)
    5540                 :             :     {
    5541                 :           0 :               tree _q30 = CALL_EXPR_ARG (_p1, 0);
    5542                 :           0 :               switch (TREE_CODE (_q30))
    5543                 :             :                 {
    5544                 :           0 :                 case RDIV_EXPR:
    5545                 :           0 :                   {
    5546                 :           0 :                     tree _q40 = TREE_OPERAND (_q30, 0);
    5547                 :           0 :                     tree _q41 = TREE_OPERAND (_q30, 1);
    5548                 :           0 :                     {
    5549                 :           0 :                       tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q40, _q41 };
    5550                 :           0 :                       if (flag_unsafe_math_optimizations
    5551                 :             : )
    5552                 :             :                         {
    5553                 :           0 :                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1456;
    5554                 :           0 :                           {
    5555                 :           0 :                             tree res_op0;
    5556                 :           0 :                             res_op0 = captures[0];
    5557                 :           0 :                             tree res_op1;
    5558                 :           0 :                             {
    5559                 :           0 :                               tree _o1[1], _r1;
    5560                 :           0 :                               {
    5561                 :           0 :                                 tree _o2[2], _r2;
    5562                 :           0 :                                 _o2[0] = captures[4];
    5563                 :           0 :                                 _o2[1] = captures[3];
    5564                 :           0 :                                 _r2 = fold_build2_loc (loc, RDIV_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
    5565                 :           0 :                                 _o1[0] = _r2;
    5566                 :             :                               }
    5567                 :           0 :                               _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_SQRTL, TREE_TYPE (_o1[0]), 1, _o1[0]);
    5568                 :           0 :                               if (!_r1)
    5569                 :           0 :                                 goto next_after_fail1456;
    5570                 :           0 :                               res_op1 = _r1;
    5571                 :             :                             }
    5572                 :           0 :                             tree _r;
    5573                 :           0 :                             _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
    5574                 :           0 :                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 895, __FILE__, __LINE__, true);
    5575                 :           0 :                             return _r;
    5576                 :             :                           }
    5577                 :           0 : next_after_fail1456:;
    5578                 :             :                         }
    5579                 :             :                     }
    5580                 :           0 :                     break;
    5581                 :             :                   }
    5582                 :             :                 default:;
    5583                 :             :                 }
    5584                 :             :             }
    5585                 :             :           break;
    5586                 :          27 :         case CFN_BUILT_IN_EXP:
    5587                 :          27 :           if (call_expr_nargs (_p1) == 1)
    5588                 :             :     {
    5589                 :          27 :               tree _q30 = CALL_EXPR_ARG (_p1, 0);
    5590                 :          27 :               {
    5591                 :          27 :                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q30 };
    5592                 :          27 :                 if (flag_unsafe_math_optimizations
    5593                 :             : )
    5594                 :             :                   {
    5595                 :          27 :                     if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1457;
    5596                 :          27 :                     {
    5597                 :          27 :                       tree res_op0;
    5598                 :          27 :                       res_op0 = captures[0];
    5599                 :          27 :                       tree res_op1;
    5600                 :          27 :                       {
    5601                 :          27 :                         tree _o1[1], _r1;
    5602                 :          27 :                         {
    5603                 :          27 :                           tree _o2[1], _r2;
    5604                 :          27 :                           _o2[0] = captures[2];
    5605                 :          27 :                           _r2 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
    5606                 :          27 :                           _o1[0] = _r2;
    5607                 :             :                         }
    5608                 :          27 :                         _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_EXP, TREE_TYPE (_o1[0]), 1, _o1[0]);
    5609                 :          27 :                         if (!_r1)
    5610                 :           0 :                           goto next_after_fail1457;
    5611                 :          27 :                         res_op1 = _r1;
    5612                 :             :                       }
    5613                 :          27 :                       tree _r;
    5614                 :          27 :                       _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
    5615                 :          27 :                       if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 896, __FILE__, __LINE__, true);
    5616                 :          27 :                       return _r;
    5617                 :             :                     }
    5618                 :           0 : next_after_fail1457:;
    5619                 :             :                   }
    5620                 :             :               }
    5621                 :             :             }
    5622                 :             :           break;
    5623                 :          24 :         case CFN_BUILT_IN_EXP10F:
    5624                 :          24 :           if (call_expr_nargs (_p1) == 1)
    5625                 :             :     {
    5626                 :          24 :               tree _q30 = CALL_EXPR_ARG (_p1, 0);
    5627                 :          24 :               {
    5628                 :          24 :                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q30 };
    5629                 :          24 :                 if (flag_unsafe_math_optimizations
    5630                 :             : )
    5631                 :             :                   {
    5632                 :          24 :                     if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1458;
    5633                 :          24 :                     {
    5634                 :          24 :                       tree res_op0;
    5635                 :          24 :                       res_op0 = captures[0];
    5636                 :          24 :                       tree res_op1;
    5637                 :          24 :                       {
    5638                 :          24 :                         tree _o1[1], _r1;
    5639                 :          24 :                         {
    5640                 :          24 :                           tree _o2[1], _r2;
    5641                 :          24 :                           _o2[0] = captures[2];
    5642                 :          24 :                           _r2 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
    5643                 :          24 :                           _o1[0] = _r2;
    5644                 :             :                         }
    5645                 :          24 :                         _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_EXP10F, TREE_TYPE (_o1[0]), 1, _o1[0]);
    5646                 :          24 :                         if (!_r1)
    5647                 :           0 :                           goto next_after_fail1458;
    5648                 :          24 :                         res_op1 = _r1;
    5649                 :             :                       }
    5650                 :          24 :                       tree _r;
    5651                 :          24 :                       _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
    5652                 :          24 :                       if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 896, __FILE__, __LINE__, true);
    5653                 :          24 :                       return _r;
    5654                 :             :                     }
    5655                 :           0 : next_after_fail1458:;
    5656                 :             :                   }
    5657                 :             :               }
    5658                 :             :             }
    5659                 :             :           break;
    5660                 :          24 :         case CFN_BUILT_IN_EXP10L:
    5661                 :          24 :           if (call_expr_nargs (_p1) == 1)
    5662                 :             :     {
    5663                 :          24 :               tree _q30 = CALL_EXPR_ARG (_p1, 0);
    5664                 :          24 :               {
    5665                 :          24 :                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q30 };
    5666                 :          24 :                 if (flag_unsafe_math_optimizations
    5667                 :             : )
    5668                 :             :                   {
    5669                 :          24 :                     if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1459;
    5670                 :          24 :                     {
    5671                 :          24 :                       tree res_op0;
    5672                 :          24 :                       res_op0 = captures[0];
    5673                 :          24 :                       tree res_op1;
    5674                 :          24 :                       {
    5675                 :          24 :                         tree _o1[1], _r1;
    5676                 :          24 :                         {
    5677                 :          24 :                           tree _o2[1], _r2;
    5678                 :          24 :                           _o2[0] = captures[2];
    5679                 :          24 :                           _r2 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
    5680                 :          24 :                           _o1[0] = _r2;
    5681                 :             :                         }
    5682                 :          24 :                         _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_EXP10L, TREE_TYPE (_o1[0]), 1, _o1[0]);
    5683                 :          24 :                         if (!_r1)
    5684                 :           0 :                           goto next_after_fail1459;
    5685                 :          24 :                         res_op1 = _r1;
    5686                 :             :                       }
    5687                 :          24 :                       tree _r;
    5688                 :          24 :                       _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
    5689                 :          24 :                       if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 896, __FILE__, __LINE__, true);
    5690                 :          24 :                       return _r;
    5691                 :             :                     }
    5692                 :           0 : next_after_fail1459:;
    5693                 :             :                   }
    5694                 :             :               }
    5695                 :             :             }
    5696                 :             :           break;
    5697                 :           3 :         case CFN_BUILT_IN_CBRT:
    5698                 :           3 :           if (call_expr_nargs (_p1) == 1)
    5699                 :             :     {
    5700                 :           3 :               tree _q30 = CALL_EXPR_ARG (_p1, 0);
    5701                 :           3 :               switch (TREE_CODE (_q30))
    5702                 :             :                 {
    5703                 :           2 :                 case RDIV_EXPR:
    5704                 :           2 :                   {
    5705                 :           2 :                     tree _q40 = TREE_OPERAND (_q30, 0);
    5706                 :           2 :                     tree _q41 = TREE_OPERAND (_q30, 1);
    5707                 :           2 :                     {
    5708                 :           2 :                       tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q40, _q41 };
    5709                 :           2 :                       if (flag_unsafe_math_optimizations
    5710                 :             : )
    5711                 :             :                         {
    5712                 :           2 :                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1460;
    5713                 :           2 :                           {
    5714                 :           2 :                             tree res_op0;
    5715                 :           2 :                             res_op0 = captures[0];
    5716                 :           2 :                             tree res_op1;
    5717                 :           2 :                             {
    5718                 :           2 :                               tree _o1[1], _r1;
    5719                 :           2 :                               {
    5720                 :           2 :                                 tree _o2[2], _r2;
    5721                 :           2 :                                 _o2[0] = captures[4];
    5722                 :           2 :                                 _o2[1] = captures[3];
    5723                 :           2 :                                 _r2 = fold_build2_loc (loc, RDIV_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
    5724                 :           2 :                                 _o1[0] = _r2;
    5725                 :             :                               }
    5726                 :           2 :                               _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_CBRT, TREE_TYPE (_o1[0]), 1, _o1[0]);
    5727                 :           2 :                               if (!_r1)
    5728                 :           0 :                                 goto next_after_fail1460;
    5729                 :           2 :                               res_op1 = _r1;
    5730                 :             :                             }
    5731                 :           2 :                             tree _r;
    5732                 :           2 :                             _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
    5733                 :           2 :                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 895, __FILE__, __LINE__, true);
    5734                 :           2 :                             return _r;
    5735                 :             :                           }
    5736                 :           0 : next_after_fail1460:;
    5737                 :             :                         }
    5738                 :             :                     }
    5739                 :           0 :                     break;
    5740                 :             :                   }
    5741                 :             :                 default:;
    5742                 :             :                 }
    5743                 :             :             }
    5744                 :             :           break;
    5745                 :          24 :         case CFN_BUILT_IN_EXP2:
    5746                 :          24 :           if (call_expr_nargs (_p1) == 1)
    5747                 :             :     {
    5748                 :          24 :               tree _q30 = CALL_EXPR_ARG (_p1, 0);
    5749                 :          24 :               {
    5750                 :          24 :                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q30 };
    5751                 :          24 :                 if (flag_unsafe_math_optimizations
    5752                 :             : )
    5753                 :             :                   {
    5754                 :          24 :                     if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1461;
    5755                 :          24 :                     {
    5756                 :          24 :                       tree res_op0;
    5757                 :          24 :                       res_op0 = captures[0];
    5758                 :          24 :                       tree res_op1;
    5759                 :          24 :                       {
    5760                 :          24 :                         tree _o1[1], _r1;
    5761                 :          24 :                         {
    5762                 :          24 :                           tree _o2[1], _r2;
    5763                 :          24 :                           _o2[0] = captures[2];
    5764                 :          24 :                           _r2 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
    5765                 :          24 :                           _o1[0] = _r2;
    5766                 :             :                         }
    5767                 :          24 :                         _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_EXP2, TREE_TYPE (_o1[0]), 1, _o1[0]);
    5768                 :          24 :                         if (!_r1)
    5769                 :           0 :                           goto next_after_fail1461;
    5770                 :          24 :                         res_op1 = _r1;
    5771                 :             :                       }
    5772                 :          24 :                       tree _r;
    5773                 :          24 :                       _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
    5774                 :          24 :                       if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 896, __FILE__, __LINE__, true);
    5775                 :          24 :                       return _r;
    5776                 :             :                     }
    5777                 :           0 : next_after_fail1461:;
    5778                 :             :                   }
    5779                 :             :               }
    5780                 :             :             }
    5781                 :             :           break;
    5782                 :          25 :         case CFN_BUILT_IN_EXPF:
    5783                 :          25 :           if (call_expr_nargs (_p1) == 1)
    5784                 :             :     {
    5785                 :          25 :               tree _q30 = CALL_EXPR_ARG (_p1, 0);
    5786                 :          25 :               {
    5787                 :          25 :                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q30 };
    5788                 :          25 :                 if (flag_unsafe_math_optimizations
    5789                 :             : )
    5790                 :             :                   {
    5791                 :          25 :                     if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1462;
    5792                 :          25 :                     {
    5793                 :          25 :                       tree res_op0;
    5794                 :          25 :                       res_op0 = captures[0];
    5795                 :          25 :                       tree res_op1;
    5796                 :          25 :                       {
    5797                 :          25 :                         tree _o1[1], _r1;
    5798                 :          25 :                         {
    5799                 :          25 :                           tree _o2[1], _r2;
    5800                 :          25 :                           _o2[0] = captures[2];
    5801                 :          25 :                           _r2 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
    5802                 :          25 :                           _o1[0] = _r2;
    5803                 :             :                         }
    5804                 :          25 :                         _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_EXPF, TREE_TYPE (_o1[0]), 1, _o1[0]);
    5805                 :          25 :                         if (!_r1)
    5806                 :           0 :                           goto next_after_fail1462;
    5807                 :          25 :                         res_op1 = _r1;
    5808                 :             :                       }
    5809                 :          25 :                       tree _r;
    5810                 :          25 :                       _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
    5811                 :          25 :                       if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 896, __FILE__, __LINE__, true);
    5812                 :          25 :                       return _r;
    5813                 :             :                     }
    5814                 :           0 : next_after_fail1462:;
    5815                 :             :                   }
    5816                 :             :               }
    5817                 :             :             }
    5818                 :             :           break;
    5819                 :          25 :         case CFN_BUILT_IN_EXPL:
    5820                 :          25 :           if (call_expr_nargs (_p1) == 1)
    5821                 :             :     {
    5822                 :          25 :               tree _q30 = CALL_EXPR_ARG (_p1, 0);
    5823                 :          25 :               {
    5824                 :          25 :                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q30 };
    5825                 :          25 :                 if (flag_unsafe_math_optimizations
    5826                 :             : )
    5827                 :             :                   {
    5828                 :          25 :                     if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1463;
    5829                 :          25 :                     {
    5830                 :          25 :                       tree res_op0;
    5831                 :          25 :                       res_op0 = captures[0];
    5832                 :          25 :                       tree res_op1;
    5833                 :          25 :                       {
    5834                 :          25 :                         tree _o1[1], _r1;
    5835                 :          25 :                         {
    5836                 :          25 :                           tree _o2[1], _r2;
    5837                 :          25 :                           _o2[0] = captures[2];
    5838                 :          25 :                           _r2 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
    5839                 :          25 :                           _o1[0] = _r2;
    5840                 :             :                         }
    5841                 :          25 :                         _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_EXPL, TREE_TYPE (_o1[0]), 1, _o1[0]);
    5842                 :          25 :                         if (!_r1)
    5843                 :           0 :                           goto next_after_fail1463;
    5844                 :          25 :                         res_op1 = _r1;
    5845                 :             :                       }
    5846                 :          25 :                       tree _r;
    5847                 :          25 :                       _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
    5848                 :          25 :                       if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 896, __FILE__, __LINE__, true);
    5849                 :          25 :                       return _r;
    5850                 :             :                     }
    5851                 :           0 : next_after_fail1463:;
    5852                 :             :                   }
    5853                 :             :               }
    5854                 :             :             }
    5855                 :             :           break;
    5856                 :         304 :         case CFN_BUILT_IN_SQRT:
    5857                 :         304 :           if (call_expr_nargs (_p1) == 1)
    5858                 :             :     {
    5859                 :         304 :               tree _q30 = CALL_EXPR_ARG (_p1, 0);
    5860                 :         304 :               switch (TREE_CODE (_q30))
    5861                 :             :                 {
    5862                 :           2 :                 case RDIV_EXPR:
    5863                 :           2 :                   {
    5864                 :           2 :                     tree _q40 = TREE_OPERAND (_q30, 0);
    5865                 :           2 :                     tree _q41 = TREE_OPERAND (_q30, 1);
    5866                 :           2 :                     {
    5867                 :           2 :                       tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q40, _q41 };
    5868                 :           2 :                       if (flag_unsafe_math_optimizations
    5869                 :             : )
    5870                 :             :                         {
    5871                 :           2 :                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1464;
    5872                 :           2 :                           {
    5873                 :           2 :                             tree res_op0;
    5874                 :           2 :                             res_op0 = captures[0];
    5875                 :           2 :                             tree res_op1;
    5876                 :           2 :                             {
    5877                 :           2 :                               tree _o1[1], _r1;
    5878                 :           2 :                               {
    5879                 :           2 :                                 tree _o2[2], _r2;
    5880                 :           2 :                                 _o2[0] = captures[4];
    5881                 :           2 :                                 _o2[1] = captures[3];
    5882                 :           2 :                                 _r2 = fold_build2_loc (loc, RDIV_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
    5883                 :           2 :                                 _o1[0] = _r2;
    5884                 :             :                               }
    5885                 :           2 :                               _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_SQRT, TREE_TYPE (_o1[0]), 1, _o1[0]);
    5886                 :           2 :                               if (!_r1)
    5887                 :           0 :                                 goto next_after_fail1464;
    5888                 :           2 :                               res_op1 = _r1;
    5889                 :             :                             }
    5890                 :           2 :                             tree _r;
    5891                 :           2 :                             _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
    5892                 :           2 :                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 895, __FILE__, __LINE__, true);
    5893                 :           2 :                             return _r;
    5894                 :             :                           }
    5895                 :           0 : next_after_fail1464:;
    5896                 :             :                         }
    5897                 :             :                     }
    5898                 :           0 :                     break;
    5899                 :             :                   }
    5900                 :             :                 default:;
    5901                 :             :                 }
    5902                 :             :             }
    5903                 :             :           break;
    5904                 :           0 :         case CFN_EXP:
    5905                 :           0 :           if (call_expr_nargs (_p1) == 1)
    5906                 :             :     {
    5907                 :           0 :               tree _q30 = CALL_EXPR_ARG (_p1, 0);
    5908                 :           0 :               {
    5909                 :           0 :                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q30 };
    5910                 :           0 :                 if (flag_unsafe_math_optimizations
    5911                 :             : )
    5912                 :             :                   {
    5913                 :           0 :                     if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1465;
    5914                 :           0 :                     {
    5915                 :           0 :                       tree res_op0;
    5916                 :           0 :                       res_op0 = captures[0];
    5917                 :           0 :                       tree res_op1;
    5918                 :           0 :                       {
    5919                 :           0 :                         tree _o1[1], _r1;
    5920                 :           0 :                         {
    5921                 :           0 :                           tree _o2[1], _r2;
    5922                 :           0 :                           _o2[0] = captures[2];
    5923                 :           0 :                           _r2 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
    5924                 :           0 :                           _o1[0] = _r2;
    5925                 :             :                         }
    5926                 :           0 :                         _r1 = maybe_build_call_expr_loc (loc, CFN_EXP, TREE_TYPE (_o1[0]), 1, _o1[0]);
    5927                 :           0 :                         if (!_r1)
    5928                 :           0 :                           goto next_after_fail1465;
    5929                 :           0 :                         res_op1 = _r1;
    5930                 :             :                       }
    5931                 :           0 :                       tree _r;
    5932                 :           0 :                       _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
    5933                 :           0 :                       if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 896, __FILE__, __LINE__, true);
    5934                 :           0 :                       return _r;
    5935                 :             :                     }
    5936                 :           0 : next_after_fail1465:;
    5937                 :             :                   }
    5938                 :             :               }
    5939                 :             :             }
    5940                 :             :           break;
    5941                 :          24 :         case CFN_BUILT_IN_POW10F:
    5942                 :          24 :           if (call_expr_nargs (_p1) == 1)
    5943                 :             :     {
    5944                 :          24 :               tree _q30 = CALL_EXPR_ARG (_p1, 0);
    5945                 :          24 :               {
    5946                 :          24 :                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q30 };
    5947                 :          24 :                 if (flag_unsafe_math_optimizations
    5948                 :             : )
    5949                 :             :                   {
    5950                 :          24 :                     if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1466;
    5951                 :          24 :                     {
    5952                 :          24 :                       tree res_op0;
    5953                 :          24 :                       res_op0 = captures[0];
    5954                 :          24 :                       tree res_op1;
    5955                 :          24 :                       {
    5956                 :          24 :                         tree _o1[1], _r1;
    5957                 :          24 :                         {
    5958                 :          24 :                           tree _o2[1], _r2;
    5959                 :          24 :                           _o2[0] = captures[2];
    5960                 :          24 :                           _r2 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
    5961                 :          24 :                           _o1[0] = _r2;
    5962                 :             :                         }
    5963                 :          24 :                         _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_POW10F, TREE_TYPE (_o1[0]), 1, _o1[0]);
    5964                 :          24 :                         if (!_r1)
    5965                 :          24 :                           goto next_after_fail1466;
    5966                 :           0 :                         res_op1 = _r1;
    5967                 :             :                       }
    5968                 :           0 :                       tree _r;
    5969                 :           0 :                       _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
    5970                 :           0 :                       if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 896, __FILE__, __LINE__, true);
    5971                 :           0 :                       return _r;
    5972                 :             :                     }
    5973                 :          24 : next_after_fail1466:;
    5974                 :             :                   }
    5975                 :             :               }
    5976                 :             :             }
    5977                 :             :           break;
    5978                 :          24 :         case CFN_BUILT_IN_POW10L:
    5979                 :          24 :           if (call_expr_nargs (_p1) == 1)
    5980                 :             :     {
    5981                 :          24 :               tree _q30 = CALL_EXPR_ARG (_p1, 0);
    5982                 :          24 :               {
    5983                 :          24 :                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q30 };
    5984                 :          24 :                 if (flag_unsafe_math_optimizations
    5985                 :             : )
    5986                 :             :                   {
    5987                 :          24 :                     if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1467;
    5988                 :          24 :                     {
    5989                 :          24 :                       tree res_op0;
    5990                 :          24 :                       res_op0 = captures[0];
    5991                 :          24 :                       tree res_op1;
    5992                 :          24 :                       {
    5993                 :          24 :                         tree _o1[1], _r1;
    5994                 :          24 :                         {
    5995                 :          24 :                           tree _o2[1], _r2;
    5996                 :          24 :                           _o2[0] = captures[2];
    5997                 :          24 :                           _r2 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
    5998                 :          24 :                           _o1[0] = _r2;
    5999                 :             :                         }
    6000                 :          24 :                         _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_POW10L, TREE_TYPE (_o1[0]), 1, _o1[0]);
    6001                 :          24 :                         if (!_r1)
    6002                 :          24 :                           goto next_after_fail1467;
    6003                 :           0 :                         res_op1 = _r1;
    6004                 :             :                       }
    6005                 :           0 :                       tree _r;
    6006                 :           0 :                       _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
    6007                 :           0 :                       if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 896, __FILE__, __LINE__, true);
    6008                 :           0 :                       return _r;
    6009                 :             :                     }
    6010                 :          24 : next_after_fail1467:;
    6011                 :             :                   }
    6012                 :             :               }
    6013                 :             :             }
    6014                 :             :           break;
    6015                 :           0 :         case CFN_EXP2:
    6016                 :           0 :           if (call_expr_nargs (_p1) == 1)
    6017                 :             :     {
    6018                 :           0 :               tree _q30 = CALL_EXPR_ARG (_p1, 0);
    6019                 :           0 :               {
    6020                 :           0 :                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q30 };
    6021                 :           0 :                 if (flag_unsafe_math_optimizations
    6022                 :             : )
    6023                 :             :                   {
    6024                 :           0 :                     if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1468;
    6025                 :           0 :                     {
    6026                 :           0 :                       tree res_op0;
    6027                 :           0 :                       res_op0 = captures[0];
    6028                 :           0 :                       tree res_op1;
    6029                 :           0 :                       {
    6030                 :           0 :                         tree _o1[1], _r1;
    6031                 :           0 :                         {
    6032                 :           0 :                           tree _o2[1], _r2;
    6033                 :           0 :                           _o2[0] = captures[2];
    6034                 :           0 :                           _r2 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
    6035                 :           0 :                           _o1[0] = _r2;
    6036                 :             :                         }
    6037                 :           0 :                         _r1 = maybe_build_call_expr_loc (loc, CFN_EXP2, TREE_TYPE (_o1[0]), 1, _o1[0]);
    6038                 :           0 :                         if (!_r1)
    6039                 :           0 :                           goto next_after_fail1468;
    6040                 :           0 :                         res_op1 = _r1;
    6041                 :             :                       }
    6042                 :           0 :                       tree _r;
    6043                 :           0 :                       _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
    6044                 :           0 :                       if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 896, __FILE__, __LINE__, true);
    6045                 :           0 :                       return _r;
    6046                 :             :                     }
    6047                 :           0 : next_after_fail1468:;
    6048                 :             :                   }
    6049                 :             :               }
    6050                 :             :             }
    6051                 :             :           break;
    6052                 :           0 :         case CFN_SQRT:
    6053                 :           0 :           if (call_expr_nargs (_p1) == 1)
    6054                 :             :     {
    6055                 :           0 :               tree _q30 = CALL_EXPR_ARG (_p1, 0);
    6056                 :           0 :               switch (TREE_CODE (_q30))
    6057                 :             :                 {
    6058                 :           0 :                 case RDIV_EXPR:
    6059                 :           0 :                   {
    6060                 :           0 :                     tree _q40 = TREE_OPERAND (_q30, 0);
    6061                 :           0 :                     tree _q41 = TREE_OPERAND (_q30, 1);
    6062                 :           0 :                     {
    6063                 :           0 :                       tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q40, _q41 };
    6064                 :           0 :                       if (flag_unsafe_math_optimizations
    6065                 :             : )
    6066                 :             :                         {
    6067                 :           0 :                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1469;
    6068                 :           0 :                           {
    6069                 :           0 :                             tree res_op0;
    6070                 :           0 :                             res_op0 = captures[0];
    6071                 :           0 :                             tree res_op1;
    6072                 :           0 :                             {
    6073                 :           0 :                               tree _o1[1], _r1;
    6074                 :           0 :                               {
    6075                 :           0 :                                 tree _o2[2], _r2;
    6076                 :           0 :                                 _o2[0] = captures[4];
    6077                 :           0 :                                 _o2[1] = captures[3];
    6078                 :           0 :                                 _r2 = fold_build2_loc (loc, RDIV_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
    6079                 :           0 :                                 _o1[0] = _r2;
    6080                 :             :                               }
    6081                 :           0 :                               _r1 = maybe_build_call_expr_loc (loc, CFN_SQRT, TREE_TYPE (_o1[0]), 1, _o1[0]);
    6082                 :           0 :                               if (!_r1)
    6083                 :           0 :                                 goto next_after_fail1469;
    6084                 :           0 :                               res_op1 = _r1;
    6085                 :             :                             }
    6086                 :           0 :                             tree _r;
    6087                 :           0 :                             _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
    6088                 :           0 :                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 895, __FILE__, __LINE__, true);
    6089                 :           0 :                             return _r;
    6090                 :             :                           }
    6091                 :           0 : next_after_fail1469:;
    6092                 :             :                         }
    6093                 :             :                     }
    6094                 :           0 :                     break;
    6095                 :             :                   }
    6096                 :             :                 default:;
    6097                 :             :                 }
    6098                 :             :             }
    6099                 :             :           break;
    6100                 :           0 :         case CFN_EXP10:
    6101                 :           0 :           if (call_expr_nargs (_p1) == 1)
    6102                 :             :     {
    6103                 :           0 :               tree _q30 = CALL_EXPR_ARG (_p1, 0);
    6104                 :           0 :               {
    6105                 :           0 :                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q30 };
    6106                 :           0 :                 if (flag_unsafe_math_optimizations
    6107                 :             : )
    6108                 :             :                   {
    6109                 :           0 :                     if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1470;
    6110                 :           0 :                     {
    6111                 :           0 :                       tree res_op0;
    6112                 :           0 :                       res_op0 = captures[0];
    6113                 :           0 :                       tree res_op1;
    6114                 :           0 :                       {
    6115                 :           0 :                         tree _o1[1], _r1;
    6116                 :           0 :                         {
    6117                 :           0 :                           tree _o2[1], _r2;
    6118                 :           0 :                           _o2[0] = captures[2];
    6119                 :           0 :                           _r2 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
    6120                 :           0 :                           _o1[0] = _r2;
    6121                 :             :                         }
    6122                 :           0 :                         _r1 = maybe_build_call_expr_loc (loc, CFN_EXP10, TREE_TYPE (_o1[0]), 1, _o1[0]);
    6123                 :           0 :                         if (!_r1)
    6124                 :           0 :                           goto next_after_fail1470;
    6125                 :           0 :                         res_op1 = _r1;
    6126                 :             :                       }
    6127                 :           0 :                       tree _r;
    6128                 :           0 :                       _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
    6129                 :           0 :                       if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 896, __FILE__, __LINE__, true);
    6130                 :           0 :                       return _r;
    6131                 :             :                     }
    6132                 :           0 : next_after_fail1470:;
    6133                 :             :                   }
    6134                 :             :               }
    6135                 :             :             }
    6136                 :             :           break;
    6137                 :           0 :         case CFN_BUILT_IN_CBRTF:
    6138                 :           0 :           if (call_expr_nargs (_p1) == 1)
    6139                 :             :     {
    6140                 :           0 :               tree _q30 = CALL_EXPR_ARG (_p1, 0);
    6141                 :           0 :               switch (TREE_CODE (_q30))
    6142                 :             :                 {
    6143                 :           0 :                 case RDIV_EXPR:
    6144                 :           0 :                   {
    6145                 :           0 :                     tree _q40 = TREE_OPERAND (_q30, 0);
    6146                 :           0 :                     tree _q41 = TREE_OPERAND (_q30, 1);
    6147                 :           0 :                     {
    6148                 :           0 :                       tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q40, _q41 };
    6149                 :           0 :                       if (flag_unsafe_math_optimizations
    6150                 :             : )
    6151                 :             :                         {
    6152                 :           0 :                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1471;
    6153                 :           0 :                           {
    6154                 :           0 :                             tree res_op0;
    6155                 :           0 :                             res_op0 = captures[0];
    6156                 :           0 :                             tree res_op1;
    6157                 :           0 :                             {
    6158                 :           0 :                               tree _o1[1], _r1;
    6159                 :           0 :                               {
    6160                 :           0 :                                 tree _o2[2], _r2;
    6161                 :           0 :                                 _o2[0] = captures[4];
    6162                 :           0 :                                 _o2[1] = captures[3];
    6163                 :           0 :                                 _r2 = fold_build2_loc (loc, RDIV_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
    6164                 :           0 :                                 _o1[0] = _r2;
    6165                 :             :                               }
    6166                 :           0 :                               _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_CBRTF, TREE_TYPE (_o1[0]), 1, _o1[0]);
    6167                 :           0 :                               if (!_r1)
    6168                 :           0 :                                 goto next_after_fail1471;
    6169                 :           0 :                               res_op1 = _r1;
    6170                 :             :                             }
    6171                 :           0 :                             tree _r;
    6172                 :           0 :                             _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
    6173                 :           0 :                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 895, __FILE__, __LINE__, true);
    6174                 :           0 :                             return _r;
    6175                 :             :                           }
    6176                 :           0 : next_after_fail1471:;
    6177                 :             :                         }
    6178                 :             :                     }
    6179                 :           0 :                     break;
    6180                 :             :                   }
    6181                 :             :                 default:;
    6182                 :             :                 }
    6183                 :             :             }
    6184                 :             :           break;
    6185                 :           0 :         case CFN_BUILT_IN_CBRTL:
    6186                 :           0 :           if (call_expr_nargs (_p1) == 1)
    6187                 :             :     {
    6188                 :           0 :               tree _q30 = CALL_EXPR_ARG (_p1, 0);
    6189                 :           0 :               switch (TREE_CODE (_q30))
    6190                 :             :                 {
    6191                 :           0 :                 case RDIV_EXPR:
    6192                 :           0 :                   {
    6193                 :           0 :                     tree _q40 = TREE_OPERAND (_q30, 0);
    6194                 :           0 :                     tree _q41 = TREE_OPERAND (_q30, 1);
    6195                 :           0 :                     {
    6196                 :           0 :                       tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q40, _q41 };
    6197                 :           0 :                       if (flag_unsafe_math_optimizations
    6198                 :             : )
    6199                 :             :                         {
    6200                 :           0 :                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1472;
    6201                 :           0 :                           {
    6202                 :           0 :                             tree res_op0;
    6203                 :           0 :                             res_op0 = captures[0];
    6204                 :           0 :                             tree res_op1;
    6205                 :           0 :                             {
    6206                 :           0 :                               tree _o1[1], _r1;
    6207                 :           0 :                               {
    6208                 :           0 :                                 tree _o2[2], _r2;
    6209                 :           0 :                                 _o2[0] = captures[4];
    6210                 :           0 :                                 _o2[1] = captures[3];
    6211                 :           0 :                                 _r2 = fold_build2_loc (loc, RDIV_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
    6212                 :           0 :                                 _o1[0] = _r2;
    6213                 :             :                               }
    6214                 :           0 :                               _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_CBRTL, TREE_TYPE (_o1[0]), 1, _o1[0]);
    6215                 :           0 :                               if (!_r1)
    6216                 :           0 :                                 goto next_after_fail1472;
    6217                 :           0 :                               res_op1 = _r1;
    6218                 :             :                             }
    6219                 :           0 :                             tree _r;
    6220                 :           0 :                             _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
    6221                 :           0 :                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 895, __FILE__, __LINE__, true);
    6222                 :           0 :                             return _r;
    6223                 :             :                           }
    6224                 :           0 : next_after_fail1472:;
    6225                 :             :                         }
    6226                 :             :                     }
    6227                 :           0 :                     break;
    6228                 :             :                   }
    6229                 :             :                 default:;
    6230                 :             :                 }
    6231                 :             :             }
    6232                 :             :           break;
    6233                 :          24 :         case CFN_BUILT_IN_EXP10:
    6234                 :          24 :           if (call_expr_nargs (_p1) == 1)
    6235                 :             :     {
    6236                 :          24 :               tree _q30 = CALL_EXPR_ARG (_p1, 0);
    6237                 :          24 :               {
    6238                 :          24 :                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q30 };
    6239                 :          24 :                 if (flag_unsafe_math_optimizations
    6240                 :             : )
    6241                 :             :                   {
    6242                 :          24 :                     if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1473;
    6243                 :          24 :                     {
    6244                 :          24 :                       tree res_op0;
    6245                 :          24 :                       res_op0 = captures[0];
    6246                 :          24 :                       tree res_op1;
    6247                 :          24 :                       {
    6248                 :          24 :                         tree _o1[1], _r1;
    6249                 :          24 :                         {
    6250                 :          24 :                           tree _o2[1], _r2;
    6251                 :          24 :                           _o2[0] = captures[2];
    6252                 :          24 :                           _r2 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
    6253                 :          24 :                           _o1[0] = _r2;
    6254                 :             :                         }
    6255                 :          24 :                         _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_EXP10, TREE_TYPE (_o1[0]), 1, _o1[0]);
    6256                 :          24 :                         if (!_r1)
    6257                 :           0 :                           goto next_after_fail1473;
    6258                 :          24 :                         res_op1 = _r1;
    6259                 :             :                       }
    6260                 :          24 :                       tree _r;
    6261                 :          24 :                       _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
    6262                 :          24 :                       if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 896, __FILE__, __LINE__, true);
    6263                 :          24 :                       return _r;
    6264                 :             :                     }
    6265                 :           0 : next_after_fail1473:;
    6266                 :             :                   }
    6267                 :             :               }
    6268                 :             :             }
    6269                 :             :           break;
    6270                 :          24 :         case CFN_BUILT_IN_EXP2F:
    6271                 :          24 :           if (call_expr_nargs (_p1) == 1)
    6272                 :             :     {
    6273                 :          24 :               tree _q30 = CALL_EXPR_ARG (_p1, 0);
    6274                 :          24 :               {
    6275                 :          24 :                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q30 };
    6276                 :          24 :                 if (flag_unsafe_math_optimizations
    6277                 :             : )
    6278                 :             :                   {
    6279                 :          24 :                     if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1474;
    6280                 :          24 :                     {
    6281                 :          24 :                       tree res_op0;
    6282                 :          24 :                       res_op0 = captures[0];
    6283                 :          24 :                       tree res_op1;
    6284                 :          24 :                       {
    6285                 :          24 :                         tree _o1[1], _r1;
    6286                 :          24 :                         {
    6287                 :          24 :                           tree _o2[1], _r2;
    6288                 :          24 :                           _o2[0] = captures[2];
    6289                 :          24 :                           _r2 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
    6290                 :          24 :                           _o1[0] = _r2;
    6291                 :             :                         }
    6292                 :          24 :                         _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_EXP2F, TREE_TYPE (_o1[0]), 1, _o1[0]);
    6293                 :          24 :                         if (!_r1)
    6294                 :           0 :                           goto next_after_fail1474;
    6295                 :          24 :                         res_op1 = _r1;
    6296                 :             :                       }
    6297                 :          24 :                       tree _r;
    6298                 :          24 :                       _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
    6299                 :          24 :                       if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 896, __FILE__, __LINE__, true);
    6300                 :          24 :                       return _r;
    6301                 :             :                     }
    6302                 :           0 : next_after_fail1474:;
    6303                 :             :                   }
    6304                 :             :               }
    6305                 :             :             }
    6306                 :             :           break;
    6307                 :          24 :         case CFN_BUILT_IN_EXP2L:
    6308                 :          24 :           if (call_expr_nargs (_p1) == 1)
    6309                 :             :     {
    6310                 :          24 :               tree _q30 = CALL_EXPR_ARG (_p1, 0);
    6311                 :          24 :               {
    6312                 :          24 :                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q30 };
    6313                 :          24 :                 if (flag_unsafe_math_optimizations
    6314                 :             : )
    6315                 :             :                   {
    6316                 :          24 :                     if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1475;
    6317                 :          24 :                     {
    6318                 :          24 :                       tree res_op0;
    6319                 :          24 :                       res_op0 = captures[0];
    6320                 :          24 :                       tree res_op1;
    6321                 :          24 :                       {
    6322                 :          24 :                         tree _o1[1], _r1;
    6323                 :          24 :                         {
    6324                 :          24 :                           tree _o2[1], _r2;
    6325                 :          24 :                           _o2[0] = captures[2];
    6326                 :          24 :                           _r2 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
    6327                 :          24 :                           _o1[0] = _r2;
    6328                 :             :                         }
    6329                 :          24 :                         _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_EXP2L, TREE_TYPE (_o1[0]), 1, _o1[0]);
    6330                 :          24 :                         if (!_r1)
    6331                 :           0 :                           goto next_after_fail1475;
    6332                 :          24 :                         res_op1 = _r1;
    6333                 :             :                       }
    6334                 :          24 :                       tree _r;
    6335                 :          24 :                       _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
    6336                 :          24 :                       if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 896, __FILE__, __LINE__, true);
    6337                 :          24 :                       return _r;
    6338                 :             :                     }
    6339                 :           0 : next_after_fail1475:;
    6340                 :             :                   }
    6341                 :             :               }
    6342                 :             :             }
    6343                 :             :           break;
    6344                 :          24 :         case CFN_BUILT_IN_POW10:
    6345                 :          24 :           if (call_expr_nargs (_p1) == 1)
    6346                 :             :     {
    6347                 :          24 :               tree _q30 = CALL_EXPR_ARG (_p1, 0);
    6348                 :          24 :               {
    6349                 :          24 :                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q30 };
    6350                 :          24 :                 if (flag_unsafe_math_optimizations
    6351                 :             : )
    6352                 :             :                   {
    6353                 :          24 :                     if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1476;
    6354                 :          24 :                     {
    6355                 :          24 :                       tree res_op0;
    6356                 :          24 :                       res_op0 = captures[0];
    6357                 :          24 :                       tree res_op1;
    6358                 :          24 :                       {
    6359                 :          24 :                         tree _o1[1], _r1;
    6360                 :          24 :                         {
    6361                 :          24 :                           tree _o2[1], _r2;
    6362                 :          24 :                           _o2[0] = captures[2];
    6363                 :          24 :                           _r2 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
    6364                 :          24 :                           _o1[0] = _r2;
    6365                 :             :                         }
    6366                 :          24 :                         _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_POW10, TREE_TYPE (_o1[0]), 1, _o1[0]);
    6367                 :          24 :                         if (!_r1)
    6368                 :          24 :                           goto next_after_fail1476;
    6369                 :           0 :                         res_op1 = _r1;
    6370                 :             :                       }
    6371                 :           0 :                       tree _r;
    6372                 :           0 :                       _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
    6373                 :           0 :                       if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 896, __FILE__, __LINE__, true);
    6374                 :           0 :                       return _r;
    6375                 :             :                     }
    6376                 :          24 : next_after_fail1476:;
    6377                 :             :                   }
    6378                 :             :               }
    6379                 :             :             }
    6380                 :             :           break;
    6381                 :             :         default:;
    6382                 :             :         }
    6383                 :             :       break;
    6384                 :     5844335 :     default:;
    6385                 :             :     }
    6386                 :     5844335 :   switch (TREE_CODE (_p0))
    6387                 :             :     {
    6388                 :      199600 :     case CALL_EXPR:
    6389                 :      199600 :       switch (get_call_combined_fn (_p0))
    6390                 :             :         {
    6391                 :           1 :         case CFN_BUILT_IN_SINHF:
    6392                 :           1 :           if (call_expr_nargs (_p0) == 1)
    6393                 :             :     {
    6394                 :           1 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    6395                 :           1 :               switch (TREE_CODE (_p1))
    6396                 :             :                 {
    6397                 :           1 :                 case CALL_EXPR:
    6398                 :           1 :                   switch (get_call_combined_fn (_p1))
    6399                 :             :                     {
    6400                 :           1 :                     case CFN_BUILT_IN_COSHF:
    6401                 :           1 :                       if (call_expr_nargs (_p1) == 1)
    6402                 :             :     {
    6403                 :           1 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    6404                 :           1 :                           if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
    6405                 :             :                             {
    6406                 :           1 :                               {
    6407                 :           1 :                                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
    6408                 :           1 :                                 tree res = generic_simplify_305 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SINHF, CFN_BUILT_IN_COSHF, CFN_BUILT_IN_TANHF);
    6409                 :           1 :                                 if (res) return res;
    6410                 :             :                               }
    6411                 :             :                             }
    6412                 :             :                         }
    6413                 :             :                       break;
    6414                 :             :                     default:;
    6415                 :             :                     }
    6416                 :             :                   break;
    6417                 :             :                 default:;
    6418                 :             :                 }
    6419                 :             :             }
    6420                 :             :           break;
    6421                 :           1 :         case CFN_BUILT_IN_SINHL:
    6422                 :           1 :           if (call_expr_nargs (_p0) == 1)
    6423                 :             :     {
    6424                 :           1 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    6425                 :           1 :               switch (TREE_CODE (_p1))
    6426                 :             :                 {
    6427                 :           1 :                 case CALL_EXPR:
    6428                 :           1 :                   switch (get_call_combined_fn (_p1))
    6429                 :             :                     {
    6430                 :           1 :                     case CFN_BUILT_IN_COSHL:
    6431                 :           1 :                       if (call_expr_nargs (_p1) == 1)
    6432                 :             :     {
    6433                 :           1 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    6434                 :           1 :                           if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
    6435                 :             :                             {
    6436                 :           1 :                               {
    6437                 :           1 :                                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
    6438                 :           1 :                                 tree res = generic_simplify_305 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SINHL, CFN_BUILT_IN_COSHL, CFN_BUILT_IN_TANHL);
    6439                 :           1 :                                 if (res) return res;
    6440                 :             :                               }
    6441                 :             :                             }
    6442                 :             :                         }
    6443                 :             :                       break;
    6444                 :             :                     default:;
    6445                 :             :                     }
    6446                 :             :                   break;
    6447                 :             :                 default:;
    6448                 :             :                 }
    6449                 :             :             }
    6450                 :             :           break;
    6451                 :           1 :         case CFN_BUILT_IN_TANHF:
    6452                 :           1 :           if (call_expr_nargs (_p0) == 1)
    6453                 :             :     {
    6454                 :           1 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    6455                 :           1 :               switch (TREE_CODE (_p1))
    6456                 :             :                 {
    6457                 :           1 :                 case CALL_EXPR:
    6458                 :           1 :                   switch (get_call_combined_fn (_p1))
    6459                 :             :                     {
    6460                 :           1 :                     case CFN_BUILT_IN_SINHF:
    6461                 :           1 :                       if (call_expr_nargs (_p1) == 1)
    6462                 :             :     {
    6463                 :           1 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    6464                 :           1 :                           if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
    6465                 :             :                             {
    6466                 :           1 :                               {
    6467                 :           1 :                                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
    6468                 :           1 :                                 tree res = generic_simplify_306 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_TANHF, CFN_BUILT_IN_SINHF, CFN_BUILT_IN_COSHF);
    6469                 :           1 :                                 if (res) return res;
    6470                 :             :                               }
    6471                 :             :                             }
    6472                 :             :                         }
    6473                 :             :                       break;
    6474                 :             :                     default:;
    6475                 :             :                     }
    6476                 :             :                   break;
    6477                 :             :                 default:;
    6478                 :             :                 }
    6479                 :             :             }
    6480                 :             :           break;
    6481                 :           1 :         case CFN_BUILT_IN_TANHL:
    6482                 :           1 :           if (call_expr_nargs (_p0) == 1)
    6483                 :             :     {
    6484                 :           1 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    6485                 :           1 :               switch (TREE_CODE (_p1))
    6486                 :             :                 {
    6487                 :           1 :                 case CALL_EXPR:
    6488                 :           1 :                   switch (get_call_combined_fn (_p1))
    6489                 :             :                     {
    6490                 :           1 :                     case CFN_BUILT_IN_SINHL:
    6491                 :           1 :                       if (call_expr_nargs (_p1) == 1)
    6492                 :             :     {
    6493                 :           1 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    6494                 :           1 :                           if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
    6495                 :             :                             {
    6496                 :           1 :                               {
    6497                 :           1 :                                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
    6498                 :           1 :                                 tree res = generic_simplify_306 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_TANHL, CFN_BUILT_IN_SINHL, CFN_BUILT_IN_COSHL);
    6499                 :           1 :                                 if (res) return res;
    6500                 :             :                               }
    6501                 :             :                             }
    6502                 :             :                         }
    6503                 :             :                       break;
    6504                 :             :                     default:;
    6505                 :             :                     }
    6506                 :             :                   break;
    6507                 :             :                 default:;
    6508                 :             :                 }
    6509                 :             :             }
    6510                 :             :           break;
    6511                 :           2 :         case CFN_BUILT_IN_COS:
    6512                 :           2 :           if (call_expr_nargs (_p0) == 1)
    6513                 :             :     {
    6514                 :           2 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    6515                 :           2 :               switch (TREE_CODE (_p1))
    6516                 :             :                 {
    6517                 :           2 :                 case CALL_EXPR:
    6518                 :           2 :                   switch (get_call_combined_fn (_p1))
    6519                 :             :                     {
    6520                 :           2 :                     case CFN_BUILT_IN_SIN:
    6521                 :           2 :                       if (call_expr_nargs (_p1) == 1)
    6522                 :             :     {
    6523                 :           2 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    6524                 :           2 :                           if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
    6525                 :             :                             {
    6526                 :           2 :                               {
    6527                 :           2 :                                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
    6528                 :           2 :                                 tree res = generic_simplify_307 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COS, CFN_BUILT_IN_SIN, CFN_BUILT_IN_TAN);
    6529                 :           2 :                                 if (res) return res;
    6530                 :             :                               }
    6531                 :             :                             }
    6532                 :             :                         }
    6533                 :             :                       break;
    6534                 :             :                     default:;
    6535                 :             :                     }
    6536                 :             :                   break;
    6537                 :             :                 default:;
    6538                 :             :                 }
    6539                 :             :             }
    6540                 :             :           break;
    6541                 :           4 :         case CFN_BUILT_IN_POW:
    6542                 :           4 :           if (call_expr_nargs (_p0) == 2)
    6543                 :             :     {
    6544                 :           4 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    6545                 :           4 :               tree _q21 = CALL_EXPR_ARG (_p0, 1);
    6546                 :           4 :               switch (TREE_CODE (_q21))
    6547                 :             :                 {
    6548                 :           4 :                 case REAL_CST:
    6549                 :           4 :                   {
    6550                 :           4 :                     if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
    6551                 :             :                       {
    6552                 :           4 :                         {
    6553                 :           4 :                           tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
    6554                 :           4 :                           tree res = generic_simplify_309 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POW);
    6555                 :           4 :                           if (res) return res;
    6556                 :             :                         }
    6557                 :             :                       }
    6558                 :             :                     break;
    6559                 :             :                   }
    6560                 :             :                 default:;
    6561                 :             :                 }
    6562                 :             :             }
    6563                 :             :           break;
    6564                 :          86 :         case CFN_BUILT_IN_SIN:
    6565                 :          86 :           if (call_expr_nargs (_p0) == 1)
    6566                 :             :     {
    6567                 :          86 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    6568                 :          86 :               switch (TREE_CODE (_p1))
    6569                 :             :                 {
    6570                 :           4 :                 case CALL_EXPR:
    6571                 :           4 :                   switch (get_call_combined_fn (_p1))
    6572                 :             :                     {
    6573                 :           2 :                     case CFN_BUILT_IN_COS:
    6574                 :           2 :                       if (call_expr_nargs (_p1) == 1)
    6575                 :             :     {
    6576                 :           2 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    6577                 :           2 :                           if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
    6578                 :             :                             {
    6579                 :           2 :                               {
    6580                 :           2 :                                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
    6581                 :           2 :                                 tree res = generic_simplify_303 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SIN, CFN_BUILT_IN_COS, CFN_BUILT_IN_TAN);
    6582                 :           2 :                                 if (res) return res;
    6583                 :             :                               }
    6584                 :             :                             }
    6585                 :             :                         }
    6586                 :             :                       break;
    6587                 :           2 :                     case CFN_BUILT_IN_TAN:
    6588                 :           2 :                       if (call_expr_nargs (_p1) == 1)
    6589                 :             :     {
    6590                 :           2 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    6591                 :           2 :                           if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
    6592                 :             :                             {
    6593                 :           2 :                               {
    6594                 :           2 :                                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
    6595                 :           2 :                                 tree res = generic_simplify_304 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SIN, CFN_BUILT_IN_TAN, CFN_BUILT_IN_COS);
    6596                 :           2 :                                 if (res) return res;
    6597                 :             :                               }
    6598                 :             :                             }
    6599                 :             :                         }
    6600                 :             :                       break;
    6601                 :             :                     default:;
    6602                 :             :                     }
    6603                 :             :                   break;
    6604                 :             :                 default:;
    6605                 :             :                 }
    6606                 :             :             }
    6607                 :             :           break;
    6608                 :           2 :         case CFN_BUILT_IN_TAN:
    6609                 :           2 :           if (call_expr_nargs (_p0) == 1)
    6610                 :             :     {
    6611                 :           2 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    6612                 :           2 :               switch (TREE_CODE (_p1))
    6613                 :             :                 {
    6614                 :           2 :                 case CALL_EXPR:
    6615                 :           2 :                   switch (get_call_combined_fn (_p1))
    6616                 :             :                     {
    6617                 :           2 :                     case CFN_BUILT_IN_SIN:
    6618                 :           2 :                       if (call_expr_nargs (_p1) == 1)
    6619                 :             :     {
    6620                 :           2 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    6621                 :           2 :                           if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
    6622                 :             :                             {
    6623                 :           2 :                               {
    6624                 :           2 :                                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
    6625                 :           2 :                                 tree res = generic_simplify_308 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_TAN, CFN_BUILT_IN_SIN, CFN_BUILT_IN_COS);
    6626                 :           2 :                                 if (res) return res;
    6627                 :             :                               }
    6628                 :             :                             }
    6629                 :             :                         }
    6630                 :             :                       break;
    6631                 :             :                     default:;
    6632                 :             :                     }
    6633                 :             :                   break;
    6634                 :             :                 default:;
    6635                 :             :                 }
    6636                 :             :             }
    6637                 :             :           break;
    6638                 :           2 :         case CFN_BUILT_IN_COSF:
    6639                 :           2 :           if (call_expr_nargs (_p0) == 1)
    6640                 :             :     {
    6641                 :           2 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    6642                 :           2 :               switch (TREE_CODE (_p1))
    6643                 :             :                 {
    6644                 :           2 :                 case CALL_EXPR:
    6645                 :           2 :                   switch (get_call_combined_fn (_p1))
    6646                 :             :                     {
    6647                 :           2 :                     case CFN_BUILT_IN_SINF:
    6648                 :           2 :                       if (call_expr_nargs (_p1) == 1)
    6649                 :             :     {
    6650                 :           2 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    6651                 :           2 :                           if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
    6652                 :             :                             {
    6653                 :           2 :                               {
    6654                 :           2 :                                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
    6655                 :           2 :                                 tree res = generic_simplify_307 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COSF, CFN_BUILT_IN_SINF, CFN_BUILT_IN_TANF);
    6656                 :           2 :                                 if (res) return res;
    6657                 :             :                               }
    6658                 :             :                             }
    6659                 :             :                         }
    6660                 :             :                       break;
    6661                 :             :                     default:;
    6662                 :             :                     }
    6663                 :             :                   break;
    6664                 :             :                 default:;
    6665                 :             :                 }
    6666                 :             :             }
    6667                 :             :           break;
    6668                 :           2 :         case CFN_BUILT_IN_COSL:
    6669                 :           2 :           if (call_expr_nargs (_p0) == 1)
    6670                 :             :     {
    6671                 :           2 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    6672                 :           2 :               switch (TREE_CODE (_p1))
    6673                 :             :                 {
    6674                 :           2 :                 case CALL_EXPR:
    6675                 :           2 :                   switch (get_call_combined_fn (_p1))
    6676                 :             :                     {
    6677                 :           2 :                     case CFN_BUILT_IN_SINL:
    6678                 :           2 :                       if (call_expr_nargs (_p1) == 1)
    6679                 :             :     {
    6680                 :           2 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    6681                 :           2 :                           if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
    6682                 :             :                             {
    6683                 :           2 :                               {
    6684                 :           2 :                                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
    6685                 :           2 :                                 tree res = generic_simplify_307 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COSL, CFN_BUILT_IN_SINL, CFN_BUILT_IN_TANL);
    6686                 :           2 :                                 if (res) return res;
    6687                 :             :                               }
    6688                 :             :                             }
    6689                 :             :                         }
    6690                 :             :                       break;
    6691                 :             :                     default:;
    6692                 :             :                     }
    6693                 :             :                   break;
    6694                 :             :                 default:;
    6695                 :             :                 }
    6696                 :             :             }
    6697                 :             :           break;
    6698                 :           1 :         case CFN_BUILT_IN_POWF:
    6699                 :           1 :           if (call_expr_nargs (_p0) == 2)
    6700                 :             :     {
    6701                 :           1 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    6702                 :           1 :               tree _q21 = CALL_EXPR_ARG (_p0, 1);
    6703                 :           1 :               switch (TREE_CODE (_q21))
    6704                 :             :                 {
    6705                 :           1 :                 case REAL_CST:
    6706                 :           1 :                   {
    6707                 :           1 :                     if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
    6708                 :             :                       {
    6709                 :           0 :                         {
    6710                 :           0 :                           tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
    6711                 :           0 :                           tree res = generic_simplify_309 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POWF);
    6712                 :           0 :                           if (res) return res;
    6713                 :             :                         }
    6714                 :             :                       }
    6715                 :             :                     break;
    6716                 :             :                   }
    6717                 :             :                 default:;
    6718                 :             :                 }
    6719                 :             :             }
    6720                 :             :           break;
    6721                 :           0 :         case CFN_BUILT_IN_POWL:
    6722                 :           0 :           if (call_expr_nargs (_p0) == 2)
    6723                 :             :     {
    6724                 :           0 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    6725                 :           0 :               tree _q21 = CALL_EXPR_ARG (_p0, 1);
    6726                 :           0 :               switch (TREE_CODE (_q21))
    6727                 :             :                 {
    6728                 :           0 :                 case REAL_CST:
    6729                 :           0 :                   {
    6730                 :           0 :                     if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
    6731                 :             :                       {
    6732                 :           0 :                         {
    6733                 :           0 :                           tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
    6734                 :           0 :                           tree res = generic_simplify_309 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POWL);
    6735                 :           0 :                           if (res) return res;
    6736                 :             :                         }
    6737                 :             :                       }
    6738                 :             :                     break;
    6739                 :             :                   }
    6740                 :             :                 default:;
    6741                 :             :                 }
    6742                 :             :             }
    6743                 :             :           break;
    6744                 :           4 :         case CFN_BUILT_IN_SINF:
    6745                 :           4 :           if (call_expr_nargs (_p0) == 1)
    6746                 :             :     {
    6747                 :           4 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    6748                 :           4 :               switch (TREE_CODE (_p1))
    6749                 :             :                 {
    6750                 :           4 :                 case CALL_EXPR:
    6751                 :           4 :                   switch (get_call_combined_fn (_p1))
    6752                 :             :                     {
    6753                 :           2 :                     case CFN_BUILT_IN_COSF:
    6754                 :           2 :                       if (call_expr_nargs (_p1) == 1)
    6755                 :             :     {
    6756                 :           2 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    6757                 :           2 :                           if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
    6758                 :             :                             {
    6759                 :           2 :                               {
    6760                 :           2 :                                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
    6761                 :           2 :                                 tree res = generic_simplify_303 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SINF, CFN_BUILT_IN_COSF, CFN_BUILT_IN_TANF);
    6762                 :           2 :                                 if (res) return res;
    6763                 :             :                               }
    6764                 :             :                             }
    6765                 :             :                         }
    6766                 :             :                       break;
    6767                 :           2 :                     case CFN_BUILT_IN_TANF:
    6768                 :           2 :                       if (call_expr_nargs (_p1) == 1)
    6769                 :             :     {
    6770                 :           2 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    6771                 :           2 :                           if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
    6772                 :             :                             {
    6773                 :           2 :                               {
    6774                 :           2 :                                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
    6775                 :           2 :                                 tree res = generic_simplify_304 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SINF, CFN_BUILT_IN_TANF, CFN_BUILT_IN_COSF);
    6776                 :           2 :                                 if (res) return res;
    6777                 :             :                               }
    6778                 :             :                             }
    6779                 :             :                         }
    6780                 :             :                       break;
    6781                 :             :                     default:;
    6782                 :             :                     }
    6783                 :             :                   break;
    6784                 :             :                 default:;
    6785                 :             :                 }
    6786                 :             :             }
    6787                 :             :           break;
    6788                 :         133 :         case CFN_BUILT_IN_SINH:
    6789                 :         133 :           if (call_expr_nargs (_p0) == 1)
    6790                 :             :     {
    6791                 :         133 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    6792                 :         133 :               switch (TREE_CODE (_p1))
    6793                 :             :                 {
    6794                 :           1 :                 case CALL_EXPR:
    6795                 :           1 :                   switch (get_call_combined_fn (_p1))
    6796                 :             :                     {
    6797                 :           1 :                     case CFN_BUILT_IN_COSH:
    6798                 :           1 :                       if (call_expr_nargs (_p1) == 1)
    6799                 :             :     {
    6800                 :           1 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    6801                 :           1 :                           if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
    6802                 :             :                             {
    6803                 :           1 :                               {
    6804                 :           1 :                                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
    6805                 :           1 :                                 tree res = generic_simplify_305 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SINH, CFN_BUILT_IN_COSH, CFN_BUILT_IN_TANH);
    6806                 :           1 :                                 if (res) return res;
    6807                 :             :                               }
    6808                 :             :                             }
    6809                 :             :                         }
    6810                 :             :                       break;
    6811                 :             :                     default:;
    6812                 :             :                     }
    6813                 :             :                   break;
    6814                 :             :                 default:;
    6815                 :             :                 }
    6816                 :             :             }
    6817                 :             :           break;
    6818                 :           4 :         case CFN_BUILT_IN_SINL:
    6819                 :           4 :           if (call_expr_nargs (_p0) == 1)
    6820                 :             :     {
    6821                 :           4 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    6822                 :           4 :               switch (TREE_CODE (_p1))
    6823                 :             :                 {
    6824                 :           4 :                 case CALL_EXPR:
    6825                 :           4 :                   switch (get_call_combined_fn (_p1))
    6826                 :             :                     {
    6827                 :           2 :                     case CFN_BUILT_IN_COSL:
    6828                 :           2 :                       if (call_expr_nargs (_p1) == 1)
    6829                 :             :     {
    6830                 :           2 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    6831                 :           2 :                           if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
    6832                 :             :                             {
    6833                 :           2 :                               {
    6834                 :           2 :                                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
    6835                 :           2 :                                 tree res = generic_simplify_303 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SINL, CFN_BUILT_IN_COSL, CFN_BUILT_IN_TANL);
    6836                 :           2 :                                 if (res) return res;
    6837                 :             :                               }
    6838                 :             :                             }
    6839                 :             :                         }
    6840                 :             :                       break;
    6841                 :           2 :                     case CFN_BUILT_IN_TANL:
    6842                 :           2 :                       if (call_expr_nargs (_p1) == 1)
    6843                 :             :     {
    6844                 :           2 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    6845                 :           2 :                           if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
    6846                 :             :                             {
    6847                 :           2 :                               {
    6848                 :           2 :                                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
    6849                 :           2 :                                 tree res = generic_simplify_304 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SINL, CFN_BUILT_IN_TANL, CFN_BUILT_IN_COSL);
    6850                 :           2 :                                 if (res) return res;
    6851                 :             :                               }
    6852                 :             :                             }
    6853                 :             :                         }
    6854                 :             :                       break;
    6855                 :             :                     default:;
    6856                 :             :                     }
    6857                 :             :                   break;
    6858                 :             :                 default:;
    6859                 :             :                 }
    6860                 :             :             }
    6861                 :             :           break;
    6862                 :           2 :         case CFN_BUILT_IN_TANF:
    6863                 :           2 :           if (call_expr_nargs (_p0) == 1)
    6864                 :             :     {
    6865                 :           2 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    6866                 :           2 :               switch (TREE_CODE (_p1))
    6867                 :             :                 {
    6868                 :           2 :                 case CALL_EXPR:
    6869                 :           2 :                   switch (get_call_combined_fn (_p1))
    6870                 :             :                     {
    6871                 :           2 :                     case CFN_BUILT_IN_SINF:
    6872                 :           2 :                       if (call_expr_nargs (_p1) == 1)
    6873                 :             :     {
    6874                 :           2 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    6875                 :           2 :                           if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
    6876                 :             :                             {
    6877                 :           2 :                               {
    6878                 :           2 :                                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
    6879                 :           2 :                                 tree res = generic_simplify_308 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_TANF, CFN_BUILT_IN_SINF, CFN_BUILT_IN_COSF);
    6880                 :           2 :                                 if (res) return res;
    6881                 :             :                               }
    6882                 :             :                             }
    6883                 :             :                         }
    6884                 :             :                       break;
    6885                 :             :                     default:;
    6886                 :             :                     }
    6887                 :             :                   break;
    6888                 :             :                 default:;
    6889                 :             :                 }
    6890                 :             :             }
    6891                 :             :           break;
    6892                 :           1 :         case CFN_BUILT_IN_TANH:
    6893                 :           1 :           if (call_expr_nargs (_p0) == 1)
    6894                 :             :     {
    6895                 :           1 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    6896                 :           1 :               switch (TREE_CODE (_p1))
    6897                 :             :                 {
    6898                 :           1 :                 case CALL_EXPR:
    6899                 :           1 :                   switch (get_call_combined_fn (_p1))
    6900                 :             :                     {
    6901                 :           1 :                     case CFN_BUILT_IN_SINH:
    6902                 :           1 :                       if (call_expr_nargs (_p1) == 1)
    6903                 :             :     {
    6904                 :           1 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    6905                 :           1 :                           if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
    6906                 :             :                             {
    6907                 :           1 :                               {
    6908                 :           1 :                                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
    6909                 :           1 :                                 tree res = generic_simplify_306 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_TANH, CFN_BUILT_IN_SINH, CFN_BUILT_IN_COSH);
    6910                 :           1 :                                 if (res) return res;
    6911                 :             :                               }
    6912                 :             :                             }
    6913                 :             :                         }
    6914                 :             :                       break;
    6915                 :             :                     default:;
    6916                 :             :                     }
    6917                 :             :                   break;
    6918                 :             :                 default:;
    6919                 :             :                 }
    6920                 :             :             }
    6921                 :             :           break;
    6922                 :           2 :         case CFN_BUILT_IN_TANL:
    6923                 :           2 :           if (call_expr_nargs (_p0) == 1)
    6924                 :             :     {
    6925                 :           2 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    6926                 :           2 :               switch (TREE_CODE (_p1))
    6927                 :             :                 {
    6928                 :           2 :                 case CALL_EXPR:
    6929                 :           2 :                   switch (get_call_combined_fn (_p1))
    6930                 :             :                     {
    6931                 :           2 :                     case CFN_BUILT_IN_SINL:
    6932                 :           2 :                       if (call_expr_nargs (_p1) == 1)
    6933                 :             :     {
    6934                 :           2 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    6935                 :           2 :                           if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
    6936                 :             :                             {
    6937                 :           2 :                               {
    6938                 :           2 :                                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
    6939                 :           2 :                                 tree res = generic_simplify_308 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_TANL, CFN_BUILT_IN_SINL, CFN_BUILT_IN_COSL);
    6940                 :           2 :                                 if (res) return res;
    6941                 :             :                               }
    6942                 :             :                             }
    6943                 :             :                         }
    6944                 :             :                       break;
    6945                 :             :                     default:;
    6946                 :             :                     }
    6947                 :             :                   break;
    6948                 :             :                 default:;
    6949                 :             :                 }
    6950                 :             :             }
    6951                 :             :           break;
    6952                 :           0 :         case CFN_COS:
    6953                 :           0 :           if (call_expr_nargs (_p0) == 1)
    6954                 :             :     {
    6955                 :           0 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    6956                 :           0 :               switch (TREE_CODE (_p1))
    6957                 :             :                 {
    6958                 :           0 :                 case CALL_EXPR:
    6959                 :           0 :                   switch (get_call_combined_fn (_p1))
    6960                 :             :                     {
    6961                 :           0 :                     case CFN_SIN:
    6962                 :           0 :                       if (call_expr_nargs (_p1) == 1)
    6963                 :             :     {
    6964                 :           0 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    6965                 :           0 :                           if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
    6966                 :             :                             {
    6967                 :           0 :                               {
    6968                 :           0 :                                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
    6969                 :           0 :                                 tree res = generic_simplify_307 (loc, type, _p0, _p1, captures, CFN_COS, CFN_SIN, CFN_TAN);
    6970                 :           0 :                                 if (res) return res;
    6971                 :             :                               }
    6972                 :             :                             }
    6973                 :             :                         }
    6974                 :             :                       break;
    6975                 :             :                     default:;
    6976                 :             :                     }
    6977                 :             :                   break;
    6978                 :             :                 default:;
    6979                 :             :                 }
    6980                 :             :             }
    6981                 :             :           break;
    6982                 :           0 :         case CFN_POW:
    6983                 :           0 :           if (call_expr_nargs (_p0) == 2)
    6984                 :             :     {
    6985                 :           0 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    6986                 :           0 :               tree _q21 = CALL_EXPR_ARG (_p0, 1);
    6987                 :           0 :               switch (TREE_CODE (_q21))
    6988                 :             :                 {
    6989                 :           0 :                 case REAL_CST:
    6990                 :           0 :                   {
    6991                 :           0 :                     if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
    6992                 :             :                       {
    6993                 :           0 :                         {
    6994                 :           0 :                           tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
    6995                 :           0 :                           tree res = generic_simplify_309 (loc, type, _p0, _p1, captures, CFN_POW);
    6996                 :           0 :                           if (res) return res;
    6997                 :             :                         }
    6998                 :             :                       }
    6999                 :             :                     break;
    7000                 :             :                   }
    7001                 :             :                 default:;
    7002                 :             :                 }
    7003                 :             :             }
    7004                 :             :           break;
    7005                 :           0 :         case CFN_SIN:
    7006                 :           0 :           if (call_expr_nargs (_p0) == 1)
    7007                 :             :     {
    7008                 :           0 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    7009                 :           0 :               switch (TREE_CODE (_p1))
    7010                 :             :                 {
    7011                 :           0 :                 case CALL_EXPR:
    7012                 :           0 :                   switch (get_call_combined_fn (_p1))
    7013                 :             :                     {
    7014                 :           0 :                     case CFN_COS:
    7015                 :           0 :                       if (call_expr_nargs (_p1) == 1)
    7016                 :             :     {
    7017                 :           0 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    7018                 :           0 :                           if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
    7019                 :             :                             {
    7020                 :           0 :                               {
    7021                 :           0 :                                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
    7022                 :           0 :                                 tree res = generic_simplify_303 (loc, type, _p0, _p1, captures, CFN_SIN, CFN_COS, CFN_TAN);
    7023                 :           0 :                                 if (res) return res;
    7024                 :             :                               }
    7025                 :             :                             }
    7026                 :             :                         }
    7027                 :             :                       break;
    7028                 :           0 :                     case CFN_TAN:
    7029                 :           0 :                       if (call_expr_nargs (_p1) == 1)
    7030                 :             :     {
    7031                 :           0 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    7032                 :           0 :                           if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
    7033                 :             :                             {
    7034                 :           0 :                               {
    7035                 :           0 :                                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
    7036                 :           0 :                                 tree res = generic_simplify_304 (loc, type, _p0, _p1, captures, CFN_SIN, CFN_TAN, CFN_COS);
    7037                 :           0 :                                 if (res) return res;
    7038                 :             :                               }
    7039                 :             :                             }
    7040                 :             :                         }
    7041                 :             :                       break;
    7042                 :             :                     default:;
    7043                 :             :                     }
    7044                 :             :                   break;
    7045                 :             :                 default:;
    7046                 :             :                 }
    7047                 :             :             }
    7048                 :             :           break;
    7049                 :           0 :         case CFN_TAN:
    7050                 :           0 :           if (call_expr_nargs (_p0) == 1)
    7051                 :             :     {
    7052                 :           0 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    7053                 :           0 :               switch (TREE_CODE (_p1))
    7054                 :             :                 {
    7055                 :           0 :                 case CALL_EXPR:
    7056                 :           0 :                   switch (get_call_combined_fn (_p1))
    7057                 :             :                     {
    7058                 :           0 :                     case CFN_SIN:
    7059                 :           0 :                       if (call_expr_nargs (_p1) == 1)
    7060                 :             :     {
    7061                 :           0 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    7062                 :           0 :                           if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
    7063                 :             :                             {
    7064                 :           0 :                               {
    7065                 :           0 :                                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
    7066                 :           0 :                                 tree res = generic_simplify_308 (loc, type, _p0, _p1, captures, CFN_TAN, CFN_SIN, CFN_COS);
    7067                 :           0 :                                 if (res) return res;
    7068                 :             :                               }
    7069                 :             :                             }
    7070                 :             :                         }
    7071                 :             :                       break;
    7072                 :             :                     default:;
    7073                 :             :                     }
    7074                 :             :                   break;
    7075                 :             :                 default:;
    7076                 :             :                 }
    7077                 :             :             }
    7078                 :             :           break;
    7079                 :           0 :         case CFN_SINH:
    7080                 :           0 :           if (call_expr_nargs (_p0) == 1)
    7081                 :             :     {
    7082                 :           0 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    7083                 :           0 :               switch (TREE_CODE (_p1))
    7084                 :             :                 {
    7085                 :           0 :                 case CALL_EXPR:
    7086                 :           0 :                   switch (get_call_combined_fn (_p1))
    7087                 :             :                     {
    7088                 :           0 :                     case CFN_COSH:
    7089                 :           0 :                       if (call_expr_nargs (_p1) == 1)
    7090                 :             :     {
    7091                 :           0 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    7092                 :           0 :                           if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
    7093                 :             :                             {
    7094                 :           0 :                               {
    7095                 :           0 :                                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
    7096                 :           0 :                                 tree res = generic_simplify_305 (loc, type, _p0, _p1, captures, CFN_SINH, CFN_COSH, CFN_TANH);
    7097                 :           0 :                                 if (res) return res;
    7098                 :             :                               }
    7099                 :             :                             }
    7100                 :             :                         }
    7101                 :             :                       break;
    7102                 :             :                     default:;
    7103                 :             :                     }
    7104                 :             :                   break;
    7105                 :             :                 default:;
    7106                 :             :                 }
    7107                 :             :             }
    7108                 :             :           break;
    7109                 :           0 :         case CFN_TANH:
    7110                 :           0 :           if (call_expr_nargs (_p0) == 1)
    7111                 :             :     {
    7112                 :           0 :               tree _q20 = CALL_EXPR_ARG (_p0, 0);
    7113                 :           0 :               switch (TREE_CODE (_p1))
    7114                 :             :                 {
    7115                 :           0 :                 case CALL_EXPR:
    7116                 :           0 :                   switch (get_call_combined_fn (_p1))
    7117                 :             :                     {
    7118                 :           0 :                     case CFN_SINH:
    7119                 :           0 :                       if (call_expr_nargs (_p1) == 1)
    7120                 :             :     {
    7121                 :           0 :                           tree _q40 = CALL_EXPR_ARG (_p1, 0);
    7122                 :           0 :                           if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
    7123                 :             :                             {
    7124                 :           0 :                               {
    7125                 :           0 :                                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
    7126                 :           0 :                                 tree res = generic_simplify_306 (loc, type, _p0, _p1, captures, CFN_TANH, CFN_SINH, CFN_COSH);
    7127                 :           0 :                                 if (res) return res;
    7128                 :             :                               }
    7129                 :             :                             }
    7130                 :             :                         }
    7131                 :             :                       break;
    7132                 :             :                     default:;
    7133                 :             :                     }
    7134                 :             :                   break;
    7135                 :             :                 default:;
    7136                 :             :                 }
    7137                 :             :             }
    7138                 :             :           break;
    7139                 :             :         default:;
    7140                 :             :         }
    7141                 :             :       break;
    7142                 :     5844301 :     default:;
    7143                 :             :     }
    7144                 :     5844301 :   switch (TREE_CODE (_p1))
    7145                 :             :     {
    7146                 :      773077 :     case CALL_EXPR:
    7147                 :      773077 :       switch (get_call_combined_fn (_p1))
    7148                 :             :         {
    7149                 :          22 :         case CFN_BUILT_IN_POW:
    7150                 :          22 :           if (call_expr_nargs (_p1) == 2)
    7151                 :             :     {
    7152                 :          22 :               tree _q30 = CALL_EXPR_ARG (_p1, 0);
    7153                 :          22 :               tree _q31 = CALL_EXPR_ARG (_p1, 1);
    7154                 :          22 :               {
    7155                 :          22 :                 tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31 };
    7156                 :          22 :                 tree res = generic_simplify_310 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POW);
    7157                 :          22 :                 if (res) return res;
    7158                 :             :               }
    7159                 :             :             }
    7160                 :             :           break;
    7161                 :           2 :         case CFN_BUILT_IN_POWF:
    7162                 :           2 :           if (call_expr_nargs (_p1) == 2)
    7163                 :             :     {
    7164                 :           2 :               tree _q30 = CALL_EXPR_ARG (_p1, 0);
    7165                 :           2 :               tree _q31 = CALL_EXPR_ARG (_p1, 1);
    7166                 :           2 :               {
    7167                 :           2 :                 tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31 };
    7168                 :           2 :                 tree res = generic_simplify_310 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POWF);
    7169                 :           2 :                 if (res) return res;
    7170                 :             :               }
    7171                 :             :             }
    7172                 :             :           break;
    7173                 :           0 :         case CFN_BUILT_IN_POWL:
    7174                 :           0 :           if (call_expr_nargs (_p1) == 2)
    7175                 :             :     {
    7176                 :           0 :               tree _q30 = CALL_EXPR_ARG (_p1, 0);
    7177                 :           0 :               tree _q31 = CALL_EXPR_ARG (_p1, 1);
    7178                 :           0 :               {
    7179                 :           0 :                 tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31 };
    7180                 :           0 :                 tree res = generic_simplify_310 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POWL);
    7181                 :           0 :                 if (res) return res;
    7182                 :             :               }
    7183                 :             :             }
    7184                 :             :           break;
    7185                 :           0 :         case CFN_POW:
    7186                 :           0 :           if (call_expr_nargs (_p1) == 2)
    7187                 :             :     {
    7188                 :           0 :               tree _q30 = CALL_EXPR_ARG (_p1, 0);
    7189                 :           0 :               tree _q31 = CALL_EXPR_ARG (_p1, 1);
    7190                 :           0 :               {
    7191                 :           0 :                 tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31 };
    7192                 :           0 :                 tree res = generic_simplify_310 (loc, type, _p0, _p1, captures, CFN_POW);
    7193                 :           0 :                 if (res) return res;
    7194                 :             :               }
    7195                 :             :             }
    7196                 :             :           break;
    7197                 :             :         default:;
    7198                 :             :         }
    7199                 :             :       break;
    7200                 :             :     default:;
    7201                 :             :     }
    7202                 :             :   return NULL_TREE;
    7203                 :             : }
    7204                 :             : 
    7205                 :             : tree
    7206                 :        3476 : generic_simplify_CEIL_MOD_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
    7207                 :             : {
    7208                 :        3476 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    7209                 :        3476 :   if (integer_zerop (_p0))
    7210                 :             :     {
    7211                 :           0 :       {
    7212                 :           0 :         tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    7213                 :           0 :         tree res = generic_simplify_294 (loc, type, _p0, _p1, captures, CEIL_MOD_EXPR);
    7214                 :           0 :         if (res) return res;
    7215                 :             :       }
    7216                 :             :     }
    7217                 :        3476 :   if (integer_onep (_p1))
    7218                 :             :     {
    7219                 :           0 :       {
    7220                 :           0 :         tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
    7221                 :           0 :         tree res = generic_simplify_295 (loc, type, _p0, _p1, captures, CEIL_MOD_EXPR);
    7222                 :           0 :         if (res) return res;
    7223                 :             :       }
    7224                 :             :     }
    7225                 :        3476 :   if (integer_minus_onep (_p1))
    7226                 :             :     {
    7227                 :           0 :       {
    7228                 :           0 :         tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    7229                 :           0 :         tree res = generic_simplify_296 (loc, type, _p0, _p1, captures, CEIL_MOD_EXPR);
    7230                 :           0 :         if (res) return res;
    7231                 :             :       }
    7232                 :             :     }
    7233                 :        3476 :   if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
    7234                 :             :     {
    7235                 :           0 :       {
    7236                 :           0 :         tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
    7237                 :           0 :         tree res = generic_simplify_297 (loc, type, _p0, _p1, captures, CEIL_MOD_EXPR);
    7238                 :           0 :         if (res) return res;
    7239                 :             :       }
    7240                 :             :     }
    7241                 :        3476 :   switch (TREE_CODE (_p0))
    7242                 :             :     {
    7243                 :           0 :     case CEIL_MOD_EXPR:
    7244                 :           0 :       {
    7245                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
    7246                 :           0 :         tree _q21 = TREE_OPERAND (_p0, 1);
    7247                 :           0 :         if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
    7248                 :             :           {
    7249                 :           0 :             {
    7250                 :           0 :               tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
    7251                 :           0 :               tree res = generic_simplify_298 (loc, type, _p0, _p1, captures, CEIL_MOD_EXPR);
    7252                 :           0 :               if (res) return res;
    7253                 :             :             }
    7254                 :             :           }
    7255                 :             :         break;
    7256                 :             :       }
    7257                 :           0 :     case MULT_EXPR:
    7258                 :           0 :       {
    7259                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
    7260                 :           0 :         tree _q21 = TREE_OPERAND (_p0, 1);
    7261                 :           0 :         switch (TREE_CODE (_q21))
    7262                 :             :           {
    7263                 :           0 :           case INTEGER_CST:
    7264                 :           0 :             {
    7265                 :           0 :               switch (TREE_CODE (_p1))
    7266                 :             :                 {
    7267                 :           0 :                 case INTEGER_CST:
    7268                 :           0 :                   {
    7269                 :           0 :                     {
    7270                 :           0 :                       tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
    7271                 :           0 :                       tree res = generic_simplify_299 (loc, type, _p0, _p1, captures, CEIL_MOD_EXPR);
    7272                 :           0 :                       if (res) return res;
    7273                 :             :                     }
    7274                 :           0 :                     break;
    7275                 :             :                   }
    7276                 :             :                 default:;
    7277                 :             :                 }
    7278                 :             :               break;
    7279                 :             :             }
    7280                 :             :           default:;
    7281                 :             :           }
    7282                 :             :         break;
    7283                 :             :       }
    7284                 :           0 :     case VEC_COND_EXPR:
    7285                 :           0 :       {
    7286                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
    7287                 :           0 :         tree _q21 = TREE_OPERAND (_p0, 1);
    7288                 :           0 :         tree _q22 = TREE_OPERAND (_p0, 2);
    7289                 :           0 :         switch (TREE_CODE (_p1))
    7290                 :             :           {
    7291                 :           0 :           case VEC_COND_EXPR:
    7292                 :           0 :             {
    7293                 :           0 :               tree _q60 = TREE_OPERAND (_p1, 0);
    7294                 :           0 :               tree _q61 = TREE_OPERAND (_p1, 1);
    7295                 :           0 :               tree _q62 = TREE_OPERAND (_p1, 2);
    7296                 :           0 :               if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
    7297                 :             :                 {
    7298                 :           0 :                   {
    7299                 :           0 :                     tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
    7300                 :           0 :                     if (TREE_CODE_CLASS (CEIL_MOD_EXPR) != tcc_comparison
    7301                 :             :  || types_match (type, TREE_TYPE (captures[2]))
    7302                 :             :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]), ERROR_MARK)
    7303                 :             :  || (optimize_vectors_before_lowering_p ()
    7304                 :             :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]),
    7305                 :             :  TREE_TYPE (captures[1]), ERROR_MARK))
    7306                 :             : )
    7307                 :             :                       {
    7308                 :           0 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1491;
    7309                 :           0 :                         {
    7310                 :           0 :                           tree res_op0;
    7311                 :           0 :                           res_op0 = captures[1];
    7312                 :           0 :                           tree res_op1;
    7313                 :           0 :                           {
    7314                 :           0 :                             tree _o1[2], _r1;
    7315                 :           0 :                             _o1[0] = captures[2];
    7316                 :           0 :                             _o1[1] = captures[5];
    7317                 :           0 :                             _r1 = fold_build2_loc (loc, CEIL_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    7318                 :           0 :                             if (EXPR_P (_r1))
    7319                 :           0 :                               goto next_after_fail1491;
    7320                 :           0 :                             res_op1 = _r1;
    7321                 :             :                           }
    7322                 :           0 :                           tree res_op2;
    7323                 :           0 :                           {
    7324                 :           0 :                             tree _o1[2], _r1;
    7325                 :           0 :                             _o1[0] = captures[3];
    7326                 :           0 :                             _o1[1] = captures[6];
    7327                 :           0 :                             _r1 = fold_build2_loc (loc, CEIL_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    7328                 :           0 :                             if (EXPR_P (_r1))
    7329                 :           0 :                               goto next_after_fail1491;
    7330                 :           0 :                             res_op2 = _r1;
    7331                 :             :                           }
    7332                 :           0 :                           tree _r;
    7333                 :           0 :                           _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    7334                 :           0 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 793, __FILE__, __LINE__, true);
    7335                 :           0 :                           return _r;
    7336                 :             :                         }
    7337                 :           0 : next_after_fail1491:;
    7338                 :             :                       }
    7339                 :             :                   }
    7340                 :             :                 }
    7341                 :             :               break;
    7342                 :             :             }
    7343                 :           0 :           default:;
    7344                 :             :           }
    7345                 :           0 :         {
    7346                 :           0 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
    7347                 :           0 :           if (TREE_CODE_CLASS (CEIL_MOD_EXPR) != tcc_comparison
    7348                 :             :  || types_match (type, TREE_TYPE (captures[2]))
    7349                 :             :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]), ERROR_MARK)
    7350                 :             :  || (optimize_vectors_before_lowering_p ()
    7351                 :             :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]),
    7352                 :             :  TREE_TYPE (captures[1]), ERROR_MARK))
    7353                 :             : )
    7354                 :             :             {
    7355                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1492;
    7356                 :           0 :               {
    7357                 :           0 :                 if (! tree_invariant_p (captures[4])) goto next_after_fail1492;
    7358                 :           0 :                 tree res_op0;
    7359                 :           0 :                 res_op0 = captures[1];
    7360                 :           0 :                 tree res_op1;
    7361                 :           0 :                 {
    7362                 :           0 :                   tree _o1[2], _r1;
    7363                 :           0 :                   _o1[0] = captures[2];
    7364                 :           0 :                   _o1[1] = unshare_expr (captures[4]);
    7365                 :           0 :                   _r1 = fold_build2_loc (loc, CEIL_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    7366                 :           0 :                   if (EXPR_P (_r1))
    7367                 :           0 :                     goto next_after_fail1492;
    7368                 :           0 :                   res_op1 = _r1;
    7369                 :             :                 }
    7370                 :           0 :                 tree res_op2;
    7371                 :           0 :                 {
    7372                 :           0 :                   tree _o1[2], _r1;
    7373                 :           0 :                   _o1[0] = captures[3];
    7374                 :           0 :                   _o1[1] = captures[4];
    7375                 :           0 :                   _r1 = fold_build2_loc (loc, CEIL_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    7376                 :           0 :                   if (EXPR_P (_r1))
    7377                 :           0 :                     goto next_after_fail1492;
    7378                 :           0 :                   res_op2 = _r1;
    7379                 :             :                 }
    7380                 :           0 :                 tree _r;
    7381                 :           0 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    7382                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 794, __FILE__, __LINE__, true);
    7383                 :           0 :                 return _r;
    7384                 :             :               }
    7385                 :           0 : next_after_fail1492:;
    7386                 :             :             }
    7387                 :             :         }
    7388                 :           0 :         break;
    7389                 :             :       }
    7390                 :        3476 :     default:;
    7391                 :             :     }
    7392                 :        3476 :   switch (TREE_CODE (_p1))
    7393                 :             :     {
    7394                 :           0 :     case VEC_COND_EXPR:
    7395                 :           0 :       {
    7396                 :           0 :         tree _q30 = TREE_OPERAND (_p1, 0);
    7397                 :           0 :         tree _q31 = TREE_OPERAND (_p1, 1);
    7398                 :           0 :         tree _q32 = TREE_OPERAND (_p1, 2);
    7399                 :           0 :         {
    7400                 :           0 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
    7401                 :           0 :           if (TREE_CODE_CLASS (CEIL_MOD_EXPR) != tcc_comparison
    7402                 :             :  || types_match (type, TREE_TYPE (captures[3]))
    7403                 :             :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]), ERROR_MARK)
    7404                 :             :  || (optimize_vectors_before_lowering_p ()
    7405                 :             :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]),
    7406                 :             :  TREE_TYPE (captures[2]), ERROR_MARK))
    7407                 :             : )
    7408                 :             :             {
    7409                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1493;
    7410                 :           0 :               {
    7411                 :           0 :                 if (! tree_invariant_p (captures[0])) goto next_after_fail1493;
    7412                 :           0 :                 tree res_op0;
    7413                 :           0 :                 res_op0 = captures[2];
    7414                 :           0 :                 tree res_op1;
    7415                 :           0 :                 {
    7416                 :           0 :                   tree _o1[2], _r1;
    7417                 :           0 :                   _o1[0] = unshare_expr (captures[0]);
    7418                 :           0 :                   _o1[1] = captures[3];
    7419                 :           0 :                   _r1 = fold_build2_loc (loc, CEIL_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    7420                 :           0 :                   if (EXPR_P (_r1))
    7421                 :           0 :                     goto next_after_fail1493;
    7422                 :           0 :                   res_op1 = _r1;
    7423                 :             :                 }
    7424                 :           0 :                 tree res_op2;
    7425                 :           0 :                 {
    7426                 :           0 :                   tree _o1[2], _r1;
    7427                 :           0 :                   _o1[0] = captures[0];
    7428                 :           0 :                   _o1[1] = captures[4];
    7429                 :           0 :                   _r1 = fold_build2_loc (loc, CEIL_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    7430                 :           0 :                   if (EXPR_P (_r1))
    7431                 :           0 :                     goto next_after_fail1493;
    7432                 :           0 :                   res_op2 = _r1;
    7433                 :             :                 }
    7434                 :           0 :                 tree _r;
    7435                 :           0 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    7436                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 795, __FILE__, __LINE__, true);
    7437                 :           0 :                 return _r;
    7438                 :             :               }
    7439                 :           0 : next_after_fail1493:;
    7440                 :             :             }
    7441                 :             :         }
    7442                 :           0 :         break;
    7443                 :             :       }
    7444                 :             :     default:;
    7445                 :             :     }
    7446                 :             :   return NULL_TREE;
    7447                 :             : }
    7448                 :             : 
    7449                 :             : tree
    7450                 :           0 : generic_simplify_ROUND_MOD_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
    7451                 :             : {
    7452                 :           0 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    7453                 :           0 :   if (integer_zerop (_p0))
    7454                 :             :     {
    7455                 :           0 :       {
    7456                 :           0 :         tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    7457                 :           0 :         tree res = generic_simplify_294 (loc, type, _p0, _p1, captures, ROUND_MOD_EXPR);
    7458                 :           0 :         if (res) return res;
    7459                 :             :       }
    7460                 :             :     }
    7461                 :           0 :   if (integer_onep (_p1))
    7462                 :             :     {
    7463                 :           0 :       {
    7464                 :           0 :         tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
    7465                 :           0 :         tree res = generic_simplify_295 (loc, type, _p0, _p1, captures, ROUND_MOD_EXPR);
    7466                 :           0 :         if (res) return res;
    7467                 :             :       }
    7468                 :             :     }
    7469                 :           0 :   if (integer_minus_onep (_p1))
    7470                 :             :     {
    7471                 :           0 :       {
    7472                 :           0 :         tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    7473                 :           0 :         tree res = generic_simplify_296 (loc, type, _p0, _p1, captures, ROUND_MOD_EXPR);
    7474                 :           0 :         if (res) return res;
    7475                 :             :       }
    7476                 :             :     }
    7477                 :           0 :   if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
    7478                 :             :     {
    7479                 :           0 :       {
    7480                 :           0 :         tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
    7481                 :           0 :         tree res = generic_simplify_297 (loc, type, _p0, _p1, captures, ROUND_MOD_EXPR);
    7482                 :           0 :         if (res) return res;
    7483                 :             :       }
    7484                 :             :     }
    7485                 :           0 :   switch (TREE_CODE (_p0))
    7486                 :             :     {
    7487                 :           0 :     case ROUND_MOD_EXPR:
    7488                 :           0 :       {
    7489                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
    7490                 :           0 :         tree _q21 = TREE_OPERAND (_p0, 1);
    7491                 :           0 :         if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
    7492                 :             :           {
    7493                 :           0 :             {
    7494                 :           0 :               tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
    7495                 :           0 :               tree res = generic_simplify_298 (loc, type, _p0, _p1, captures, ROUND_MOD_EXPR);
    7496                 :           0 :               if (res) return res;
    7497                 :             :             }
    7498                 :             :           }
    7499                 :             :         break;
    7500                 :             :       }
    7501                 :           0 :     case MULT_EXPR:
    7502                 :           0 :       {
    7503                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
    7504                 :           0 :         tree _q21 = TREE_OPERAND (_p0, 1);
    7505                 :           0 :         switch (TREE_CODE (_q21))
    7506                 :             :           {
    7507                 :           0 :           case INTEGER_CST:
    7508                 :           0 :             {
    7509                 :           0 :               switch (TREE_CODE (_p1))
    7510                 :             :                 {
    7511                 :           0 :                 case INTEGER_CST:
    7512                 :           0 :                   {
    7513                 :           0 :                     {
    7514                 :           0 :                       tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
    7515                 :           0 :                       tree res = generic_simplify_299 (loc, type, _p0, _p1, captures, ROUND_MOD_EXPR);
    7516                 :           0 :                       if (res) return res;
    7517                 :             :                     }
    7518                 :           0 :                     break;
    7519                 :             :                   }
    7520                 :             :                 default:;
    7521                 :             :                 }
    7522                 :             :               break;
    7523                 :             :             }
    7524                 :             :           default:;
    7525                 :             :           }
    7526                 :             :         break;
    7527                 :             :       }
    7528                 :           0 :     case VEC_COND_EXPR:
    7529                 :           0 :       {
    7530                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
    7531                 :           0 :         tree _q21 = TREE_OPERAND (_p0, 1);
    7532                 :           0 :         tree _q22 = TREE_OPERAND (_p0, 2);
    7533                 :           0 :         switch (TREE_CODE (_p1))
    7534                 :             :           {
    7535                 :           0 :           case VEC_COND_EXPR:
    7536                 :           0 :             {
    7537                 :           0 :               tree _q60 = TREE_OPERAND (_p1, 0);
    7538                 :           0 :               tree _q61 = TREE_OPERAND (_p1, 1);
    7539                 :           0 :               tree _q62 = TREE_OPERAND (_p1, 2);
    7540                 :           0 :               if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
    7541                 :             :                 {
    7542                 :           0 :                   {
    7543                 :           0 :                     tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
    7544                 :           0 :                     if (TREE_CODE_CLASS (ROUND_MOD_EXPR) != tcc_comparison
    7545                 :             :  || types_match (type, TREE_TYPE (captures[2]))
    7546                 :             :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]), ERROR_MARK)
    7547                 :             :  || (optimize_vectors_before_lowering_p ()
    7548                 :             :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]),
    7549                 :             :  TREE_TYPE (captures[1]), ERROR_MARK))
    7550                 :             : )
    7551                 :             :                       {
    7552                 :           0 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1494;
    7553                 :           0 :                         {
    7554                 :           0 :                           tree res_op0;
    7555                 :           0 :                           res_op0 = captures[1];
    7556                 :           0 :                           tree res_op1;
    7557                 :           0 :                           {
    7558                 :           0 :                             tree _o1[2], _r1;
    7559                 :           0 :                             _o1[0] = captures[2];
    7560                 :           0 :                             _o1[1] = captures[5];
    7561                 :           0 :                             _r1 = fold_build2_loc (loc, ROUND_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    7562                 :           0 :                             if (EXPR_P (_r1))
    7563                 :           0 :                               goto next_after_fail1494;
    7564                 :           0 :                             res_op1 = _r1;
    7565                 :             :                           }
    7566                 :           0 :                           tree res_op2;
    7567                 :           0 :                           {
    7568                 :           0 :                             tree _o1[2], _r1;
    7569                 :           0 :                             _o1[0] = captures[3];
    7570                 :           0 :                             _o1[1] = captures[6];
    7571                 :           0 :                             _r1 = fold_build2_loc (loc, ROUND_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    7572                 :           0 :                             if (EXPR_P (_r1))
    7573                 :           0 :                               goto next_after_fail1494;
    7574                 :           0 :                             res_op2 = _r1;
    7575                 :             :                           }
    7576                 :           0 :                           tree _r;
    7577                 :           0 :                           _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    7578                 :           0 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 793, __FILE__, __LINE__, true);
    7579                 :           0 :                           return _r;
    7580                 :             :                         }
    7581                 :           0 : next_after_fail1494:;
    7582                 :             :                       }
    7583                 :             :                   }
    7584                 :             :                 }
    7585                 :             :               break;
    7586                 :             :             }
    7587                 :           0 :           default:;
    7588                 :             :           }
    7589                 :           0 :         {
    7590                 :           0 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
    7591                 :           0 :           if (TREE_CODE_CLASS (ROUND_MOD_EXPR) != tcc_comparison
    7592                 :             :  || types_match (type, TREE_TYPE (captures[2]))
    7593                 :             :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]), ERROR_MARK)
    7594                 :             :  || (optimize_vectors_before_lowering_p ()
    7595                 :             :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]),
    7596                 :             :  TREE_TYPE (captures[1]), ERROR_MARK))
    7597                 :             : )
    7598                 :             :             {
    7599                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1495;
    7600                 :           0 :               {
    7601                 :           0 :                 if (! tree_invariant_p (captures[4])) goto next_after_fail1495;
    7602                 :           0 :                 tree res_op0;
    7603                 :           0 :                 res_op0 = captures[1];
    7604                 :           0 :                 tree res_op1;
    7605                 :           0 :                 {
    7606                 :           0 :                   tree _o1[2], _r1;
    7607                 :           0 :                   _o1[0] = captures[2];
    7608                 :           0 :                   _o1[1] = unshare_expr (captures[4]);
    7609                 :           0 :                   _r1 = fold_build2_loc (loc, ROUND_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    7610                 :           0 :                   if (EXPR_P (_r1))
    7611                 :           0 :                     goto next_after_fail1495;
    7612                 :           0 :                   res_op1 = _r1;
    7613                 :             :                 }
    7614                 :           0 :                 tree res_op2;
    7615                 :           0 :                 {
    7616                 :           0 :                   tree _o1[2], _r1;
    7617                 :           0 :                   _o1[0] = captures[3];
    7618                 :           0 :                   _o1[1] = captures[4];
    7619                 :           0 :                   _r1 = fold_build2_loc (loc, ROUND_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    7620                 :           0 :                   if (EXPR_P (_r1))
    7621                 :           0 :                     goto next_after_fail1495;
    7622                 :           0 :                   res_op2 = _r1;
    7623                 :             :                 }
    7624                 :           0 :                 tree _r;
    7625                 :           0 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    7626                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 794, __FILE__, __LINE__, true);
    7627                 :           0 :                 return _r;
    7628                 :             :               }
    7629                 :           0 : next_after_fail1495:;
    7630                 :             :             }
    7631                 :             :         }
    7632                 :           0 :         break;
    7633                 :             :       }
    7634                 :           0 :     default:;
    7635                 :             :     }
    7636                 :           0 :   switch (TREE_CODE (_p1))
    7637                 :             :     {
    7638                 :           0 :     case VEC_COND_EXPR:
    7639                 :           0 :       {
    7640                 :           0 :         tree _q30 = TREE_OPERAND (_p1, 0);
    7641                 :           0 :         tree _q31 = TREE_OPERAND (_p1, 1);
    7642                 :           0 :         tree _q32 = TREE_OPERAND (_p1, 2);
    7643                 :           0 :         {
    7644                 :           0 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
    7645                 :           0 :           if (TREE_CODE_CLASS (ROUND_MOD_EXPR) != tcc_comparison
    7646                 :             :  || types_match (type, TREE_TYPE (captures[3]))
    7647                 :             :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]), ERROR_MARK)
    7648                 :             :  || (optimize_vectors_before_lowering_p ()
    7649                 :             :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]),
    7650                 :             :  TREE_TYPE (captures[2]), ERROR_MARK))
    7651                 :             : )
    7652                 :             :             {
    7653                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1496;
    7654                 :           0 :               {
    7655                 :           0 :                 if (! tree_invariant_p (captures[0])) goto next_after_fail1496;
    7656                 :           0 :                 tree res_op0;
    7657                 :           0 :                 res_op0 = captures[2];
    7658                 :           0 :                 tree res_op1;
    7659                 :           0 :                 {
    7660                 :           0 :                   tree _o1[2], _r1;
    7661                 :           0 :                   _o1[0] = unshare_expr (captures[0]);
    7662                 :           0 :                   _o1[1] = captures[3];
    7663                 :           0 :                   _r1 = fold_build2_loc (loc, ROUND_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    7664                 :           0 :                   if (EXPR_P (_r1))
    7665                 :           0 :                     goto next_after_fail1496;
    7666                 :           0 :                   res_op1 = _r1;
    7667                 :             :                 }
    7668                 :           0 :                 tree res_op2;
    7669                 :           0 :                 {
    7670                 :           0 :                   tree _o1[2], _r1;
    7671                 :           0 :                   _o1[0] = captures[0];
    7672                 :           0 :                   _o1[1] = captures[4];
    7673                 :           0 :                   _r1 = fold_build2_loc (loc, ROUND_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    7674                 :           0 :                   if (EXPR_P (_r1))
    7675                 :           0 :                     goto next_after_fail1496;
    7676                 :           0 :                   res_op2 = _r1;
    7677                 :             :                 }
    7678                 :           0 :                 tree _r;
    7679                 :           0 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    7680                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 795, __FILE__, __LINE__, true);
    7681                 :           0 :                 return _r;
    7682                 :             :               }
    7683                 :           0 : next_after_fail1496:;
    7684                 :             :             }
    7685                 :             :         }
    7686                 :           0 :         break;
    7687                 :             :       }
    7688                 :             :     default:;
    7689                 :             :     }
    7690                 :             :   return NULL_TREE;
    7691                 :             : }
    7692                 :             : 
    7693                 :             : tree
    7694                 :     1502038 : generic_simplify_TRUNC_MOD_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
    7695                 :             : {
    7696                 :     1502038 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    7697                 :     1502038 :   if (integer_zerop (_p0))
    7698                 :             :     {
    7699                 :         930 :       {
    7700                 :         930 :         tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    7701                 :         930 :         tree res = generic_simplify_294 (loc, type, _p0, _p1, captures, TRUNC_MOD_EXPR);
    7702                 :         930 :         if (res) return res;
    7703                 :             :       }
    7704                 :             :     }
    7705                 :     1501238 :   if (integer_onep (_p1))
    7706                 :             :     {
    7707                 :      183762 :       {
    7708                 :      183762 :         tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
    7709                 :      183762 :         tree res = generic_simplify_295 (loc, type, _p0, _p1, captures, TRUNC_MOD_EXPR);
    7710                 :      183762 :         if (res) return res;
    7711                 :             :       }
    7712                 :             :     }
    7713                 :     1317476 :   if (integer_minus_onep (_p1))
    7714                 :             :     {
    7715                 :         312 :       {
    7716                 :         312 :         tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    7717                 :         312 :         tree res = generic_simplify_296 (loc, type, _p0, _p1, captures, TRUNC_MOD_EXPR);
    7718                 :         312 :         if (res) return res;
    7719                 :             :       }
    7720                 :             :     }
    7721                 :     1317456 :   if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
    7722                 :             :     {
    7723                 :         223 :       {
    7724                 :         223 :         tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
    7725                 :         223 :         tree res = generic_simplify_297 (loc, type, _p0, _p1, captures, TRUNC_MOD_EXPR);
    7726                 :         223 :         if (res) return res;
    7727                 :             :       }
    7728                 :             :     }
    7729                 :     1317363 :   switch (TREE_CODE (_p0))
    7730                 :             :     {
    7731                 :         104 :     case TRUNC_MOD_EXPR:
    7732                 :         104 :       {
    7733                 :         104 :         tree _q20 = TREE_OPERAND (_p0, 0);
    7734                 :         104 :         tree _q21 = TREE_OPERAND (_p0, 1);
    7735                 :         104 :         if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
    7736                 :             :           {
    7737                 :          52 :             {
    7738                 :          52 :               tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
    7739                 :          52 :               tree res = generic_simplify_298 (loc, type, _p0, _p1, captures, TRUNC_MOD_EXPR);
    7740                 :          52 :               if (res) return res;
    7741                 :             :             }
    7742                 :             :           }
    7743                 :             :         break;
    7744                 :             :       }
    7745                 :        5503 :     case MULT_EXPR:
    7746                 :        5503 :       {
    7747                 :        5503 :         tree _q20 = TREE_OPERAND (_p0, 0);
    7748                 :        5503 :         tree _q21 = TREE_OPERAND (_p0, 1);
    7749                 :        5503 :         switch (TREE_CODE (_q21))
    7750                 :             :           {
    7751                 :        5410 :           case INTEGER_CST:
    7752                 :        5410 :             {
    7753                 :        5410 :               switch (TREE_CODE (_p1))
    7754                 :             :                 {
    7755                 :        5388 :                 case INTEGER_CST:
    7756                 :        5388 :                   {
    7757                 :        5388 :                     {
    7758                 :        5388 :                       tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
    7759                 :        5388 :                       tree res = generic_simplify_299 (loc, type, _p0, _p1, captures, TRUNC_MOD_EXPR);
    7760                 :        5388 :                       if (res) return res;
    7761                 :             :                     }
    7762                 :        5388 :                     break;
    7763                 :             :                   }
    7764                 :             :                 default:;
    7765                 :             :                 }
    7766                 :             :               break;
    7767                 :             :             }
    7768                 :             :           default:;
    7769                 :             :           }
    7770                 :             :         break;
    7771                 :             :       }
    7772                 :     1317311 :     default:;
    7773                 :             :     }
    7774                 :     1317311 :   switch (TREE_CODE (_p1))
    7775                 :             :     {
    7776                 :     1132493 :     case INTEGER_CST:
    7777                 :     1132493 :       {
    7778                 :     1132493 :         {
    7779                 :     1132493 :           tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    7780                 :     1132493 :           if (TYPE_SIGN (type) == SIGNED
    7781                 :      167944 :  && !TREE_OVERFLOW (captures[1])
    7782                 :     1132497 :  && wi::neg_p (wi::to_wide (captures[1]))
    7783                 :         311 :  && !TYPE_OVERFLOW_TRAPS (type)
    7784                 :     1132804 :  && !sign_bit_p (captures[1], captures[1])
    7785                 :             : )
    7786                 :             :             {
    7787                 :         307 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1497;
    7788                 :         307 :               {
    7789                 :         307 :                 tree res_op0;
    7790                 :         307 :                 res_op0 = captures[0];
    7791                 :         307 :                 tree res_op1;
    7792                 :         307 :                 {
    7793                 :         307 :                   tree _o1[1], _r1;
    7794                 :         307 :                   _o1[0] = captures[1];
    7795                 :         307 :                   _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
    7796                 :         307 :                   res_op1 = _r1;
    7797                 :             :                 }
    7798                 :         307 :                 tree _r;
    7799                 :         307 :                 _r = fold_build2_loc (loc, TRUNC_MOD_EXPR, type, res_op0, res_op1);
    7800                 :         307 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 898, __FILE__, __LINE__, true);
    7801                 :         307 :                 return _r;
    7802                 :             :               }
    7803                 :           0 : next_after_fail1497:;
    7804                 :             :             }
    7805                 :             :         }
    7806                 :     1132186 :         break;
    7807                 :             :       }
    7808                 :       34535 :     CASE_CONVERT:
    7809                 :       34535 :       {
    7810                 :       34535 :         tree _q30 = TREE_OPERAND (_p1, 0);
    7811                 :       34535 :         switch (TREE_CODE (_q30))
    7812                 :             :           {
    7813                 :           0 :           case NEGATE_EXPR:
    7814                 :           0 :             {
    7815                 :           0 :               tree _q40 = TREE_OPERAND (_q30, 0);
    7816                 :           0 :               {
    7817                 :           0 :                 tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q40 };
    7818                 :           0 :                 tree res = generic_simplify_346 (loc, type, _p0, _p1, captures);
    7819                 :           0 :                 if (res) return res;
    7820                 :             :               }
    7821                 :           0 :               break;
    7822                 :             :             }
    7823                 :       34535 :           default:;
    7824                 :             :           }
    7825                 :       34535 :       {
    7826                 :       34535 :         tree _q30_pops[1];
    7827                 :       34535 :         if (tree_power_of_two_cand (_q30, _q30_pops))
    7828                 :             :           {
    7829                 :           7 :             tree _q40 = _q30_pops[0];
    7830                 :           7 :             {
    7831                 :           7 :               tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q40 };
    7832                 :           7 :               tree res = generic_simplify_300 (loc, type, _p0, _p1, captures, TRUNC_MOD_EXPR);
    7833                 :           7 :               if (res) return res;
    7834                 :             :             }
    7835                 :             : }
    7836                 :             :       }
    7837                 :       34528 :         break;
    7838                 :             :       }
    7839                 :          94 :     case NEGATE_EXPR:
    7840                 :          94 :       {
    7841                 :          94 :         tree _q30 = TREE_OPERAND (_p1, 0);
    7842                 :          94 :         {
    7843                 :          94 :           tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
    7844                 :          94 :           tree res = generic_simplify_346 (loc, type, _p0, _p1, captures);
    7845                 :          94 :           if (res) return res;
    7846                 :             :         }
    7847                 :          94 :         break;
    7848                 :             :       }
    7849                 :     1316997 :     default:;
    7850                 :             :     }
    7851                 :     1316997 : {
    7852                 :     1316997 :   tree _p1_pops[1];
    7853                 :     1316997 :   if (tree_power_of_two_cand (_p1, _p1_pops))
    7854                 :             :     {
    7855                 :     1132195 :       tree _q30 = _p1_pops[0];
    7856                 :     1132195 :       {
    7857                 :     1132195 :         tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q30 };
    7858                 :     1132195 :         tree res = generic_simplify_300 (loc, type, _p0, _p1, captures, TRUNC_MOD_EXPR);
    7859                 :     1132195 :         if (res) return res;
    7860                 :             :       }
    7861                 :             : }
    7862                 :             : }
    7863                 :      537179 :   switch (TREE_CODE (_p0))
    7864                 :             :     {
    7865                 :           0 :     case VEC_COND_EXPR:
    7866                 :           0 :       {
    7867                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
    7868                 :           0 :         tree _q21 = TREE_OPERAND (_p0, 1);
    7869                 :           0 :         tree _q22 = TREE_OPERAND (_p0, 2);
    7870                 :           0 :         switch (TREE_CODE (_p1))
    7871                 :             :           {
    7872                 :           0 :           case VEC_COND_EXPR:
    7873                 :           0 :             {
    7874                 :           0 :               tree _q60 = TREE_OPERAND (_p1, 0);
    7875                 :           0 :               tree _q61 = TREE_OPERAND (_p1, 1);
    7876                 :           0 :               tree _q62 = TREE_OPERAND (_p1, 2);
    7877                 :           0 :               if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
    7878                 :             :                 {
    7879                 :           0 :                   {
    7880                 :           0 :                     tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
    7881                 :           0 :                     if (TREE_CODE_CLASS (TRUNC_MOD_EXPR) != tcc_comparison
    7882                 :             :  || types_match (type, TREE_TYPE (captures[2]))
    7883                 :             :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]), ERROR_MARK)
    7884                 :             :  || (optimize_vectors_before_lowering_p ()
    7885                 :             :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]),
    7886                 :             :  TREE_TYPE (captures[1]), ERROR_MARK))
    7887                 :             : )
    7888                 :             :                       {
    7889                 :           0 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1498;
    7890                 :           0 :                         {
    7891                 :           0 :                           tree res_op0;
    7892                 :           0 :                           res_op0 = captures[1];
    7893                 :           0 :                           tree res_op1;
    7894                 :           0 :                           {
    7895                 :           0 :                             tree _o1[2], _r1;
    7896                 :           0 :                             _o1[0] = captures[2];
    7897                 :           0 :                             _o1[1] = captures[5];
    7898                 :           0 :                             _r1 = fold_build2_loc (loc, TRUNC_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    7899                 :           0 :                             if (EXPR_P (_r1))
    7900                 :           0 :                               goto next_after_fail1498;
    7901                 :           0 :                             res_op1 = _r1;
    7902                 :             :                           }
    7903                 :           0 :                           tree res_op2;
    7904                 :           0 :                           {
    7905                 :           0 :                             tree _o1[2], _r1;
    7906                 :           0 :                             _o1[0] = captures[3];
    7907                 :           0 :                             _o1[1] = captures[6];
    7908                 :           0 :                             _r1 = fold_build2_loc (loc, TRUNC_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    7909                 :           0 :                             if (EXPR_P (_r1))
    7910                 :           0 :                               goto next_after_fail1498;
    7911                 :           0 :                             res_op2 = _r1;
    7912                 :             :                           }
    7913                 :           0 :                           tree _r;
    7914                 :           0 :                           _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    7915                 :           0 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 793, __FILE__, __LINE__, true);
    7916                 :           0 :                           return _r;
    7917                 :             :                         }
    7918                 :           0 : next_after_fail1498:;
    7919                 :             :                       }
    7920                 :             :                   }
    7921                 :             :                 }
    7922                 :             :               break;
    7923                 :             :             }
    7924                 :           0 :           default:;
    7925                 :             :           }
    7926                 :           0 :         {
    7927                 :           0 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
    7928                 :           0 :           if (TREE_CODE_CLASS (TRUNC_MOD_EXPR) != tcc_comparison
    7929                 :             :  || types_match (type, TREE_TYPE (captures[2]))
    7930                 :             :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]), ERROR_MARK)
    7931                 :             :  || (optimize_vectors_before_lowering_p ()
    7932                 :             :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]),
    7933                 :             :  TREE_TYPE (captures[1]), ERROR_MARK))
    7934                 :             : )
    7935                 :             :             {
    7936                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1499;
    7937                 :           0 :               {
    7938                 :           0 :                 if (! tree_invariant_p (captures[4])) goto next_after_fail1499;
    7939                 :           0 :                 tree res_op0;
    7940                 :           0 :                 res_op0 = captures[1];
    7941                 :           0 :                 tree res_op1;
    7942                 :           0 :                 {
    7943                 :           0 :                   tree _o1[2], _r1;
    7944                 :           0 :                   _o1[0] = captures[2];
    7945                 :           0 :                   _o1[1] = unshare_expr (captures[4]);
    7946                 :           0 :                   _r1 = fold_build2_loc (loc, TRUNC_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    7947                 :           0 :                   if (EXPR_P (_r1))
    7948                 :           0 :                     goto next_after_fail1499;
    7949                 :           0 :                   res_op1 = _r1;
    7950                 :             :                 }
    7951                 :           0 :                 tree res_op2;
    7952                 :           0 :                 {
    7953                 :           0 :                   tree _o1[2], _r1;
    7954                 :           0 :                   _o1[0] = captures[3];
    7955                 :           0 :                   _o1[1] = captures[4];
    7956                 :           0 :                   _r1 = fold_build2_loc (loc, TRUNC_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    7957                 :           0 :                   if (EXPR_P (_r1))
    7958                 :           0 :                     goto next_after_fail1499;
    7959                 :           0 :                   res_op2 = _r1;
    7960                 :             :                 }
    7961                 :           0 :                 tree _r;
    7962                 :           0 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    7963                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 794, __FILE__, __LINE__, true);
    7964                 :           0 :                 return _r;
    7965                 :             :               }
    7966                 :           0 : next_after_fail1499:;
    7967                 :             :             }
    7968                 :             :         }
    7969                 :           0 :         break;
    7970                 :             :       }
    7971                 :      537179 :     default:;
    7972                 :             :     }
    7973                 :      537179 :   switch (TREE_CODE (_p1))
    7974                 :             :     {
    7975                 :           7 :     case VEC_COND_EXPR:
    7976                 :           7 :       {
    7977                 :           7 :         tree _q30 = TREE_OPERAND (_p1, 0);
    7978                 :           7 :         tree _q31 = TREE_OPERAND (_p1, 1);
    7979                 :           7 :         tree _q32 = TREE_OPERAND (_p1, 2);
    7980                 :           7 :         {
    7981                 :           7 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
    7982                 :           7 :           if (TREE_CODE_CLASS (TRUNC_MOD_EXPR) != tcc_comparison
    7983                 :             :  || types_match (type, TREE_TYPE (captures[3]))
    7984                 :             :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]), ERROR_MARK)
    7985                 :             :  || (optimize_vectors_before_lowering_p ()
    7986                 :             :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]),
    7987                 :             :  TREE_TYPE (captures[2]), ERROR_MARK))
    7988                 :             : )
    7989                 :             :             {
    7990                 :           7 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1500;
    7991                 :           7 :               {
    7992                 :           7 :                 if (! tree_invariant_p (captures[0])) goto next_after_fail1500;
    7993                 :           0 :                 tree res_op0;
    7994                 :           0 :                 res_op0 = captures[2];
    7995                 :           0 :                 tree res_op1;
    7996                 :           0 :                 {
    7997                 :           0 :                   tree _o1[2], _r1;
    7998                 :           0 :                   _o1[0] = unshare_expr (captures[0]);
    7999                 :           0 :                   _o1[1] = captures[3];
    8000                 :           0 :                   _r1 = fold_build2_loc (loc, TRUNC_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    8001                 :           0 :                   if (EXPR_P (_r1))
    8002                 :           0 :                     goto next_after_fail1500;
    8003                 :           0 :                   res_op1 = _r1;
    8004                 :             :                 }
    8005                 :           0 :                 tree res_op2;
    8006                 :           0 :                 {
    8007                 :           0 :                   tree _o1[2], _r1;
    8008                 :           0 :                   _o1[0] = captures[0];
    8009                 :           0 :                   _o1[1] = captures[4];
    8010                 :           0 :                   _r1 = fold_build2_loc (loc, TRUNC_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    8011                 :           0 :                   if (EXPR_P (_r1))
    8012                 :           0 :                     goto next_after_fail1500;
    8013                 :           0 :                   res_op2 = _r1;
    8014                 :             :                 }
    8015                 :           0 :                 tree _r;
    8016                 :           0 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    8017                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 795, __FILE__, __LINE__, true);
    8018                 :           0 :                 return _r;
    8019                 :             :               }
    8020                 :           7 : next_after_fail1500:;
    8021                 :             :             }
    8022                 :             :         }
    8023                 :           7 :         break;
    8024                 :             :       }
    8025                 :             :     default:;
    8026                 :             :     }
    8027                 :             :   return NULL_TREE;
    8028                 :             : }
    8029                 :             : 
    8030                 :             : tree
    8031                 :      830383 : generic_simplify_LSHIFT_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
    8032                 :             : {
    8033                 :      830383 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    8034                 :      830383 :   switch (TREE_CODE (_p1))
    8035                 :             :     {
    8036                 :         243 :     case TRUNC_MOD_EXPR:
    8037                 :         243 :       {
    8038                 :         243 :         tree _q30 = TREE_OPERAND (_p1, 0);
    8039                 :         243 :         tree _q31 = TREE_OPERAND (_p1, 1);
    8040                 :         243 :         {
    8041                 :         243 :           tree _q31_pops[1];
    8042                 :         243 :           if (tree_power_of_two_cand (_q31, _q31_pops))
    8043                 :             :             {
    8044                 :         238 :               tree _q50 = _q31_pops[0];
    8045                 :         238 :               {
    8046                 :         238 :                 tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q31, _q50 };
    8047                 :         238 :                 tree res = generic_simplify_347 (loc, type, _p0, _p1, captures, LSHIFT_EXPR, TRUNC_MOD_EXPR);
    8048                 :         238 :                 if (res) return res;
    8049                 :             :               }
    8050                 :             : }
    8051                 :             :         }
    8052                 :          13 :         break;
    8053                 :             :       }
    8054                 :           0 :     case FLOOR_MOD_EXPR:
    8055                 :           0 :       {
    8056                 :           0 :         tree _q30 = TREE_OPERAND (_p1, 0);
    8057                 :           0 :         tree _q31 = TREE_OPERAND (_p1, 1);
    8058                 :           0 :         {
    8059                 :           0 :           tree _q31_pops[1];
    8060                 :           0 :           if (tree_power_of_two_cand (_q31, _q31_pops))
    8061                 :             :             {
    8062                 :           0 :               tree _q50 = _q31_pops[0];
    8063                 :           0 :               {
    8064                 :           0 :                 tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q31, _q50 };
    8065                 :           0 :                 tree res = generic_simplify_347 (loc, type, _p0, _p1, captures, LSHIFT_EXPR, FLOOR_MOD_EXPR);
    8066                 :           0 :                 if (res) return res;
    8067                 :             :               }
    8068                 :             : }
    8069                 :             :         }
    8070                 :           0 :         break;
    8071                 :             :       }
    8072                 :      830153 :     default:;
    8073                 :             :     }
    8074                 :      830153 : if (uniform_integer_cst_p (_p1))
    8075                 :             :   {
    8076                 :      504284 :     {
    8077                 :      504284 :       tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    8078                 :      504284 :       tree res = generic_simplify_348 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
    8079                 :      504284 :       if (res) return res;
    8080                 :             :     }
    8081                 :             :   }
    8082                 :      829686 :   switch (TREE_CODE (_p0))
    8083                 :             :     {
    8084                 :      351193 :     CASE_CONVERT:
    8085                 :      351193 :       {
    8086                 :      351193 :         tree _q20 = TREE_OPERAND (_p0, 0);
    8087                 :      351193 :         switch (TREE_CODE (_q20))
    8088                 :             :           {
    8089                 :           4 :           case LT_EXPR:
    8090                 :           4 :             {
    8091                 :           4 :               tree _q30 = TREE_OPERAND (_q20, 0);
    8092                 :           4 :               tree _q31 = TREE_OPERAND (_q20, 1);
    8093                 :           4 :               if (integer_zerop (_q31))
    8094                 :             :                 {
    8095                 :           4 :                   switch (TREE_CODE (_p1))
    8096                 :             :                     {
    8097                 :           4 :                     case INTEGER_CST:
    8098                 :           4 :                       {
    8099                 :           4 :                         {
    8100                 :           4 :                           tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
    8101                 :           4 :                           if (TYPE_SIGN (TREE_TYPE (captures[0])) == SIGNED
    8102                 :           4 :  && wi::eq_p (wi::to_wide (captures[2]), TYPE_PRECISION (TREE_TYPE (captures[0])) - 1)
    8103                 :             : )
    8104                 :             :                             {
    8105                 :           0 :                               {
    8106                 :           0 :  wide_int wone = wi::one (TYPE_PRECISION (type));
    8107                 :           0 :                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1501;
    8108                 :           0 :                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1501;
    8109                 :           0 :                                   {
    8110                 :           0 :                                     tree res_op0;
    8111                 :           0 :                                     {
    8112                 :           0 :                                       tree _o1[1], _r1;
    8113                 :           0 :                                       _o1[0] = captures[0];
    8114                 :           0 :                                       if (TREE_TYPE (_o1[0]) != type)
    8115                 :             :                                         {
    8116                 :           0 :                                           _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
    8117                 :             :                                         }
    8118                 :             :                                       else
    8119                 :             :                                         _r1 = _o1[0];
    8120                 :           0 :                                       res_op0 = _r1;
    8121                 :             :                                     }
    8122                 :           0 :                                     tree res_op1;
    8123                 :           0 :                                     res_op1 =  wide_int_to_tree (type,
    8124                 :           0 :  wi::lshift (wone, wi::to_wide (captures[2])));
    8125                 :           0 :                                     tree _r;
    8126                 :           0 :                                     _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
    8127                 :           0 :                                     if (TREE_SIDE_EFFECTS (captures[1]))
    8128                 :           0 :                                       _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    8129                 :           0 :                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 899, __FILE__, __LINE__, true);
    8130                 :           0 :                                     return _r;
    8131                 :             :                                   }
    8132                 :           0 : next_after_fail1501:;
    8133                 :           0 :                               }
    8134                 :             :                             }
    8135                 :             :                         }
    8136                 :           4 :                         break;
    8137                 :             :                       }
    8138                 :             :                     default:;
    8139                 :             :                     }
    8140                 :             :                 }
    8141                 :             :               break;
    8142                 :             :             }
    8143                 :         121 :           CASE_CONVERT:
    8144                 :         121 :             {
    8145                 :         121 :               tree _q30 = TREE_OPERAND (_q20, 0);
    8146                 :         121 :               switch (TREE_CODE (_q30))
    8147                 :             :                 {
    8148                 :           0 :                 case RSHIFT_EXPR:
    8149                 :           0 :                   {
    8150                 :           0 :                     tree _q40 = TREE_OPERAND (_q30, 0);
    8151                 :           0 :                     tree _q41 = TREE_OPERAND (_q30, 1);
    8152                 :           0 :                     switch (TREE_CODE (_q41))
    8153                 :             :                       {
    8154                 :           0 :                       case INTEGER_CST:
    8155                 :           0 :                         {
    8156                 :           0 :                           if ((_p1 == _q41 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q41, 0) && types_match (_p1, _q41)))
    8157                 :             :                             {
    8158                 :           0 :                               {
    8159                 :           0 :                                 tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q40, _q41 };
    8160                 :           0 :                                 if (wi::ltu_p (wi::to_wide (captures[2]), element_precision (type))
    8161                 :           0 :  && INTEGRAL_TYPE_P (type)
    8162                 :           0 :  && INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
    8163                 :           0 :  && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
    8164                 :           0 :  && TYPE_PRECISION (type) == TYPE_PRECISION (TREE_TYPE (captures[1]))
    8165                 :           0 :  && (TYPE_PRECISION (TREE_TYPE (captures[0])) >= TYPE_PRECISION (type)
    8166                 :           0 :  || wi::geu_p (wi::to_wide (captures[2]),
    8167                 :           0 :  TYPE_PRECISION (type)
    8168                 :           0 :  - TYPE_PRECISION (TREE_TYPE (captures[0]))))
    8169                 :             : )
    8170                 :             :                                   {
    8171                 :           0 :                                     if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1502;
    8172                 :           0 :                                     {
    8173                 :           0 :                                       tree res_op0;
    8174                 :           0 :                                       {
    8175                 :           0 :                                         tree _o1[1], _r1;
    8176                 :           0 :                                         _o1[0] = captures[1];
    8177                 :           0 :                                         if (TREE_TYPE (_o1[0]) != type)
    8178                 :             :                                           {
    8179                 :           0 :                                             _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
    8180                 :             :                                           }
    8181                 :             :                                         else
    8182                 :             :                                           _r1 = _o1[0];
    8183                 :           0 :                                         res_op0 = _r1;
    8184                 :             :                                       }
    8185                 :           0 :                                       tree res_op1;
    8186                 :           0 :                                       {
    8187                 :           0 :                                         tree _o1[2], _r1;
    8188                 :           0 :                                         _o1[0] =  build_minus_one_cst (type);
    8189                 :           0 :                                         _o1[1] = captures[2];
    8190                 :           0 :                                         _r1 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    8191                 :           0 :                                         res_op1 = _r1;
    8192                 :             :                                       }
    8193                 :           0 :                                       tree _r;
    8194                 :           0 :                                       _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
    8195                 :           0 :                                       if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 900, __FILE__, __LINE__, true);
    8196                 :           0 :                                       return _r;
    8197                 :             :                                     }
    8198                 :           0 : next_after_fail1502:;
    8199                 :             :                                   }
    8200                 :             :                               }
    8201                 :             :                             }
    8202                 :             :                           break;
    8203                 :             :                         }
    8204                 :             :                       default:;
    8205                 :             :                       }
    8206                 :             :                     break;
    8207                 :             :                   }
    8208                 :             :                 default:;
    8209                 :             :                 }
    8210                 :             :               break;
    8211                 :             :             }
    8212                 :             :           default:;
    8213                 :             :           }
    8214                 :             :         break;
    8215                 :             :       }
    8216                 :       19212 :     case RSHIFT_EXPR:
    8217                 :       19212 :       {
    8218                 :       19212 :         tree _q20 = TREE_OPERAND (_p0, 0);
    8219                 :       19212 :         tree _q21 = TREE_OPERAND (_p0, 1);
    8220                 :       19212 :         switch (TREE_CODE (_q21))
    8221                 :             :           {
    8222                 :          89 :           case INTEGER_CST:
    8223                 :          89 :             {
    8224                 :          89 :               if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
    8225                 :             :                 {
    8226                 :          42 :                   {
    8227                 :          42 :                     tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
    8228                 :          42 :                     tree res = generic_simplify_349 (loc, type, _p0, _p1, captures);
    8229                 :          42 :                     if (res) return res;
    8230                 :             :                   }
    8231                 :             :                 }
    8232                 :             :               break;
    8233                 :             :             }
    8234                 :             :           default:;
    8235                 :             :           }
    8236                 :             :         break;
    8237                 :             :       }
    8238                 :      829644 :     default:;
    8239                 :             :     }
    8240                 :      829644 : {
    8241                 :      829644 :   tree _p0_pops[1];
    8242                 :      829644 :   if (tree_nop_convert (_p0, _p0_pops))
    8243                 :             :     {
    8244                 :      323045 :       tree _q20 = _p0_pops[0];
    8245                 :      323045 :       switch (TREE_CODE (_q20))
    8246                 :             :         {
    8247                 :          73 :         case RSHIFT_EXPR:
    8248                 :          73 :           {
    8249                 :          73 :             tree _q30 = TREE_OPERAND (_q20, 0);
    8250                 :          73 :             tree _q31 = TREE_OPERAND (_q20, 1);
    8251                 :          73 :             switch (TREE_CODE (_q31))
    8252                 :             :               {
    8253                 :          67 :               case INTEGER_CST:
    8254                 :          67 :                 {
    8255                 :          67 :                   if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
    8256                 :             :                     {
    8257                 :           8 :                       {
    8258                 :           8 :                         tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
    8259                 :           8 :                         tree res = generic_simplify_349 (loc, type, _p0, _p1, captures);
    8260                 :           8 :                         if (res) return res;
    8261                 :             :                       }
    8262                 :             :                     }
    8263                 :             :                   break;
    8264                 :             :                 }
    8265                 :             :               default:;
    8266                 :             :               }
    8267                 :             :             break;
    8268                 :             :           }
    8269                 :             :         default:;
    8270                 :             :         }
    8271                 :             : }
    8272                 :             : }
    8273                 :      829636 : if (integer_onep (_p0))
    8274                 :             :   {
    8275                 :      259055 :     switch (TREE_CODE (_p1))
    8276                 :             :       {
    8277                 :       31087 :       case MINUS_EXPR:
    8278                 :       31087 :         {
    8279                 :       31087 :           tree _q30 = TREE_OPERAND (_p1, 0);
    8280                 :       31087 :           tree _q31 = TREE_OPERAND (_p1, 1);
    8281                 :       31087 :           switch (TREE_CODE (_q30))
    8282                 :             :             {
    8283                 :       31085 :             case INTEGER_CST:
    8284                 :       31085 :               {
    8285                 :       31085 :                 {
    8286                 :       31085 :                   tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31 };
    8287                 :       31085 :                   if (INTEGRAL_TYPE_P (type)
    8288                 :       31085 :  && wi::eq_p (wi::to_wide (captures[2]), TYPE_PRECISION (type) - 1)
    8289                 :       31085 :  && single_use (captures[1])
    8290                 :             : )
    8291                 :             :                     {
    8292                 :       28401 :                       if (TYPE_UNSIGNED (type)
    8293                 :             : )
    8294                 :             :                         {
    8295                 :       28395 :                           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1503;
    8296                 :       28395 :                           {
    8297                 :       28395 :                             tree res_op0;
    8298                 :       28395 :                             {
    8299                 :       28395 :                               tree _o1[2], _r1;
    8300                 :       28395 :                               _o1[0] = captures[0];
    8301                 :       28395 :                               _o1[1] = captures[2];
    8302                 :       28395 :                               _r1 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    8303                 :       28395 :                               res_op0 = _r1;
    8304                 :             :                             }
    8305                 :       28395 :                             tree res_op1;
    8306                 :       28395 :                             res_op1 = captures[3];
    8307                 :       28395 :                             tree _r;
    8308                 :       28395 :                             _r = fold_build2_loc (loc, RSHIFT_EXPR, type, res_op0, res_op1);
    8309                 :       28395 :                             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 901, __FILE__, __LINE__, true);
    8310                 :       28395 :                             return _r;
    8311                 :             :                           }
    8312                 :           0 : next_after_fail1503:;
    8313                 :             :                         }
    8314                 :             :                       else
    8315                 :             :                         {
    8316                 :           6 :                           {
    8317                 :           6 :  tree utype = unsigned_type_for (type);
    8318                 :           6 :                               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1504;
    8319                 :           6 :                               {
    8320                 :           6 :                                 tree res_op0;
    8321                 :           6 :                                 {
    8322                 :           6 :                                   tree _o1[2], _r1;
    8323                 :           6 :                                   {
    8324                 :           6 :                                     tree _o2[2], _r2;
    8325                 :           6 :                                     {
    8326                 :           6 :                                       tree _o3[1], _r3;
    8327                 :           6 :                                       _o3[0] = captures[0];
    8328                 :           6 :                                       if (TREE_TYPE (_o3[0]) != utype)
    8329                 :             :                                         {
    8330                 :           6 :                                           _r3 = fold_build1_loc (loc, NOP_EXPR, utype, _o3[0]);
    8331                 :             :                                         }
    8332                 :             :                                       else
    8333                 :             :                                         _r3 = _o3[0];
    8334                 :           6 :                                       _o2[0] = _r3;
    8335                 :             :                                     }
    8336                 :           6 :                                     _o2[1] = captures[2];
    8337                 :           6 :                                     _r2 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
    8338                 :           6 :                                     _o1[0] = _r2;
    8339                 :             :                                   }
    8340                 :           6 :                                   _o1[1] = captures[3];
    8341                 :           6 :                                   _r1 = fold_build2_loc (loc, RSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    8342                 :           6 :                                   res_op0 = _r1;
    8343                 :             :                                 }
    8344                 :           6 :                                 tree _r;
    8345                 :           6 :                                 _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
    8346                 :           6 :                                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 902, __FILE__, __LINE__, true);
    8347                 :           6 :                                 return _r;
    8348                 :             :                               }
    8349                 :           0 : next_after_fail1504:;
    8350                 :             :                           }
    8351                 :             :                         }
    8352                 :             :                     }
    8353                 :             :                 }
    8354                 :        2684 :                 break;
    8355                 :             :               }
    8356                 :             :             default:;
    8357                 :             :             }
    8358                 :             :           break;
    8359                 :             :         }
    8360                 :             :       default:;
    8361                 :             :       }
    8362                 :             :   }
    8363                 :      801235 :   if (integer_zerop (_p1))
    8364                 :             :     {
    8365                 :        1030 :       {
    8366                 :        1030 :         tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
    8367                 :        1030 :         tree res = generic_simplify_350 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
    8368                 :        1030 :         if (res) return res;
    8369                 :             :       }
    8370                 :             :     }
    8371                 :      800205 :   if (integer_zerop (_p0))
    8372                 :             :     {
    8373                 :         178 :       {
    8374                 :         178 :         tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    8375                 :         178 :         tree res = generic_simplify_351 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
    8376                 :         178 :         if (res) return res;
    8377                 :             :       }
    8378                 :             :     }
    8379                 :      800027 :   switch (TREE_CODE (_p1))
    8380                 :             :     {
    8381                 :           0 :     case VECTOR_CST:
    8382                 :           0 :       {
    8383                 :           0 :         {
    8384                 :           0 :           tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    8385                 :           0 :           tree res = generic_simplify_352 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
    8386                 :           0 :           if (res) return res;
    8387                 :             :         }
    8388                 :           0 :         break;
    8389                 :             :       }
    8390                 :           0 :     case CONSTRUCTOR:
    8391                 :           0 :       {
    8392                 :           0 :         {
    8393                 :           0 :           tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    8394                 :           0 :           tree res = generic_simplify_353 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
    8395                 :           0 :           if (res) return res;
    8396                 :             :         }
    8397                 :           0 :         break;
    8398                 :             :       }
    8399                 :      800027 :     default:;
    8400                 :             :     }
    8401                 :      800027 :   switch (TREE_CODE (_p0))
    8402                 :             :     {
    8403                 :         273 :     case LSHIFT_EXPR:
    8404                 :         273 :       {
    8405                 :         273 :         tree _q20 = TREE_OPERAND (_p0, 0);
    8406                 :         273 :         tree _q21 = TREE_OPERAND (_p0, 1);
    8407                 :         273 :         switch (TREE_CODE (_q21))
    8408                 :             :           {
    8409                 :          39 :           case INTEGER_CST:
    8410                 :          39 :             {
    8411                 :          39 :               switch (TREE_CODE (_p1))
    8412                 :             :                 {
    8413                 :          39 :                 case INTEGER_CST:
    8414                 :          39 :                   {
    8415                 :          39 :                     {
    8416                 :          39 :                       tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
    8417                 :          39 :                       tree res = generic_simplify_354 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
    8418                 :          39 :                       if (res) return res;
    8419                 :             :                     }
    8420                 :           0 :                     break;
    8421                 :             :                   }
    8422                 :             :                 default:;
    8423                 :             :                 }
    8424                 :             :               break;
    8425                 :             :             }
    8426                 :             :           default:;
    8427                 :             :           }
    8428                 :             :         break;
    8429                 :             :       }
    8430                 :      351102 :     CASE_CONVERT:
    8431                 :      351102 :       {
    8432                 :      351102 :         tree _q20 = TREE_OPERAND (_p0, 0);
    8433                 :      351102 :         switch (TREE_CODE (_q20))
    8434                 :             :           {
    8435                 :           0 :           case BIT_AND_EXPR:
    8436                 :           0 :             {
    8437                 :           0 :               tree _q30 = TREE_OPERAND (_q20, 0);
    8438                 :           0 :               tree _q31 = TREE_OPERAND (_q20, 1);
    8439                 :           0 :               switch (TREE_CODE (_q31))
    8440                 :             :                 {
    8441                 :           0 :                 case INTEGER_CST:
    8442                 :           0 :                   {
    8443                 :           0 :                     switch (TREE_CODE (_p1))
    8444                 :             :                       {
    8445                 :           0 :                       case INTEGER_CST:
    8446                 :           0 :                         {
    8447                 :           0 :                           {
    8448                 :           0 :                             tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1 };
    8449                 :           0 :                             tree res = generic_simplify_355 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LSHIFT_EXPR);
    8450                 :           0 :                             if (res) return res;
    8451                 :             :                           }
    8452                 :           0 :                           break;
    8453                 :             :                         }
    8454                 :             :                       default:;
    8455                 :             :                       }
    8456                 :             :                     break;
    8457                 :             :                   }
    8458                 :             :                 default:;
    8459                 :             :                 }
    8460                 :             :               break;
    8461                 :             :             }
    8462                 :           0 :           case BIT_XOR_EXPR:
    8463                 :           0 :             {
    8464                 :           0 :               tree _q30 = TREE_OPERAND (_q20, 0);
    8465                 :           0 :               tree _q31 = TREE_OPERAND (_q20, 1);
    8466                 :           0 :               switch (TREE_CODE (_q31))
    8467                 :             :                 {
    8468                 :           0 :                 case INTEGER_CST:
    8469                 :           0 :                   {
    8470                 :           0 :                     switch (TREE_CODE (_p1))
    8471                 :             :                       {
    8472                 :           0 :                       case INTEGER_CST:
    8473                 :           0 :                         {
    8474                 :           0 :                           {
    8475                 :           0 :                             tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1 };
    8476                 :           0 :                             tree res = generic_simplify_355 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, LSHIFT_EXPR);
    8477                 :           0 :                             if (res) return res;
    8478                 :             :                           }
    8479                 :           0 :                           break;
    8480                 :             :                         }
    8481                 :             :                       default:;
    8482                 :             :                       }
    8483                 :             :                     break;
    8484                 :             :                   }
    8485                 :             :                 default:;
    8486                 :             :                 }
    8487                 :             :               break;
    8488                 :             :             }
    8489                 :          16 :           case BIT_IOR_EXPR:
    8490                 :          16 :             {
    8491                 :          16 :               tree _q30 = TREE_OPERAND (_q20, 0);
    8492                 :          16 :               tree _q31 = TREE_OPERAND (_q20, 1);
    8493                 :          16 :               switch (TREE_CODE (_q31))
    8494                 :             :                 {
    8495                 :          11 :                 case INTEGER_CST:
    8496                 :          11 :                   {
    8497                 :          11 :                     switch (TREE_CODE (_p1))
    8498                 :             :                       {
    8499                 :          11 :                       case INTEGER_CST:
    8500                 :          11 :                         {
    8501                 :          11 :                           {
    8502                 :          11 :                             tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1 };
    8503                 :          11 :                             tree res = generic_simplify_355 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, LSHIFT_EXPR);
    8504                 :          11 :                             if (res) return res;
    8505                 :             :                           }
    8506                 :           2 :                           break;
    8507                 :             :                         }
    8508                 :             :                       default:;
    8509                 :             :                       }
    8510                 :             :                     break;
    8511                 :             :                   }
    8512                 :             :                 default:;
    8513                 :             :                 }
    8514                 :             :               break;
    8515                 :             :             }
    8516                 :             :           default:;
    8517                 :             :           }
    8518                 :             :         break;
    8519                 :             :       }
    8520                 :       12349 :     case BIT_AND_EXPR:
    8521                 :       12349 :       {
    8522                 :       12349 :         tree _q20 = TREE_OPERAND (_p0, 0);
    8523                 :       12349 :         tree _q21 = TREE_OPERAND (_p0, 1);
    8524                 :       12349 :         switch (TREE_CODE (_q21))
    8525                 :             :           {
    8526                 :       12254 :           case INTEGER_CST:
    8527                 :       12254 :             {
    8528                 :       12254 :               switch (TREE_CODE (_p1))
    8529                 :             :                 {
    8530                 :       12115 :                 case INTEGER_CST:
    8531                 :       12115 :                   {
    8532                 :       12115 :                     {
    8533                 :       12115 :                       tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1 };
    8534                 :       12115 :                       tree res = generic_simplify_356 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LSHIFT_EXPR);
    8535                 :       12115 :                       if (res) return res;
    8536                 :             :                     }
    8537                 :           7 :                     break;
    8538                 :             :                   }
    8539                 :             :                 default:;
    8540                 :             :                 }
    8541                 :             :               break;
    8542                 :             :             }
    8543                 :             :           default:;
    8544                 :             :           }
    8545                 :             :         break;
    8546                 :             :       }
    8547                 :          66 :     case BIT_XOR_EXPR:
    8548                 :          66 :       {
    8549                 :          66 :         tree _q20 = TREE_OPERAND (_p0, 0);
    8550                 :          66 :         tree _q21 = TREE_OPERAND (_p0, 1);
    8551                 :          66 :         switch (TREE_CODE (_q21))
    8552                 :             :           {
    8553                 :           0 :           case INTEGER_CST:
    8554                 :           0 :             {
    8555                 :           0 :               switch (TREE_CODE (_p1))
    8556                 :             :                 {
    8557                 :           0 :                 case INTEGER_CST:
    8558                 :           0 :                   {
    8559                 :           0 :                     {
    8560                 :           0 :                       tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1 };
    8561                 :           0 :                       tree res = generic_simplify_356 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, LSHIFT_EXPR);
    8562                 :           0 :                       if (res) return res;
    8563                 :             :                     }
    8564                 :           0 :                     break;
    8565                 :             :                   }
    8566                 :             :                 default:;
    8567                 :             :                 }
    8568                 :             :               break;
    8569                 :             :             }
    8570                 :             :           default:;
    8571                 :             :           }
    8572                 :             :         break;
    8573                 :             :       }
    8574                 :          75 :     case BIT_IOR_EXPR:
    8575                 :          75 :       {
    8576                 :          75 :         tree _q20 = TREE_OPERAND (_p0, 0);
    8577                 :          75 :         tree _q21 = TREE_OPERAND (_p0, 1);
    8578                 :          75 :         switch (TREE_CODE (_q21))
    8579                 :             :           {
    8580                 :           2 :           case INTEGER_CST:
    8581                 :           2 :             {
    8582                 :           2 :               switch (TREE_CODE (_p1))
    8583                 :             :                 {
    8584                 :           2 :                 case INTEGER_CST:
    8585                 :           2 :                   {
    8586                 :           2 :                     {
    8587                 :           2 :                       tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1 };
    8588                 :           2 :                       tree res = generic_simplify_356 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, LSHIFT_EXPR);
    8589                 :           2 :                       if (res) return res;
    8590                 :             :                     }
    8591                 :           0 :                     break;
    8592                 :             :                   }
    8593                 :             :                 default:;
    8594                 :             :                 }
    8595                 :             :               break;
    8596                 :             :             }
    8597                 :             :           default:;
    8598                 :             :           }
    8599                 :             :         break;
    8600                 :             :       }
    8601                 :           1 :     case VEC_COND_EXPR:
    8602                 :           1 :       {
    8603                 :           1 :         tree _q20 = TREE_OPERAND (_p0, 0);
    8604                 :           1 :         tree _q21 = TREE_OPERAND (_p0, 1);
    8605                 :           1 :         tree _q22 = TREE_OPERAND (_p0, 2);
    8606                 :           1 :         switch (TREE_CODE (_p1))
    8607                 :             :           {
    8608                 :           0 :           case VEC_COND_EXPR:
    8609                 :           0 :             {
    8610                 :           0 :               tree _q60 = TREE_OPERAND (_p1, 0);
    8611                 :           0 :               tree _q61 = TREE_OPERAND (_p1, 1);
    8612                 :           0 :               tree _q62 = TREE_OPERAND (_p1, 2);
    8613                 :           0 :               if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
    8614                 :             :                 {
    8615                 :           0 :                   {
    8616                 :           0 :                     tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
    8617                 :           0 :                     if (TREE_CODE_CLASS (LSHIFT_EXPR) != tcc_comparison
    8618                 :             :  || types_match (type, TREE_TYPE (captures[2]))
    8619                 :             :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]), ERROR_MARK)
    8620                 :             :  || (optimize_vectors_before_lowering_p ()
    8621                 :             :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]),
    8622                 :             :  TREE_TYPE (captures[1]), ERROR_MARK))
    8623                 :             : )
    8624                 :             :                       {
    8625                 :           0 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1505;
    8626                 :           0 :                         {
    8627                 :           0 :                           tree res_op0;
    8628                 :           0 :                           res_op0 = captures[1];
    8629                 :           0 :                           tree res_op1;
    8630                 :           0 :                           {
    8631                 :           0 :                             tree _o1[2], _r1;
    8632                 :           0 :                             _o1[0] = captures[2];
    8633                 :           0 :                             _o1[1] = captures[5];
    8634                 :           0 :                             _r1 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    8635                 :           0 :                             if (EXPR_P (_r1))
    8636                 :           0 :                               goto next_after_fail1505;
    8637                 :           0 :                             res_op1 = _r1;
    8638                 :             :                           }
    8639                 :           0 :                           tree res_op2;
    8640                 :           0 :                           {
    8641                 :           0 :                             tree _o1[2], _r1;
    8642                 :           0 :                             _o1[0] = captures[3];
    8643                 :           0 :                             _o1[1] = captures[6];
    8644                 :           0 :                             _r1 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    8645                 :           0 :                             if (EXPR_P (_r1))
    8646                 :           0 :                               goto next_after_fail1505;
    8647                 :           0 :                             res_op2 = _r1;
    8648                 :             :                           }
    8649                 :           0 :                           tree _r;
    8650                 :           0 :                           _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    8651                 :           0 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 793, __FILE__, __LINE__, true);
    8652                 :           0 :                           return _r;
    8653                 :             :                         }
    8654                 :           0 : next_after_fail1505:;
    8655                 :             :                       }
    8656                 :             :                   }
    8657                 :             :                 }
    8658                 :             :               break;
    8659                 :             :             }
    8660                 :           1 :           default:;
    8661                 :             :           }
    8662                 :           1 :         {
    8663                 :           1 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
    8664                 :           1 :           if (TREE_CODE_CLASS (LSHIFT_EXPR) != tcc_comparison
    8665                 :             :  || types_match (type, TREE_TYPE (captures[2]))
    8666                 :             :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]), ERROR_MARK)
    8667                 :             :  || (optimize_vectors_before_lowering_p ()
    8668                 :             :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]),
    8669                 :             :  TREE_TYPE (captures[1]), ERROR_MARK))
    8670                 :             : )
    8671                 :             :             {
    8672                 :           1 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1506;
    8673                 :           1 :               {
    8674                 :           1 :                 if (! tree_invariant_p (captures[4])) goto next_after_fail1506;
    8675                 :           0 :                 tree res_op0;
    8676                 :           0 :                 res_op0 = captures[1];
    8677                 :           0 :                 tree res_op1;
    8678                 :           0 :                 {
    8679                 :           0 :                   tree _o1[2], _r1;
    8680                 :           0 :                   _o1[0] = captures[2];
    8681                 :           0 :                   _o1[1] = unshare_expr (captures[4]);
    8682                 :           0 :                   _r1 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    8683                 :           0 :                   if (EXPR_P (_r1))
    8684                 :           0 :                     goto next_after_fail1506;
    8685                 :           0 :                   res_op1 = _r1;
    8686                 :             :                 }
    8687                 :           0 :                 tree res_op2;
    8688                 :           0 :                 {
    8689                 :           0 :                   tree _o1[2], _r1;
    8690                 :           0 :                   _o1[0] = captures[3];
    8691                 :           0 :                   _o1[1] = captures[4];
    8692                 :           0 :                   _r1 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    8693                 :           0 :                   if (EXPR_P (_r1))
    8694                 :           0 :                     goto next_after_fail1506;
    8695                 :           0 :                   res_op2 = _r1;
    8696                 :             :                 }
    8697                 :           0 :                 tree _r;
    8698                 :           0 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    8699                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 794, __FILE__, __LINE__, true);
    8700                 :           0 :                 return _r;
    8701                 :             :               }
    8702                 :           1 : next_after_fail1506:;
    8703                 :             :             }
    8704                 :             :         }
    8705                 :           1 :         break;
    8706                 :             :       }
    8707                 :      787869 :     default:;
    8708                 :             :     }
    8709                 :      787869 :   switch (TREE_CODE (_p1))
    8710                 :             :     {
    8711                 :           3 :     case VEC_COND_EXPR:
    8712                 :           3 :       {
    8713                 :           3 :         tree _q30 = TREE_OPERAND (_p1, 0);
    8714                 :           3 :         tree _q31 = TREE_OPERAND (_p1, 1);
    8715                 :           3 :         tree _q32 = TREE_OPERAND (_p1, 2);
    8716                 :           3 :         {
    8717                 :           3 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
    8718                 :           3 :           if (TREE_CODE_CLASS (LSHIFT_EXPR) != tcc_comparison
    8719                 :             :  || types_match (type, TREE_TYPE (captures[3]))
    8720                 :             :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]), ERROR_MARK)
    8721                 :             :  || (optimize_vectors_before_lowering_p ()
    8722                 :             :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]),
    8723                 :             :  TREE_TYPE (captures[2]), ERROR_MARK))
    8724                 :             : )
    8725                 :             :             {
    8726                 :           3 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1507;
    8727                 :           3 :               {
    8728                 :           3 :                 if (! tree_invariant_p (captures[0])) goto next_after_fail1507;
    8729                 :           1 :                 tree res_op0;
    8730                 :           1 :                 res_op0 = captures[2];
    8731                 :           1 :                 tree res_op1;
    8732                 :           1 :                 {
    8733                 :           1 :                   tree _o1[2], _r1;
    8734                 :           1 :                   _o1[0] = unshare_expr (captures[0]);
    8735                 :           1 :                   _o1[1] = captures[3];
    8736                 :           1 :                   _r1 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    8737                 :           1 :                   if (EXPR_P (_r1))
    8738                 :           0 :                     goto next_after_fail1507;
    8739                 :           1 :                   res_op1 = _r1;
    8740                 :             :                 }
    8741                 :           1 :                 tree res_op2;
    8742                 :           1 :                 {
    8743                 :           1 :                   tree _o1[2], _r1;
    8744                 :           1 :                   _o1[0] = captures[0];
    8745                 :           1 :                   _o1[1] = captures[4];
    8746                 :           1 :                   _r1 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    8747                 :           1 :                   if (EXPR_P (_r1))
    8748                 :           0 :                     goto next_after_fail1507;
    8749                 :           1 :                   res_op2 = _r1;
    8750                 :             :                 }
    8751                 :           1 :                 tree _r;
    8752                 :           1 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    8753                 :           1 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 795, __FILE__, __LINE__, true);
    8754                 :           1 :                 return _r;
    8755                 :             :               }
    8756                 :           2 : next_after_fail1507:;
    8757                 :             :             }
    8758                 :             :         }
    8759                 :           2 :         break;
    8760                 :             :       }
    8761                 :      787868 :     default:;
    8762                 :             :     }
    8763                 :      787868 :   switch (TREE_CODE (_p0))
    8764                 :             :     {
    8765                 :           0 :     case VEC_PERM_EXPR:
    8766                 :           0 :       {
    8767                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
    8768                 :           0 :         tree _q21 = TREE_OPERAND (_p0, 1);
    8769                 :           0 :         tree _q22 = TREE_OPERAND (_p0, 2);
    8770                 :           0 :         if ((_q21 == _q20 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q20, 0) && types_match (_q21, _q20)))
    8771                 :             :           {
    8772                 :           0 :             switch (TREE_CODE (_p1))
    8773                 :             :               {
    8774                 :           0 :               case VEC_PERM_EXPR:
    8775                 :           0 :                 {
    8776                 :           0 :                   tree _q60 = TREE_OPERAND (_p1, 0);
    8777                 :           0 :                   tree _q61 = TREE_OPERAND (_p1, 1);
    8778                 :           0 :                   tree _q62 = TREE_OPERAND (_p1, 2);
    8779                 :           0 :                   if ((_q61 == _q60 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q60, 0) && types_match (_q61, _q60)))
    8780                 :             :                     {
    8781                 :           0 :                       if ((_q62 == _q22 && ! TREE_SIDE_EFFECTS (_q62)) || (operand_equal_p (_q62, _q22, 0) && types_match (_q62, _q22)))
    8782                 :             :                         {
    8783                 :           0 :                           {
    8784                 :           0 :                             tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q22, _q60 };
    8785                 :           0 :                             if (VECTOR_INTEGER_TYPE_P (type)
    8786                 :             : )
    8787                 :             :                               {
    8788                 :           0 :                                 if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1508;
    8789                 :           0 :                                 {
    8790                 :           0 :                                   tree res_op0;
    8791                 :           0 :                                   {
    8792                 :           0 :                                     tree _o1[2], _r1;
    8793                 :           0 :                                     _o1[0] = captures[0];
    8794                 :           0 :                                     _o1[1] = captures[2];
    8795                 :           0 :                                     _r1 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
    8796                 :           0 :                                     captures[3] = _r1;
    8797                 :             :                                   }
    8798                 :           0 :                                   res_op0 = unshare_expr (captures[3]);
    8799                 :           0 :                                   tree res_op1;
    8800                 :           0 :                                   res_op1 = captures[3];
    8801                 :           0 :                                   tree res_op2;
    8802                 :           0 :                                   res_op2 = captures[1];
    8803                 :           0 :                                   tree _r;
    8804                 :           0 :                                   _r = fold_build3_loc (loc, VEC_PERM_EXPR, type, res_op0, res_op1, res_op2);
    8805                 :           0 :                                   if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 796, __FILE__, __LINE__, true);
    8806                 :           0 :                                   return _r;
    8807                 :             :                                 }
    8808                 :           0 : next_after_fail1508:;
    8809                 :             :                               }
    8810                 :             :                           }
    8811                 :             :                         }
    8812                 :             :                     }
    8813                 :             :                   break;
    8814                 :             :                 }
    8815                 :             :               default:;
    8816                 :             :               }
    8817                 :             :           }
    8818                 :             :         break;
    8819                 :             :       }
    8820                 :             :     default:;
    8821                 :             :     }
    8822                 :             :   return NULL_TREE;
    8823                 :             : }
    8824                 :             : 
    8825                 :             : tree
    8826                 :        1355 : generic_simplify_LROTATE_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
    8827                 :             : {
    8828                 :        1355 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    8829                 :        1355 :   if (integer_all_onesp (_p0))
    8830                 :             :     {
    8831                 :           0 :       {
    8832                 :           0 :         tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    8833                 :           0 :         tree res = generic_simplify_482 (loc, type, _p0, _p1, captures, LROTATE_EXPR);
    8834                 :           0 :         if (res) return res;
    8835                 :             :       }
    8836                 :             :     }
    8837                 :        1355 :   if (integer_zerop (_p1))
    8838                 :             :     {
    8839                 :           0 :       {
    8840                 :           0 :         tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
    8841                 :           0 :         tree res = generic_simplify_350 (loc, type, _p0, _p1, captures, LROTATE_EXPR);
    8842                 :           0 :         if (res) return res;
    8843                 :             :       }
    8844                 :             :     }
    8845                 :        1355 :   if (integer_zerop (_p0))
    8846                 :             :     {
    8847                 :           0 :       {
    8848                 :           0 :         tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    8849                 :           0 :         tree res = generic_simplify_351 (loc, type, _p0, _p1, captures, LROTATE_EXPR);
    8850                 :           0 :         if (res) return res;
    8851                 :             :       }
    8852                 :             :     }
    8853                 :        1355 :   switch (TREE_CODE (_p1))
    8854                 :             :     {
    8855                 :           0 :     case VECTOR_CST:
    8856                 :           0 :       {
    8857                 :           0 :         {
    8858                 :           0 :           tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    8859                 :           0 :           tree res = generic_simplify_352 (loc, type, _p0, _p1, captures, LROTATE_EXPR);
    8860                 :           0 :           if (res) return res;
    8861                 :             :         }
    8862                 :           0 :         break;
    8863                 :             :       }
    8864                 :           0 :     case CONSTRUCTOR:
    8865                 :           0 :       {
    8866                 :           0 :         {
    8867                 :           0 :           tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    8868                 :           0 :           tree res = generic_simplify_353 (loc, type, _p0, _p1, captures, LROTATE_EXPR);
    8869                 :           0 :           if (res) return res;
    8870                 :             :         }
    8871                 :           0 :         break;
    8872                 :             :       }
    8873                 :         865 :     case INTEGER_CST:
    8874                 :         865 :       {
    8875                 :         865 :         {
    8876                 :         865 :           tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    8877                 :         865 :           if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1553;
    8878                 :         865 :           if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1553;
    8879                 :         865 :           {
    8880                 :         865 :             tree res_op0;
    8881                 :         865 :             res_op0 = captures[0];
    8882                 :         865 :             tree res_op1;
    8883                 :         865 :             res_op1 =  const_binop (MINUS_EXPR, TREE_TYPE (captures[1]),
    8884                 :         865 :  build_int_cst (TREE_TYPE (captures[1]),
    8885                 :         865 :  element_precision (type)), captures[1]);
    8886                 :         865 :             tree _r;
    8887                 :         865 :             _r = fold_build2_loc (loc, RROTATE_EXPR, type, res_op0, res_op1);
    8888                 :         865 :             if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 925, __FILE__, __LINE__, true);
    8889                 :         865 :             return _r;
    8890                 :             :           }
    8891                 :           0 : next_after_fail1553:;
    8892                 :             :         }
    8893                 :           0 :         break;
    8894                 :             :       }
    8895                 :         490 :     default:;
    8896                 :             :     }
    8897                 :         490 :   switch (TREE_CODE (_p0))
    8898                 :             :     {
    8899                 :           0 :     case LROTATE_EXPR:
    8900                 :           0 :       {
    8901                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
    8902                 :           0 :         tree _q21 = TREE_OPERAND (_p0, 1);
    8903                 :           0 :         switch (TREE_CODE (_q21))
    8904                 :             :           {
    8905                 :           0 :           case INTEGER_CST:
    8906                 :           0 :             {
    8907                 :           0 :               switch (TREE_CODE (_p1))
    8908                 :             :                 {
    8909                 :           0 :                 case INTEGER_CST:
    8910                 :           0 :                   {
    8911                 :           0 :                     {
    8912                 :           0 :                       tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
    8913                 :           0 :                       tree res = generic_simplify_354 (loc, type, _p0, _p1, captures, LROTATE_EXPR);
    8914                 :           0 :                       if (res) return res;
    8915                 :             :                     }
    8916                 :           0 :                     break;
    8917                 :             :                   }
    8918                 :             :                 default:;
    8919                 :             :                 }
    8920                 :             :               break;
    8921                 :             :             }
    8922                 :             :           default:;
    8923                 :             :           }
    8924                 :             :         break;
    8925                 :             :       }
    8926                 :             :     default:;
    8927                 :             :     }
    8928                 :             :   return NULL_TREE;
    8929                 :             : }
    8930                 :             : 
    8931                 :             : tree
    8932                 :        2202 : generic_simplify_RROTATE_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
    8933                 :             : {
    8934                 :        2202 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    8935                 :        2202 :   if (integer_all_onesp (_p0))
    8936                 :             :     {
    8937                 :           0 :       {
    8938                 :           0 :         tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    8939                 :           0 :         tree res = generic_simplify_482 (loc, type, _p0, _p1, captures, RROTATE_EXPR);
    8940                 :           0 :         if (res) return res;
    8941                 :             :       }
    8942                 :             :     }
    8943                 :        2202 :   if (integer_zerop (_p1))
    8944                 :             :     {
    8945                 :           0 :       {
    8946                 :           0 :         tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
    8947                 :           0 :         tree res = generic_simplify_350 (loc, type, _p0, _p1, captures, RROTATE_EXPR);
    8948                 :           0 :         if (res) return res;
    8949                 :             :       }
    8950                 :             :     }
    8951                 :        2202 :   if (integer_zerop (_p0))
    8952                 :             :     {
    8953                 :           0 :       {
    8954                 :           0 :         tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    8955                 :           0 :         tree res = generic_simplify_351 (loc, type, _p0, _p1, captures, RROTATE_EXPR);
    8956                 :           0 :         if (res) return res;
    8957                 :             :       }
    8958                 :             :     }
    8959                 :        2202 :   switch (TREE_CODE (_p1))
    8960                 :             :     {
    8961                 :           0 :     case VECTOR_CST:
    8962                 :           0 :       {
    8963                 :           0 :         {
    8964                 :           0 :           tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    8965                 :           0 :           tree res = generic_simplify_352 (loc, type, _p0, _p1, captures, RROTATE_EXPR);
    8966                 :           0 :           if (res) return res;
    8967                 :             :         }
    8968                 :           0 :         break;
    8969                 :             :       }
    8970                 :           0 :     case CONSTRUCTOR:
    8971                 :           0 :       {
    8972                 :           0 :         {
    8973                 :           0 :           tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    8974                 :           0 :           tree res = generic_simplify_353 (loc, type, _p0, _p1, captures, RROTATE_EXPR);
    8975                 :           0 :           if (res) return res;
    8976                 :             :         }
    8977                 :           0 :         break;
    8978                 :             :       }
    8979                 :        2202 :     default:;
    8980                 :             :     }
    8981                 :        2202 :   switch (TREE_CODE (_p0))
    8982                 :             :     {
    8983                 :           0 :     case RROTATE_EXPR:
    8984                 :           0 :       {
    8985                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
    8986                 :           0 :         tree _q21 = TREE_OPERAND (_p0, 1);
    8987                 :           0 :         switch (TREE_CODE (_q21))
    8988                 :             :           {
    8989                 :           0 :           case INTEGER_CST:
    8990                 :           0 :             {
    8991                 :           0 :               switch (TREE_CODE (_p1))
    8992                 :             :                 {
    8993                 :           0 :                 case INTEGER_CST:
    8994                 :           0 :                   {
    8995                 :           0 :                     {
    8996                 :           0 :                       tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
    8997                 :           0 :                       tree res = generic_simplify_354 (loc, type, _p0, _p1, captures, RROTATE_EXPR);
    8998                 :           0 :                       if (res) return res;
    8999                 :             :                     }
    9000                 :           0 :                     break;
    9001                 :             :                   }
    9002                 :             :                 default:;
    9003                 :             :                 }
    9004                 :             :               break;
    9005                 :             :             }
    9006                 :             :           default:;
    9007                 :             :           }
    9008                 :             :         break;
    9009                 :             :       }
    9010                 :             :     default:;
    9011                 :             :     }
    9012                 :             :   return NULL_TREE;
    9013                 :             : }
    9014                 :             : 
    9015                 :             : tree
    9016                 :      691026 : generic_simplify_COMPLEX_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
    9017                 :             : {
    9018                 :      691026 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    9019                 :      691026 :   switch (TREE_CODE (_p0))
    9020                 :             :     {
    9021                 :          17 :     case REALPART_EXPR:
    9022                 :          17 :       {
    9023                 :          17 :         tree _q20 = TREE_OPERAND (_p0, 0);
    9024                 :          17 :         switch (TREE_CODE (_p1))
    9025                 :             :           {
    9026                 :           7 :           case IMAGPART_EXPR:
    9027                 :           7 :             {
    9028                 :           7 :               tree _q40 = TREE_OPERAND (_p1, 0);
    9029                 :           7 :               if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
    9030                 :             :                 {
    9031                 :           7 :                   {
    9032                 :           7 :                     tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
    9033                 :           7 :                     if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1554;
    9034                 :           7 :                     {
    9035                 :           7 :                       tree _r;
    9036                 :           7 :                       _r = captures[0];
    9037                 :           7 :                       if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 926, __FILE__, __LINE__, true);
    9038                 :           7 :                       return _r;
    9039                 :             :                     }
    9040                 :           0 : next_after_fail1554:;
    9041                 :             :                   }
    9042                 :             :                 }
    9043                 :             :               break;
    9044                 :             :             }
    9045                 :             :           default:;
    9046                 :             :           }
    9047                 :             :         break;
    9048                 :             :       }
    9049                 :             :     default:;
    9050                 :             :     }
    9051                 :             :   return NULL_TREE;
    9052                 :             : }
    9053                 :             : 
    9054                 :             : tree
    9055                 :      784109 : generic_simplify_UNORDERED_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
    9056                 :             : {
    9057                 :      784109 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    9058                 :      784109 :   switch (TREE_CODE (_p0))
    9059                 :             :     {
    9060                 :           0 :     case VEC_COND_EXPR:
    9061                 :           0 :       {
    9062                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
    9063                 :           0 :         tree _q21 = TREE_OPERAND (_p0, 1);
    9064                 :           0 :         tree _q22 = TREE_OPERAND (_p0, 2);
    9065                 :           0 :         switch (TREE_CODE (_p1))
    9066                 :             :           {
    9067                 :           0 :           case VEC_COND_EXPR:
    9068                 :           0 :             {
    9069                 :           0 :               tree _q60 = TREE_OPERAND (_p1, 0);
    9070                 :           0 :               tree _q61 = TREE_OPERAND (_p1, 1);
    9071                 :           0 :               tree _q62 = TREE_OPERAND (_p1, 2);
    9072                 :           0 :               if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
    9073                 :             :                 {
    9074                 :           0 :                   {
    9075                 :           0 :                     tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
    9076                 :           0 :                     if (TREE_CODE_CLASS (UNORDERED_EXPR) != tcc_comparison
    9077                 :           0 :  || types_match (type, TREE_TYPE (captures[2]))
    9078                 :           0 :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]), ERROR_MARK)
    9079                 :             :  || (optimize_vectors_before_lowering_p ()
    9080                 :           0 :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]),
    9081                 :           0 :  TREE_TYPE (captures[1]), ERROR_MARK))
    9082                 :             : )
    9083                 :             :                       {
    9084                 :           0 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1555;
    9085                 :           0 :                         {
    9086                 :           0 :                           tree res_op0;
    9087                 :           0 :                           res_op0 = captures[1];
    9088                 :           0 :                           tree res_op1;
    9089                 :           0 :                           {
    9090                 :           0 :                             tree _o1[2], _r1;
    9091                 :           0 :                             _o1[0] = captures[2];
    9092                 :           0 :                             _o1[1] = captures[5];
    9093                 :           0 :                             _r1 = fold_build2_loc (loc, UNORDERED_EXPR, type, _o1[0], _o1[1]);
    9094                 :           0 :                             if (EXPR_P (_r1))
    9095                 :           0 :                               goto next_after_fail1555;
    9096                 :           0 :                             res_op1 = _r1;
    9097                 :             :                           }
    9098                 :           0 :                           tree res_op2;
    9099                 :           0 :                           {
    9100                 :           0 :                             tree _o1[2], _r1;
    9101                 :           0 :                             _o1[0] = captures[3];
    9102                 :           0 :                             _o1[1] = captures[6];
    9103                 :           0 :                             _r1 = fold_build2_loc (loc, UNORDERED_EXPR, type, _o1[0], _o1[1]);
    9104                 :           0 :                             if (EXPR_P (_r1))
    9105                 :           0 :                               goto next_after_fail1555;
    9106                 :           0 :                             res_op2 = _r1;
    9107                 :             :                           }
    9108                 :           0 :                           tree _r;
    9109                 :           0 :                           _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    9110                 :           0 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 793, __FILE__, __LINE__, true);
    9111                 :           0 :                           return _r;
    9112                 :             :                         }
    9113                 :           0 : next_after_fail1555:;
    9114                 :             :                       }
    9115                 :             :                   }
    9116                 :             :                 }
    9117                 :             :               break;
    9118                 :             :             }
    9119                 :           0 :           default:;
    9120                 :             :           }
    9121                 :           0 :         {
    9122                 :           0 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
    9123                 :           0 :           if (TREE_CODE_CLASS (UNORDERED_EXPR) != tcc_comparison
    9124                 :           0 :  || types_match (type, TREE_TYPE (captures[2]))
    9125                 :           0 :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]), ERROR_MARK)
    9126                 :             :  || (optimize_vectors_before_lowering_p ()
    9127                 :           0 :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]),
    9128                 :           0 :  TREE_TYPE (captures[1]), ERROR_MARK))
    9129                 :             : )
    9130                 :             :             {
    9131                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1556;
    9132                 :           0 :               {
    9133                 :           0 :                 if (! tree_invariant_p (captures[4])) goto next_after_fail1556;
    9134                 :           0 :                 tree res_op0;
    9135                 :           0 :                 res_op0 = captures[1];
    9136                 :           0 :                 tree res_op1;
    9137                 :           0 :                 {
    9138                 :           0 :                   tree _o1[2], _r1;
    9139                 :           0 :                   _o1[0] = captures[2];
    9140                 :           0 :                   _o1[1] = unshare_expr (captures[4]);
    9141                 :           0 :                   _r1 = fold_build2_loc (loc, UNORDERED_EXPR, type, _o1[0], _o1[1]);
    9142                 :           0 :                   if (EXPR_P (_r1))
    9143                 :           0 :                     goto next_after_fail1556;
    9144                 :           0 :                   res_op1 = _r1;
    9145                 :             :                 }
    9146                 :           0 :                 tree res_op2;
    9147                 :           0 :                 {
    9148                 :           0 :                   tree _o1[2], _r1;
    9149                 :           0 :                   _o1[0] = captures[3];
    9150                 :           0 :                   _o1[1] = captures[4];
    9151                 :           0 :                   _r1 = fold_build2_loc (loc, UNORDERED_EXPR, type, _o1[0], _o1[1]);
    9152                 :           0 :                   if (EXPR_P (_r1))
    9153                 :           0 :                     goto next_after_fail1556;
    9154                 :           0 :                   res_op2 = _r1;
    9155                 :             :                 }
    9156                 :           0 :                 tree _r;
    9157                 :           0 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    9158                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 794, __FILE__, __LINE__, true);
    9159                 :           0 :                 return _r;
    9160                 :             :               }
    9161                 :           0 : next_after_fail1556:;
    9162                 :             :             }
    9163                 :             :         }
    9164                 :           0 :         break;
    9165                 :             :       }
    9166                 :      784109 :     default:;
    9167                 :             :     }
    9168                 :      784109 :   switch (TREE_CODE (_p1))
    9169                 :             :     {
    9170                 :           0 :     case VEC_COND_EXPR:
    9171                 :           0 :       {
    9172                 :           0 :         tree _q30 = TREE_OPERAND (_p1, 0);
    9173                 :           0 :         tree _q31 = TREE_OPERAND (_p1, 1);
    9174                 :           0 :         tree _q32 = TREE_OPERAND (_p1, 2);
    9175                 :           0 :         {
    9176                 :           0 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
    9177                 :           0 :           if (TREE_CODE_CLASS (UNORDERED_EXPR) != tcc_comparison
    9178                 :           0 :  || types_match (type, TREE_TYPE (captures[3]))
    9179                 :           0 :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]), ERROR_MARK)
    9180                 :             :  || (optimize_vectors_before_lowering_p ()
    9181                 :           0 :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]),
    9182                 :           0 :  TREE_TYPE (captures[2]), ERROR_MARK))
    9183                 :             : )
    9184                 :             :             {
    9185                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1557;
    9186                 :           0 :               {
    9187                 :           0 :                 if (! tree_invariant_p (captures[0])) goto next_after_fail1557;
    9188                 :           0 :                 tree res_op0;
    9189                 :           0 :                 res_op0 = captures[2];
    9190                 :           0 :                 tree res_op1;
    9191                 :           0 :                 {
    9192                 :           0 :                   tree _o1[2], _r1;
    9193                 :           0 :                   _o1[0] = unshare_expr (captures[0]);
    9194                 :           0 :                   _o1[1] = captures[3];
    9195                 :           0 :                   _r1 = fold_build2_loc (loc, UNORDERED_EXPR, type, _o1[0], _o1[1]);
    9196                 :           0 :                   if (EXPR_P (_r1))
    9197                 :           0 :                     goto next_after_fail1557;
    9198                 :           0 :                   res_op1 = _r1;
    9199                 :             :                 }
    9200                 :           0 :                 tree res_op2;
    9201                 :           0 :                 {
    9202                 :           0 :                   tree _o1[2], _r1;
    9203                 :           0 :                   _o1[0] = captures[0];
    9204                 :           0 :                   _o1[1] = captures[4];
    9205                 :           0 :                   _r1 = fold_build2_loc (loc, UNORDERED_EXPR, type, _o1[0], _o1[1]);
    9206                 :           0 :                   if (EXPR_P (_r1))
    9207                 :           0 :                     goto next_after_fail1557;
    9208                 :           0 :                   res_op2 = _r1;
    9209                 :             :                 }
    9210                 :           0 :                 tree _r;
    9211                 :           0 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    9212                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 795, __FILE__, __LINE__, true);
    9213                 :           0 :                 return _r;
    9214                 :             :               }
    9215                 :           0 : next_after_fail1557:;
    9216                 :             :             }
    9217                 :             :         }
    9218                 :           0 :         break;
    9219                 :             :       }
    9220                 :      784109 :     default:;
    9221                 :             :     }
    9222                 :      784109 :   switch (TREE_CODE (_p0))
    9223                 :             :     {
    9224                 :           0 :     case FLOAT_EXPR:
    9225                 :           0 :       {
    9226                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
    9227                 :           0 :         switch (TREE_CODE (_p1))
    9228                 :             :           {
    9229                 :           0 :           case FLOAT_EXPR:
    9230                 :           0 :             {
    9231                 :           0 :               tree _q40 = TREE_OPERAND (_p1, 0);
    9232                 :           0 :               {
    9233                 :           0 :                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
    9234                 :           0 :                 tree res = generic_simplify_236 (loc, type, _p0, _p1, captures, UNORDERED_EXPR, UNORDERED_EXPR);
    9235                 :           0 :                 if (res) return res;
    9236                 :             :               }
    9237                 :           0 :               break;
    9238                 :             :             }
    9239                 :             :           default:;
    9240                 :             :           }
    9241                 :             :         break;
    9242                 :             :       }
    9243                 :          18 :     case NEGATE_EXPR:
    9244                 :          18 :       {
    9245                 :          18 :         tree _q20 = TREE_OPERAND (_p0, 0);
    9246                 :          18 :         switch (TREE_CODE (_p1))
    9247                 :             :           {
    9248                 :          18 :           case NEGATE_EXPR:
    9249                 :          18 :             {
    9250                 :          18 :               tree _q40 = TREE_OPERAND (_p1, 0);
    9251                 :          18 :               {
    9252                 :          18 :                 tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
    9253                 :          18 :                 tree res = generic_simplify_239 (loc, type, _p0, _p1, captures, UNORDERED_EXPR, UNORDERED_EXPR);
    9254                 :          18 :                 if (res) return res;
    9255                 :             :               }
    9256                 :           0 :               break;
    9257                 :             :             }
    9258                 :           0 :           default:;
    9259                 :             :           }
    9260                 :           0 :       if (CONSTANT_CLASS_P (_p1))
    9261                 :             :         {
    9262                 :           0 :           {
    9263                 :           0 :             tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
    9264                 :           0 :             tree res = generic_simplify_240 (loc, type, _p0, _p1, captures, UNORDERED_EXPR, UNORDERED_EXPR);
    9265                 :           0 :             if (res) return res;
    9266                 :             :           }
    9267                 :             :         }
    9268                 :             :         break;
    9269                 :             :       }
    9270                 :      784091 :     default:;
    9271                 :             :     }
    9272                 :      784091 :   switch (TREE_CODE (_p1))
    9273                 :             :     {
    9274                 :         519 :     case REAL_CST:
    9275                 :         519 :       {
    9276                 :         519 :         {
    9277                 :         519 :           tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    9278                 :         519 :           tree res = generic_simplify_503 (loc, type, _p0, _p1, captures, UNORDERED_EXPR);
    9279                 :         519 :           if (res) return res;
    9280                 :             :         }
    9281                 :         519 :         break;
    9282                 :             :       }
    9283                 :      784091 :     default:;
    9284                 :             :     }
    9285                 :      784091 :   {
    9286                 :      784091 :     tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    9287                 :      784091 :     if (tree_expr_nan_p (captures[0]) || tree_expr_nan_p (captures[1])
    9288                 :             : )
    9289                 :             :       {
    9290                 :           0 :         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1558;
    9291                 :           0 :         {
    9292                 :           0 :           tree _r;
    9293                 :           0 :           _r =  constant_boolean_node (true, type);
    9294                 :           0 :           if (TREE_SIDE_EFFECTS (captures[0]))
    9295                 :           0 :             _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    9296                 :           0 :           if (TREE_SIDE_EFFECTS (captures[1]))
    9297                 :           0 :             _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    9298                 :           0 :           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 927, __FILE__, __LINE__, true);
    9299                 :           0 :           return _r;
    9300                 :             :         }
    9301                 :           0 : next_after_fail1558:;
    9302                 :             :       }
    9303                 :             :     else
    9304                 :             :       {
    9305                 :      784091 :         if (!tree_expr_maybe_nan_p (captures[0]) && !tree_expr_maybe_nan_p (captures[1])
    9306                 :             : )
    9307                 :             :           {
    9308                 :          35 :             if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1559;
    9309                 :          35 :             {
    9310                 :          35 :               tree _r;
    9311                 :          35 :               _r =  constant_boolean_node (false, type);
    9312                 :          35 :               if (TREE_SIDE_EFFECTS (captures[0]))
    9313                 :           0 :                 _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
    9314                 :          35 :               if (TREE_SIDE_EFFECTS (captures[1]))
    9315                 :           0 :                 _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
    9316                 :          35 :               if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 928, __FILE__, __LINE__, true);
    9317                 :          35 :               return _r;
    9318                 :             :             }
    9319                 :           0 : next_after_fail1559:;
    9320                 :             :           }
    9321                 :             :       }
    9322                 :             :   }
    9323                 :      784056 :   return NULL_TREE;
    9324                 :             : }
    9325                 :             : 
    9326                 :             : tree
    9327                 :      945059 : generic_simplify_UNLE_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
    9328                 :             : {
    9329                 :      945059 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    9330                 :      945059 :   switch (TREE_CODE (_p0))
    9331                 :             :     {
    9332                 :           0 :     case VEC_COND_EXPR:
    9333                 :           0 :       {
    9334                 :           0 :         tree _q20 = TREE_OPERAND (_p0, 0);
    9335                 :           0 :         tree _q21 = TREE_OPERAND (_p0, 1);
    9336                 :           0 :         tree _q22 = TREE_OPERAND (_p0, 2);
    9337                 :           0 :         switch (TREE_CODE (_p1))
    9338                 :             :           {
    9339                 :           0 :           case VEC_COND_EXPR:
    9340                 :           0 :             {
    9341                 :           0 :               tree _q60 = TREE_OPERAND (_p1, 0);
    9342                 :           0 :               tree _q61 = TREE_OPERAND (_p1, 1);
    9343                 :           0 :               tree _q62 = TREE_OPERAND (_p1, 2);
    9344                 :           0 :               if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
    9345                 :             :                 {
    9346                 :           0 :                   {
    9347                 :           0 :                     tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
    9348                 :           0 :                     if (TREE_CODE_CLASS (UNLE_EXPR) != tcc_comparison
    9349                 :           0 :  || types_match (type, TREE_TYPE (captures[2]))
    9350                 :           0 :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]), ERROR_MARK)
    9351                 :             :  || (optimize_vectors_before_lowering_p ()
    9352                 :           0 :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]),
    9353                 :           0 :  TREE_TYPE (captures[1]), ERROR_MARK))
    9354                 :             : )
    9355                 :             :                       {
    9356                 :           0 :                         if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1568;
    9357                 :           0 :                         {
    9358                 :           0 :                           tree res_op0;
    9359                 :           0 :                           res_op0 = captures[1];
    9360                 :           0 :                           tree res_op1;
    9361                 :           0 :                           {
    9362                 :           0 :                             tree _o1[2], _r1;
    9363                 :           0 :                             _o1[0] = captures[2];
    9364                 :           0 :                             _o1[1] = captures[5];
    9365                 :           0 :                             _r1 = fold_build2_loc (loc, UNLE_EXPR, type, _o1[0], _o1[1]);
    9366                 :           0 :                             if (EXPR_P (_r1))
    9367                 :           0 :                               goto next_after_fail1568;
    9368                 :           0 :                             res_op1 = _r1;
    9369                 :             :                           }
    9370                 :           0 :                           tree res_op2;
    9371                 :           0 :                           {
    9372                 :           0 :                             tree _o1[2], _r1;
    9373                 :           0 :                             _o1[0] = captures[3];
    9374                 :           0 :                             _o1[1] = captures[6];
    9375                 :           0 :                             _r1 = fold_build2_loc (loc, UNLE_EXPR, type, _o1[0], _o1[1]);
    9376                 :           0 :                             if (EXPR_P (_r1))
    9377                 :           0 :                               goto next_after_fail1568;
    9378                 :           0 :                             res_op2 = _r1;
    9379                 :             :                           }
    9380                 :           0 :                           tree _r;
    9381                 :           0 :                           _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    9382                 :           0 :                           if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 793, __FILE__, __LINE__, true);
    9383                 :           0 :                           return _r;
    9384                 :             :                         }
    9385                 :           0 : next_after_fail1568:;
    9386                 :             :                       }
    9387                 :             :                   }
    9388                 :             :                 }
    9389                 :             :               break;
    9390                 :             :             }
    9391                 :           0 :           default:;
    9392                 :             :           }
    9393                 :           0 :         {
    9394                 :           0 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
    9395                 :           0 :           if (TREE_CODE_CLASS (UNLE_EXPR) != tcc_comparison
    9396                 :           0 :  || types_match (type, TREE_TYPE (captures[2]))
    9397                 :           0 :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]), ERROR_MARK)
    9398                 :             :  || (optimize_vectors_before_lowering_p ()
    9399                 :           0 :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]),
    9400                 :           0 :  TREE_TYPE (captures[1]), ERROR_MARK))
    9401                 :             : )
    9402                 :             :             {
    9403                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1569;
    9404                 :           0 :               {
    9405                 :           0 :                 if (! tree_invariant_p (captures[4])) goto next_after_fail1569;
    9406                 :           0 :                 tree res_op0;
    9407                 :           0 :                 res_op0 = captures[1];
    9408                 :           0 :                 tree res_op1;
    9409                 :           0 :                 {
    9410                 :           0 :                   tree _o1[2], _r1;
    9411                 :           0 :                   _o1[0] = captures[2];
    9412                 :           0 :                   _o1[1] = unshare_expr (captures[4]);
    9413                 :           0 :                   _r1 = fold_build2_loc (loc, UNLE_EXPR, type, _o1[0], _o1[1]);
    9414                 :           0 :                   if (EXPR_P (_r1))
    9415                 :           0 :                     goto next_after_fail1569;
    9416                 :           0 :                   res_op1 = _r1;
    9417                 :             :                 }
    9418                 :           0 :                 tree res_op2;
    9419                 :           0 :                 {
    9420                 :           0 :                   tree _o1[2], _r1;
    9421                 :           0 :                   _o1[0] = captures[3];
    9422                 :           0 :                   _o1[1] = captures[4];
    9423                 :           0 :                   _r1 = fold_build2_loc (loc, UNLE_EXPR, type, _o1[0], _o1[1]);
    9424                 :           0 :                   if (EXPR_P (_r1))
    9425                 :           0 :                     goto next_after_fail1569;
    9426                 :           0 :                   res_op2 = _r1;
    9427                 :             :                 }
    9428                 :           0 :                 tree _r;
    9429                 :           0 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    9430                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 794, __FILE__, __LINE__, true);
    9431                 :           0 :                 return _r;
    9432                 :             :               }
    9433                 :           0 : next_after_fail1569:;
    9434                 :             :             }
    9435                 :             :         }
    9436                 :           0 :         break;
    9437                 :             :       }
    9438                 :      945059 :     default:;
    9439                 :             :     }
    9440                 :      945059 :   switch (TREE_CODE (_p1))
    9441                 :             :     {
    9442                 :           0 :     case VEC_COND_EXPR:
    9443                 :           0 :       {
    9444                 :           0 :         tree _q30 = TREE_OPERAND (_p1, 0);
    9445                 :           0 :         tree _q31 = TREE_OPERAND (_p1, 1);
    9446                 :           0 :         tree _q32 = TREE_OPERAND (_p1, 2);
    9447                 :           0 :         {
    9448                 :           0 :           tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
    9449                 :           0 :           if (TREE_CODE_CLASS (UNLE_EXPR) != tcc_comparison
    9450                 :           0 :  || types_match (type, TREE_TYPE (captures[3]))
    9451                 :           0 :  || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]), ERROR_MARK)
    9452                 :             :  || (optimize_vectors_before_lowering_p ()
    9453                 :           0 :  && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]),
    9454                 :           0 :  TREE_TYPE (captures[2]), ERROR_MARK))
    9455                 :             : )
    9456                 :             :             {
    9457                 :           0 :               if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1570;
    9458                 :           0 :               {
    9459                 :           0 :                 if (! tree_invariant_p (captures[0])) goto next_after_fail1570;
    9460                 :           0 :                 tree res_op0;
    9461                 :           0 :                 res_op0 = captures[2];
    9462                 :           0 :                 tree res_op1;
    9463                 :           0 :                 {
    9464                 :           0 :                   tree _o1[2], _r1;
    9465                 :           0 :                   _o1[0] = unshare_expr (captures[0]);
    9466                 :           0 :                   _o1[1] = captures[3];
    9467                 :           0 :                   _r1 = fold_build2_loc (loc, UNLE_EXPR, type, _o1[0], _o1[1]);
    9468                 :           0 :                   if (EXPR_P (_r1))
    9469                 :           0 :                     goto next_after_fail1570;
    9470                 :           0 :                   res_op1 = _r1;
    9471                 :             :                 }
    9472                 :           0 :                 tree res_op2;
    9473                 :           0 :                 {
    9474                 :           0 :                   tree _o1[2], _r1;
    9475                 :           0 :                   _o1[0] = captures[0];
    9476                 :           0 :                   _o1[1] = captures[4];
    9477                 :           0 :                   _r1 = fold_build2_loc (loc, UNLE_EXPR, type, _o1[0], _o1[1]);
    9478                 :           0 :                   if (EXPR_P (_r1))
    9479                 :           0 :                     goto next_after_fail1570;
    9480                 :           0 :                   res_op2 = _r1;
    9481                 :             :                 }
    9482                 :           0 :                 tree _r;
    9483                 :           0 :                 _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
    9484                 :           0 :                 if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 795, __FILE__, __LINE__, true);
    9485                 :           0 :                 return _r;
    9486                 :             :               }
    9487                 :           0 : next_after_fail1570:;
    9488                 :             :             }
    9489                 :             :         }
    9490                 :           0 :         break;
    9491                 :             :       }
    9492                 :      945059 :     default:;
    9493                 :             :     }
    9494                 :      945059 :   if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
    9495                 :             :     {
    9496                 :          30 :       {
    9497                 :          30 :         tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
    9498                 :          30 :         tree res = generic_simplify_505 (loc, type, _p0, _p1, captures, UNLE_EXPR);
    9499                 :          30 :         if (res) return res;
    9500                 :             :       }
    9501                 :             :     }
    9502                 :      945029 :   switch (TREE_CODE (_p0))
    9503                 :             :     {
    9504                 :         102 :     case FLOAT_EXPR:
    9505                 :         102 :       {
    9506                 :         102 :         tree _q20 = TREE_OPERAND (_p0, 0);
    9507                 :         102 :         switch (TREE_CODE (_p1))
    9508                 :             :           {
    9509                 :           0 :           case FLOAT_EXPR:
    9510                 :           0 :             {
    9511                 :           0 :               tree _q40 = TREE_OPERAND (_p1, 0);
    9512                 :           0 :               {
    9513                 :           0 :                 tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
    9514                 :           0 :                 tree res = generic_simplify_236 (loc, type, _p0, _p1, captures, UNLE_EXPR, LE_EXPR);
    9515                 :           0 :                 if (res) return res;
    9516                 :             :               }
    9517                 :           0 :               break;
    9518                 :             :             }
    9519                 :             :           default:;
    9520                 :             :           }
    9521                 :             :         break;
    9522                 :             :       }
    9523                 :         140 :     case NEGATE_EXPR:
    9524                 :         140 :       {
    9525                 :         140 :         tree _q20 = TREE_OPERAND (_p0, 0);
    9526                 :         140 :         switch (TREE_CODE (_p1))
    9527                 :             :           {
    9528                 :           0 :           case NEGATE_EXPR:
    9529                 :           0 :             {
    9530                 :           0 :               tree _q40 = TREE_OPERAND (_p1, 0);
    9531                 :           0 :               {
    9532                 :           0 :                 tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
    9533                 :           0 :                 tree res = generic_simplify_239 (loc, type, _p0, _p1, captures, UNLE_EXPR, UNGE_EXPR);
    9534                 :           0 :                 if (res) return res;
    9535                 :             :               }
    9536                 :           0 :               break;
    9537                 :             :             }
    9538                 :         140 :           default:;
    9539                 :             :           }
    9540                 :         140 :       if (CONSTANT_CLASS_P (_p1))
    9541                 :             :         {
    9542                 :         140 :           {
    9543                 :         140 :             tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
    9544                 :         140 :             tree res = generic_simplify_240 (loc, type, _p0, _p1, captures, UNLE_EXPR, UNGE_EXPR);
    9545                 :         140 :             if (res) return res;
    9546                 :             :           }
    9547                 :             :         }
    9548                 :             :         break;
    9549                 :             :       }
    9550                 :      944889 :     default:;
    9551                 :             :     }
    9552                 :      944889 :   switch (TREE_CODE (_p1))
    9553                 :             :     {
    9554                 :      568196 :     case REAL_CST:
    9555                 :      568196 :       {
    9556                 :      568196 :         {
    9557                 :      568196 :           tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
    9558                 :      568196 :           tree res = generic_simplify_503 (loc, type, _p0, _p1, captures, UNLE_EXPR);
    9559                 :      568196 :           if (res) return res;
    9560                 :             :         }
    9561                 :      568194 :         break;
    9562                 :             :       }
    9563                 :             :     default:;
    9564                 :             :     }
    9565                 :             :   return NULL_TREE;
    9566                 :             : }
    9567                 :             : 
    9568                 :             : tree
    9569                 :     3182688 : generic_simplify_TRUTH_ORIF_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
    9570                 :             : {
    9571                 :     3182688 :   const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
    9572                 :     3182688 :   switch (TREE_CODE (_p0))
    9573                 :             :     {
    9574                 :      598631 :     case LE_EXPR:
    9575                 :      598631 :       {
    9576                 :      598631 :         tree _q20 = TREE_OPERAND (_p0, 0);
    9577                 :      598631 :         tree _q21 = TREE_OPERAND (_p0, 1);
    9578                 :      598631 :         switch (TREE_CODE (_q20))
    9579                 :             :           {
    9580                 :          91 :           case POINTER_PLUS_EXPR:
    9581                 :          91 :             {
    9582                 :          91 :               tree _q30 = TREE_OPERAND (_q20, 0);
    9583                 :          91 :               tree _q31 = TREE_OPERAND (_q20, 1);
    9584                 :          91 :               switch (TREE_CODE (_q31))
    9585                 :             :                 {
    9586                 :           3 :                 case INTEGER_CST:
    9587                 :           3 :                   {
    9588                 :           3 :                     switch (TREE_CODE (_p1))
    9589                 :             :                       {
    9590                 :           2 :                       case LE_EXPR:
    9591                 :           2 :                         {
    9592                 :           2 :                           tree _q70 = TREE_OPERAND (_p1, 0);
    9593                 :           2 :                           tree _q71 = TREE_OPERAND (_p1, 1);
    9594                 :           2 :                           switch (TREE_CODE (_q70))
    9595                 :             :                             {
    9596                 :           2 :                             case POINTER_PLUS_EXPR:
    9597                 :           2 :                               {
    9598                 :           2 :                                 tree _q80 = TREE_OPERAND (_q70, 0);
    9599                 :           2 :                                 tree _q81 = TREE_OPERAND (_q70, 1);
    9600                 :           2 :                                 if ((_q80 == _q21 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q21, 0) && types_match (_q80, _q21)))
    9601                 :             :                                   {
    9602                 :           2 :                                     if ((_q81 == _q31 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q31, 0) && types_match (_q81, _q31)))
    9603                 :             :                                       {
    9604                 :           2 :                                         if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
    9605                 :             :                                           {
    9606                 :           2 :                                             {
    9607                 :           2 :                                               tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q70 };
    9608                 :           2 :                                               const enum tree_code cmp = LE_EXPR;
    9609                 :           2 :                                               if (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[2]))
    9610                 :           1 :  && TYPE_OVERFLOW_WRAPS (sizetype)
    9611                 :           3 :  && TYPE_PRECISION (TREE_TYPE (captures[2])) == TYPE_PRECISION (sizetype)
    9612                 :             : )
    9613                 :             :                                                 {
    9614                 :           1 :                                                   {
    9615                 :           1 :  offset_int off = wi::to_offset (captures[3]) - (cmp == LE_EXPR ? 1 : 0);
    9616                 :           1 :  offset_int rhs = off * 2;
    9617                 :           1 :                                                       if (wi::min_precision (rhs, UNSIGNED) <= TYPE_PRECISION (sizetype)
    9618                 :             : )
    9619                 :             :                                                         {
    9620                 :           1 :                                                           {
    9621                 :           1 :  bool swap_p = tree_swap_operands_p (captures[2], captures[4]);
    9622                 :           1 :  tree rhs_tree = wide_int_to_tree (sizetype, rhs);
    9623                 :           1 :                                                               if (cmp == LT_EXPR
    9624                 :             : )
    9625                 :             :                                                                 {
    9626                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1584;
    9627                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1584;
    9628                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1584;
    9629                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1584;
    9630                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1584;
    9631                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail1584;
    9632                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[6])) goto next_after_fail1584;
    9633                 :             :                                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1584;
    9634                 :             :                                                                   {
    9635                 :             :                                                                     tree res_op0;
    9636                 :             :                                                                     {
    9637                 :             :                                                                       tree _o1[1], _r1;
    9638                 :             :                                                                       {
    9639                 :             :                                                                         tree _o2[2], _r2;
    9640                 :             :                                                                         _o2[0] =  swap_p ? captures[6] : captures[1];
    9641                 :             :                                                                         _o2[1] =  swap_p ? captures[2] : captures[4];
    9642                 :             :                                                                         _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
    9643                 :             :                                                                         _o1[0] = _r2;
    9644                 :             :                                                                       }
    9645                 :             :                                                                       if (TREE_TYPE (_o1[0]) != sizetype)
    9646                 :             :                                                                         {
    9647                 :             :                                                                           _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
    9648                 :             :                                                                         }
    9649                 :             :                                                                       else
    9650                 :             :                                                                         _r1 = _o1[0];
    9651                 :             :                                                                       res_op0 = _r1;
    9652                 :             :                                                                     }
    9653                 :             :                                                                     tree res_op1;
    9654                 :             :                                                                     res_op1 =  rhs_tree;
    9655                 :             :                                                                     tree _r;
    9656                 :             :                                                                     _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
    9657                 :             :                                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 835, __FILE__, __LINE__, true);
    9658                 :           1 :                                                                     return _r;
    9659                 :             :                                                                   }
    9660                 :             : next_after_fail1584:;
    9661                 :             :                                                                 }
    9662                 :             :                                                               else
    9663                 :             :                                                                 {
    9664                 :           1 :                                                                   if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1585;
    9665                 :           1 :                                                                   if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1585;
    9666                 :           1 :                                                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1585;
    9667                 :           1 :                                                                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1585;
    9668                 :           1 :                                                                   if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1585;
    9669                 :           1 :                                                                   if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail1585;
    9670                 :           1 :                                                                   if (TREE_SIDE_EFFECTS (captures[6])) goto next_after_fail1585;
    9671                 :           1 :                                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1585;
    9672                 :           1 :                                                                   {
    9673                 :           1 :                                                                     tree res_op0;
    9674                 :           1 :                                                                     {
    9675                 :           1 :                                                                       tree _o1[1], _r1;
    9676                 :           1 :                                                                       {
    9677                 :           1 :                                                                         tree _o2[2], _r2;
    9678                 :           1 :                                                                         {
    9679                 :           1 :                                                                           tree _o3[2], _r3;
    9680                 :           1 :                                                                           _o3[0] =  swap_p ? captures[4] : captures[2];
    9681                 :           1 :                                                                           _o3[1] =  wide_int_to_tree (sizetype, off);
    9682                 :           1 :                                                                           _r3 = fold_build2_loc (loc, POINTER_PLUS_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
    9683                 :           1 :                                                                           _o2[0] = _r3;
    9684                 :             :                                                                         }
    9685                 :           1 :                                                                         _o2[1] =  swap_p ? captures[2] : captures[4];
    9686                 :           1 :                                                                         _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
    9687                 :           1 :                                                                         _o1[0] = _r2;
    9688                 :             :                                                                       }
    9689                 :           1 :                                                                       if (TREE_TYPE (_o1[0]) != sizetype)
    9690                 :             :                                                                         {
    9691                 :           1 :                                                                           _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
    9692                 :             :                                                                         }
    9693                 :             :                                                                       else
    9694                 :             :                                                                         _r1 = _o1[0];
    9695                 :           1 :                                                                       res_op0 = _r1;
    9696                 :             :                                                                     }
    9697                 :           1 :                                                                     tree res_op1;
    9698                 :           1 :                                                                     res_op1 =  rhs_tree;
    9699                 :           1 :                                                                     tree _r;
    9700                 :           1 :                                                                     _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
    9701                 :           1 :                                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 836, __FILE__, __LINE__, true);
    9702                 :           1 :                                                                     return _r;
    9703                 :             :                                                                   }
    9704                 :           0 : next_after_fail1585:;
    9705                 :             :                                                                 }
    9706                 :             :                                                           }
    9707                 :             :                                                         }
    9708                 :             :                                                   }
    9709                 :             :                                                 }
    9710                 :             :                                             }
    9711                 :             :                                           }
    9712                 :             :                                       }
    9713                 :             :                                   }
    9714                 :             :                                 break;
    9715                 :             :                               }
    9716                 :             :                             default:;
    9717                 :             :                             }
    9718                 :             :                           break;
    9719                 :             :                         }
    9720                 :           0 :                       case GE_EXPR:
    9721                 :           0 :                         {
    9722                 :           0 :                           tree _q70 = TREE_OPERAND (_p1, 0);
    9723                 :           0 :                           tree _q71 = TREE_OPERAND (_p1, 1);
    9724                 :           0 :                           if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
    9725                 :             :                             {
    9726                 :           0 :                               switch (TREE_CODE (_q71))
    9727                 :             :                                 {
    9728                 :           0 :                                 case POINTER_PLUS_EXPR:
    9729                 :           0 :                                   {
    9730                 :           0 :                                     tree _q90 = TREE_OPERAND (_q71, 0);
    9731                 :           0 :                                     tree _q91 = TREE_OPERAND (_q71, 1);
    9732                 :           0 :                                     if ((_q90 == _q21 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q21, 0) && types_match (_q90, _q21)))
    9733                 :             :                                       {
    9734                 :           0 :                                         if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
    9735                 :             :                                           {
    9736                 :           0 :                                             {
    9737                 :           0 :                                               tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q71 };
    9738                 :           0 :                                               const enum tree_code cmp = LE_EXPR;
    9739                 :           0 :                                               if (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[2]))
    9740                 :           0 :  && TYPE_OVERFLOW_WRAPS (sizetype)
    9741                 :           0 :  && TYPE_PRECISION (TREE_TYPE (captures[2])) == TYPE_PRECISION (sizetype)
    9742                 :             : )
    9743                 :             :                                                 {
    9744                 :           0 :                                                   {
    9745                 :           0 :  offset_int off = wi::to_offset (captures[3]) - (cmp == LE_EXPR ? 1 : 0);
    9746                 :           0 :  offset_int rhs = off * 2;
    9747                 :           0 :                                                       if (wi::min_precision (rhs, UNSIGNED) <= TYPE_PRECISION (sizetype)
    9748                 :             : )
    9749                 :             :                                                         {
    9750                 :           0 :                                                           {
    9751                 :           0 :  bool swap_p = tree_swap_operands_p (captures[2], captures[4]);
    9752                 :           0 :  tree rhs_tree = wide_int_to_tree (sizetype, rhs);
    9753                 :           0 :                                                               if (cmp == LT_EXPR
    9754                 :             : )
    9755                 :             :                                                                 {
    9756                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1586;
    9757                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1586;
    9758                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1586;
    9759                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1586;
    9760                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1586;
    9761                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail1586;
    9762                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[6])) goto next_after_fail1586;
    9763                 :             :                                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1586;
    9764                 :             :                                                                   {
    9765                 :             :                                                                     tree res_op0;
    9766                 :             :                                                                     {
    9767                 :             :                                                                       tree _o1[1], _r1;
    9768                 :             :                                                                       {
    9769                 :             :                                                                         tree _o2[2], _r2;
    9770                 :             :                                                                         _o2[0] =  swap_p ? captures[6] : captures[1];
    9771                 :             :                                                                         _o2[1] =  swap_p ? captures[2] : captures[4];
    9772                 :             :                                                                         _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
    9773                 :             :                                                                         _o1[0] = _r2;
    9774                 :             :                                                                       }
    9775                 :             :                                                                       if (TREE_TYPE (_o1[0]) != sizetype)
    9776                 :             :                                                                         {
    9777                 :             :                                                                           _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
    9778                 :             :                                                                         }
    9779                 :             :                                                                       else
    9780                 :             :                                                                         _r1 = _o1[0];
    9781                 :             :                                                                       res_op0 = _r1;
    9782                 :             :                                                                     }
    9783                 :             :                                                                     tree res_op1;
    9784                 :             :                                                                     res_op1 =  rhs_tree;
    9785                 :             :                                                                     tree _r;
    9786                 :             :                                                                     _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
    9787                 :             :                                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 835, __FILE__, __LINE__, true);
    9788                 :           0 :                                                                     return _r;
    9789                 :             :                                                                   }
    9790                 :             : next_after_fail1586:;
    9791                 :             :                                                                 }
    9792                 :             :                                                               else
    9793                 :             :                                                                 {
    9794                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1587;
    9795                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1587;
    9796                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1587;
    9797                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1587;
    9798                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1587;
    9799                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail1587;
    9800                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[6])) goto next_after_fail1587;
    9801                 :           0 :                                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1587;
    9802                 :           0 :                                                                   {
    9803                 :           0 :                                                                     tree res_op0;
    9804                 :           0 :                                                                     {
    9805                 :           0 :                                                                       tree _o1[1], _r1;
    9806                 :           0 :                                                                       {
    9807                 :           0 :                                                                         tree _o2[2], _r2;
    9808                 :           0 :                                                                         {
    9809                 :           0 :                                                                           tree _o3[2], _r3;
    9810                 :           0 :                                                                           _o3[0] =  swap_p ? captures[4] : captures[2];
    9811                 :           0 :                                                                           _o3[1] =  wide_int_to_tree (sizetype, off);
    9812                 :           0 :                                                                           _r3 = fold_build2_loc (loc, POINTER_PLUS_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
    9813                 :           0 :                                                                           _o2[0] = _r3;
    9814                 :             :                                                                         }
    9815                 :           0 :                                                                         _o2[1] =  swap_p ? captures[2] : captures[4];
    9816                 :           0 :                                                                         _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
    9817                 :           0 :                                                                         _o1[0] = _r2;
    9818                 :             :                                                                       }
    9819                 :           0 :                                                                       if (TREE_TYPE (_o1[0]) != sizetype)
    9820                 :             :                                                                         {
    9821                 :           0 :                                                                           _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
    9822                 :             :                                                                         }
    9823                 :             :                                                                       else
    9824                 :             :                                                                         _r1 = _o1[0];
    9825                 :           0 :                                                                       res_op0 = _r1;
    9826                 :             :                                                                     }
    9827                 :           0 :                                                                     tree res_op1;
    9828                 :           0 :                                                                     res_op1 =  rhs_tree;
    9829                 :           0 :                                                                     tree _r;
    9830                 :           0 :                                                                     _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
    9831                 :           0 :                                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 836, __FILE__, __LINE__, true);
    9832                 :           0 :                                                                     return _r;
    9833                 :             :                                                                   }
    9834                 :           0 : next_after_fail1587:;
    9835                 :             :                                                                 }
    9836                 :             :                                                           }
    9837                 :             :                                                         }
    9838                 :             :                                                   }
    9839                 :             :                                                 }
    9840                 :             :                                             }
    9841                 :             :                                           }
    9842                 :             :                                       }
    9843                 :             :                                     break;
    9844                 :             :                                   }
    9845                 :             :                                 default:;
    9846                 :             :                                 }
    9847                 :             :                             }
    9848                 :             :                           break;
    9849                 :             :                         }
    9850                 :             :                       default:;
    9851                 :             :                       }
    9852                 :             :                     break;
    9853                 :             :                   }
    9854                 :             :                 default:;
    9855                 :             :                 }
    9856                 :             :               break;
    9857                 :             :             }
    9858                 :             :           default:;
    9859                 :             :           }
    9860                 :             :         break;
    9861                 :             :       }
    9862                 :      702039 :     case LT_EXPR:
    9863                 :      702039 :       {
    9864                 :      702039 :         tree _q20 = TREE_OPERAND (_p0, 0);
    9865                 :      702039 :         tree _q21 = TREE_OPERAND (_p0, 1);
    9866                 :      702039 :         switch (TREE_CODE (_q20))
    9867                 :             :           {
    9868                 :          10 :           case POINTER_PLUS_EXPR:
    9869                 :          10 :             {
    9870                 :          10 :               tree _q30 = TREE_OPERAND (_q20, 0);
    9871                 :          10 :               tree _q31 = TREE_OPERAND (_q20, 1);
    9872                 :          10 :               switch (TREE_CODE (_q31))
    9873                 :             :                 {
    9874                 :           4 :                 case INTEGER_CST:
    9875                 :           4 :                   {
    9876                 :           4 :                     switch (TREE_CODE (_p1))
    9877                 :             :                       {
    9878                 :           2 :                       case LT_EXPR:
    9879                 :           2 :                         {
    9880                 :           2 :                           tree _q70 = TREE_OPERAND (_p1, 0);
    9881                 :           2 :                           tree _q71 = TREE_OPERAND (_p1, 1);
    9882                 :           2 :                           switch (TREE_CODE (_q70))
    9883                 :             :                             {
    9884                 :           2 :                             case POINTER_PLUS_EXPR:
    9885                 :           2 :                               {
    9886                 :           2 :                                 tree _q80 = TREE_OPERAND (_q70, 0);
    9887                 :           2 :                                 tree _q81 = TREE_OPERAND (_q70, 1);
    9888                 :           2 :                                 if ((_q80 == _q21 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q21, 0) && types_match (_q80, _q21)))
    9889                 :             :                                   {
    9890                 :           2 :                                     if ((_q81 == _q31 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q31, 0) && types_match (_q81, _q31)))
    9891                 :             :                                       {
    9892                 :           2 :                                         if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
    9893                 :             :                                           {
    9894                 :           2 :                                             {
    9895                 :           2 :                                               tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q70 };
    9896                 :           2 :                                               const enum tree_code cmp = LT_EXPR;
    9897                 :           2 :                                               if (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[2]))
    9898                 :           1 :  && TYPE_OVERFLOW_WRAPS (sizetype)
    9899                 :           3 :  && TYPE_PRECISION (TREE_TYPE (captures[2])) == TYPE_PRECISION (sizetype)
    9900                 :             : )
    9901                 :             :                                                 {
    9902                 :           1 :                                                   {
    9903                 :           1 :  offset_int off = wi::to_offset (captures[3]) - (cmp == LE_EXPR ? 1 : 0);
    9904                 :           1 :  offset_int rhs = off * 2;
    9905                 :           1 :                                                       if (wi::min_precision (rhs, UNSIGNED) <= TYPE_PRECISION (sizetype)
    9906                 :             : )
    9907                 :             :                                                         {
    9908                 :           1 :                                                           {
    9909                 :           1 :  bool swap_p = tree_swap_operands_p (captures[2], captures[4]);
    9910                 :           1 :  tree rhs_tree = wide_int_to_tree (sizetype, rhs);
    9911                 :           1 :                                                               if (cmp == LT_EXPR
    9912                 :             : )
    9913                 :             :                                                                 {
    9914                 :           1 :                                                                   if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1588;
    9915                 :           1 :                                                                   if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1588;
    9916                 :           1 :                                                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1588;
    9917                 :           1 :                                                                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1588;
    9918                 :           1 :                                                                   if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1588;
    9919                 :           1 :                                                                   if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail1588;
    9920                 :           1 :                                                                   if (TREE_SIDE_EFFECTS (captures[6])) goto next_after_fail1588;
    9921                 :           1 :                                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1588;
    9922                 :           1 :                                                                   {
    9923                 :           1 :                                                                     tree res_op0;
    9924                 :           1 :                                                                     {
    9925                 :           1 :                                                                       tree _o1[1], _r1;
    9926                 :           1 :                                                                       {
    9927                 :           1 :                                                                         tree _o2[2], _r2;
    9928                 :           1 :                                                                         _o2[0] =  swap_p ? captures[6] : captures[1];
    9929                 :           1 :                                                                         _o2[1] =  swap_p ? captures[2] : captures[4];
    9930                 :           1 :                                                                         _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
    9931                 :           1 :                                                                         _o1[0] = _r2;
    9932                 :             :                                                                       }
    9933                 :           1 :                                                                       if (TREE_TYPE (_o1[0]) != sizetype)
    9934                 :             :                                                                         {
    9935                 :           1 :                                                                           _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
    9936                 :             :                                                                         }
    9937                 :             :                                                                       else
    9938                 :             :                                                                         _r1 = _o1[0];
    9939                 :           1 :                                                                       res_op0 = _r1;
    9940                 :             :                                                                     }
    9941                 :           1 :                                                                     tree res_op1;
    9942                 :           1 :                                                                     res_op1 =  rhs_tree;
    9943                 :           1 :                                                                     tree _r;
    9944                 :           1 :                                                                     _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
    9945                 :           1 :                                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 835, __FILE__, __LINE__, true);
    9946                 :           1 :                                                                     return _r;
    9947                 :             :                                                                   }
    9948                 :           0 : next_after_fail1588:;
    9949                 :             :                                                                 }
    9950                 :             :                                                               else
    9951                 :             :                                                                 {
    9952                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1589;
    9953                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1589;
    9954                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1589;
    9955                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1589;
    9956                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1589;
    9957                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail1589;
    9958                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[6])) goto next_after_fail1589;
    9959                 :             :                                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1589;
    9960                 :             :                                                                   {
    9961                 :             :                                                                     tree res_op0;
    9962                 :             :                                                                     {
    9963                 :             :                                                                       tree _o1[1], _r1;
    9964                 :             :                                                                       {
    9965                 :             :                                                                         tree _o2[2], _r2;
    9966                 :             :                                                                         {
    9967                 :             :                                                                           tree _o3[2], _r3;
    9968                 :             :                                                                           _o3[0] =  swap_p ? captures[4] : captures[2];
    9969                 :             :                                                                           _o3[1] =  wide_int_to_tree (sizetype, off);
    9970                 :             :                                                                           _r3 = fold_build2_loc (loc, POINTER_PLUS_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
    9971                 :             :                                                                           _o2[0] = _r3;
    9972                 :             :                                                                         }
    9973                 :             :                                                                         _o2[1] =  swap_p ? captures[2] : captures[4];
    9974                 :             :                                                                         _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
    9975                 :             :                                                                         _o1[0] = _r2;
    9976                 :             :                                                                       }
    9977                 :             :                                                                       if (TREE_TYPE (_o1[0]) != sizetype)
    9978                 :             :                                                                         {
    9979                 :             :                                                                           _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
    9980                 :             :                                                                         }
    9981                 :             :                                                                       else
    9982                 :             :                                                                         _r1 = _o1[0];
    9983                 :             :                                                                       res_op0 = _r1;
    9984                 :             :                                                                     }
    9985                 :             :                                                                     tree res_op1;
    9986                 :             :                                                                     res_op1 =  rhs_tree;
    9987                 :             :                                                                     tree _r;
    9988                 :             :                                                                     _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
    9989                 :             :                                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 836, __FILE__, __LINE__, true);
    9990                 :             :                                                                     return _r;
    9991                 :             :                                                                   }
    9992                 :             : next_after_fail1589:;
    9993                 :             :                                                                 }
    9994                 :             :                                                           }
    9995                 :             :                                                         }
    9996                 :             :                                                   }
    9997                 :             :                                                 }
    9998                 :             :                                             }
    9999                 :             :                                           }
   10000                 :             :                                       }
   10001                 :             :                                   }
   10002                 :             :                                 break;
   10003                 :             :                               }
   10004                 :             :                             default:;
   10005                 :             :                             }
   10006                 :             :                           break;
   10007                 :             :                         }
   10008                 :           0 :                       case GT_EXPR:
   10009                 :           0 :                         {
   10010                 :           0 :                           tree _q70 = TREE_OPERAND (_p1, 0);
   10011                 :           0 :                           tree _q71 = TREE_OPERAND (_p1, 1);
   10012                 :           0 :                           if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
   10013                 :             :                             {
   10014                 :           0 :                               switch (TREE_CODE (_q71))
   10015                 :             :                                 {
   10016                 :           0 :                                 case POINTER_PLUS_EXPR:
   10017                 :           0 :                                   {
   10018                 :           0 :                                     tree _q90 = TREE_OPERAND (_q71, 0);
   10019                 :           0 :                                     tree _q91 = TREE_OPERAND (_q71, 1);
   10020                 :           0 :                                     if ((_q90 == _q21 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q21, 0) && types_match (_q90, _q21)))
   10021                 :             :                                       {
   10022                 :           0 :                                         if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
   10023                 :             :                                           {
   10024                 :           0 :                                             {
   10025                 :           0 :                                               tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q71 };
   10026                 :           0 :                                               const enum tree_code cmp = LT_EXPR;
   10027                 :           0 :                                               if (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[2]))
   10028                 :           0 :  && TYPE_OVERFLOW_WRAPS (sizetype)
   10029                 :           0 :  && TYPE_PRECISION (TREE_TYPE (captures[2])) == TYPE_PRECISION (sizetype)
   10030                 :             : )
   10031                 :             :                                                 {
   10032                 :           0 :                                                   {
   10033                 :           0 :  offset_int off = wi::to_offset (captures[3]) - (cmp == LE_EXPR ? 1 : 0);
   10034                 :           0 :  offset_int rhs = off * 2;
   10035                 :           0 :                                                       if (wi::min_precision (rhs, UNSIGNED) <= TYPE_PRECISION (sizetype)
   10036                 :             : )
   10037                 :             :                                                         {
   10038                 :           0 :                                                           {
   10039                 :           0 :  bool swap_p = tree_swap_operands_p (captures[2], captures[4]);
   10040                 :           0 :  tree rhs_tree = wide_int_to_tree (sizetype, rhs);
   10041                 :           0 :                                                               if (cmp == LT_EXPR
   10042                 :             : )
   10043                 :             :                                                                 {
   10044                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1590;
   10045                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1590;
   10046                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1590;
   10047                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1590;
   10048                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1590;
   10049                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail1590;
   10050                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[6])) goto next_after_fail1590;
   10051                 :           0 :                                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1590;
   10052                 :           0 :                                                                   {
   10053                 :           0 :                                                                     tree res_op0;
   10054                 :           0 :                                                                     {
   10055                 :           0 :                                                                       tree _o1[1], _r1;
   10056                 :           0 :                                                                       {
   10057                 :           0 :                                                                         tree _o2[2], _r2;
   10058                 :           0 :                                                                         _o2[0] =  swap_p ? captures[6] : captures[1];
   10059                 :           0 :                                                                         _o2[1] =  swap_p ? captures[2] : captures[4];
   10060                 :           0 :                                                                         _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
   10061                 :           0 :                                                                         _o1[0] = _r2;
   10062                 :             :                                                                       }
   10063                 :           0 :                                                                       if (TREE_TYPE (_o1[0]) != sizetype)
   10064                 :             :                                                                         {
   10065                 :           0 :                                                                           _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
   10066                 :             :                                                                         }
   10067                 :             :                                                                       else
   10068                 :             :                                                                         _r1 = _o1[0];
   10069                 :           0 :                                                                       res_op0 = _r1;
   10070                 :             :                                                                     }
   10071                 :           0 :                                                                     tree res_op1;
   10072                 :           0 :                                                                     res_op1 =  rhs_tree;
   10073                 :           0 :                                                                     tree _r;
   10074                 :           0 :                                                                     _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
   10075                 :           0 :                                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 835, __FILE__, __LINE__, true);
   10076                 :           0 :                                                                     return _r;
   10077                 :             :                                                                   }
   10078                 :           0 : next_after_fail1590:;
   10079                 :             :                                                                 }
   10080                 :             :                                                               else
   10081                 :             :                                                                 {
   10082                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1591;
   10083                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1591;
   10084                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1591;
   10085                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1591;
   10086                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1591;
   10087                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail1591;
   10088                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[6])) goto next_after_fail1591;
   10089                 :             :                                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1591;
   10090                 :             :                                                                   {
   10091                 :             :                                                                     tree res_op0;
   10092                 :             :                                                                     {
   10093                 :             :                                                                       tree _o1[1], _r1;
   10094                 :             :                                                                       {
   10095                 :             :                                                                         tree _o2[2], _r2;
   10096                 :             :                                                                         {
   10097                 :             :                                                                           tree _o3[2], _r3;
   10098                 :             :                                                                           _o3[0] =  swap_p ? captures[4] : captures[2];
   10099                 :             :                                                                           _o3[1] =  wide_int_to_tree (sizetype, off);
   10100                 :             :                                                                           _r3 = fold_build2_loc (loc, POINTER_PLUS_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
   10101                 :             :                                                                           _o2[0] = _r3;
   10102                 :             :                                                                         }
   10103                 :             :                                                                         _o2[1] =  swap_p ? captures[2] : captures[4];
   10104                 :             :                                                                         _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
   10105                 :             :                                                                         _o1[0] = _r2;
   10106                 :             :                                                                       }
   10107                 :             :                                                                       if (TREE_TYPE (_o1[0]) != sizetype)
   10108                 :             :                                                                         {
   10109                 :             :                                                                           _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
   10110                 :             :                                                                         }
   10111                 :             :                                                                       else
   10112                 :             :                                                                         _r1 = _o1[0];
   10113                 :             :                                                                       res_op0 = _r1;
   10114                 :             :                                                                     }
   10115                 :             :                                                                     tree res_op1;
   10116                 :             :                                                                     res_op1 =  rhs_tree;
   10117                 :             :                                                                     tree _r;
   10118                 :             :                                                                     _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
   10119                 :             :                                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 836, __FILE__, __LINE__, true);
   10120                 :             :                                                                     return _r;
   10121                 :             :                                                                   }
   10122                 :             : next_after_fail1591:;
   10123                 :             :                                                                 }
   10124                 :             :                                                           }
   10125                 :             :                                                         }
   10126                 :             :                                                   }
   10127                 :             :                                                 }
   10128                 :             :                                             }
   10129                 :             :                                           }
   10130                 :             :                                       }
   10131                 :             :                                     break;
   10132                 :             :                                   }
   10133                 :             :                                 default:;
   10134                 :             :                                 }
   10135                 :             :                             }
   10136                 :             :                           break;
   10137                 :             :                         }
   10138                 :             :                       default:;
   10139                 :             :                       }
   10140                 :             :                     break;
   10141                 :             :                   }
   10142                 :             :                 default:;
   10143                 :             :                 }
   10144                 :             :               break;
   10145                 :             :             }
   10146                 :             :           default:;
   10147                 :             :           }
   10148                 :             :         break;
   10149                 :             :       }
   10150                 :       21066 :     case GE_EXPR:
   10151                 :       21066 :       {
   10152                 :       21066 :         tree _q20 = TREE_OPERAND (_p0, 0);
   10153                 :       21066 :         tree _q21 = TREE_OPERAND (_p0, 1);
   10154                 :       21066 :         switch (TREE_CODE (_q21))
   10155                 :             :           {
   10156                 :           0 :           case POINTER_PLUS_EXPR:
   10157                 :           0 :             {
   10158                 :           0 :               tree _q40 = TREE_OPERAND (_q21, 0);
   10159                 :           0 :               tree _q41 = TREE_OPERAND (_q21, 1);
   10160                 :           0 :               switch (TREE_CODE (_q41))
   10161                 :             :                 {
   10162                 :           0 :                 case INTEGER_CST:
   10163                 :           0 :                   {
   10164                 :           0 :                     switch (TREE_CODE (_p1))
   10165                 :             :                       {
   10166                 :           0 :                       case LE_EXPR:
   10167                 :           0 :                         {
   10168                 :           0 :                           tree _q70 = TREE_OPERAND (_p1, 0);
   10169                 :           0 :                           tree _q71 = TREE_OPERAND (_p1, 1);
   10170                 :           0 :                           switch (TREE_CODE (_q70))
   10171                 :             :                             {
   10172                 :           0 :                             case POINTER_PLUS_EXPR:
   10173                 :           0 :                               {
   10174                 :           0 :                                 tree _q80 = TREE_OPERAND (_q70, 0);
   10175                 :           0 :                                 tree _q81 = TREE_OPERAND (_q70, 1);
   10176                 :           0 :                                 if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
   10177                 :             :                                   {
   10178                 :           0 :                                     if ((_q81 == _q41 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q41, 0) && types_match (_q81, _q41)))
   10179                 :             :                                       {
   10180                 :           0 :                                         if ((_q71 == _q40 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q40, 0) && types_match (_q71, _q40)))
   10181                 :             :                                           {
   10182                 :           0 :                                             {
   10183                 :           0 :                                               tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q21, _q40, _q41, _q20, _p1, _q70 };
   10184                 :           0 :                                               const enum tree_code cmp = LE_EXPR;
   10185                 :           0 :                                               if (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[2]))
   10186                 :           0 :  && TYPE_OVERFLOW_WRAPS (sizetype)
   10187                 :           0 :  && TYPE_PRECISION (TREE_TYPE (captures[2])) == TYPE_PRECISION (sizetype)
   10188                 :             : )
   10189                 :             :                                                 {
   10190                 :           0 :                                                   {
   10191                 :           0 :  offset_int off = wi::to_offset (captures[3]) - (cmp == LE_EXPR ? 1 : 0);
   10192                 :           0 :  offset_int rhs = off * 2;
   10193                 :           0 :                                                       if (wi::min_precision (rhs, UNSIGNED) <= TYPE_PRECISION (sizetype)
   10194                 :             : )
   10195                 :             :                                                         {
   10196                 :           0 :                                                           {
   10197                 :           0 :  bool swap_p = tree_swap_operands_p (captures[2], captures[4]);
   10198                 :           0 :  tree rhs_tree = wide_int_to_tree (sizetype, rhs);
   10199                 :           0 :                                                               if (cmp == LT_EXPR
   10200                 :             : )
   10201                 :             :                                                                 {
   10202                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1592;
   10203                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1592;
   10204                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1592;
   10205                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1592;
   10206                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1592;
   10207                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail1592;
   10208                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[6])) goto next_after_fail1592;
   10209                 :             :                                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1592;
   10210                 :             :                                                                   {
   10211                 :             :                                                                     tree res_op0;
   10212                 :             :                                                                     {
   10213                 :             :                                                                       tree _o1[1], _r1;
   10214                 :             :                                                                       {
   10215                 :             :                                                                         tree _o2[2], _r2;
   10216                 :             :                                                                         _o2[0] =  swap_p ? captures[6] : captures[1];
   10217                 :             :                                                                         _o2[1] =  swap_p ? captures[2] : captures[4];
   10218                 :             :                                                                         _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
   10219                 :             :                                                                         _o1[0] = _r2;
   10220                 :             :                                                                       }
   10221                 :             :                                                                       if (TREE_TYPE (_o1[0]) != sizetype)
   10222                 :             :                                                                         {
   10223                 :             :                                                                           _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
   10224                 :             :                                                                         }
   10225                 :             :                                                                       else
   10226                 :             :                                                                         _r1 = _o1[0];
   10227                 :             :                                                                       res_op0 = _r1;
   10228                 :             :                                                                     }
   10229                 :             :                                                                     tree res_op1;
   10230                 :             :                                                                     res_op1 =  rhs_tree;
   10231                 :             :                                                                     tree _r;
   10232                 :             :                                                                     _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
   10233                 :             :                                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 835, __FILE__, __LINE__, true);
   10234                 :           0 :                                                                     return _r;
   10235                 :             :                                                                   }
   10236                 :             : next_after_fail1592:;
   10237                 :             :                                                                 }
   10238                 :             :                                                               else
   10239                 :             :                                                                 {
   10240                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1593;
   10241                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1593;
   10242                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1593;
   10243                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1593;
   10244                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1593;
   10245                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail1593;
   10246                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[6])) goto next_after_fail1593;
   10247                 :           0 :                                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1593;
   10248                 :           0 :                                                                   {
   10249                 :           0 :                                                                     tree res_op0;
   10250                 :           0 :                                                                     {
   10251                 :           0 :                                                                       tree _o1[1], _r1;
   10252                 :           0 :                                                                       {
   10253                 :           0 :                                                                         tree _o2[2], _r2;
   10254                 :           0 :                                                                         {
   10255                 :           0 :                                                                           tree _o3[2], _r3;
   10256                 :           0 :                                                                           _o3[0] =  swap_p ? captures[4] : captures[2];
   10257                 :           0 :                                                                           _o3[1] =  wide_int_to_tree (sizetype, off);
   10258                 :           0 :                                                                           _r3 = fold_build2_loc (loc, POINTER_PLUS_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
   10259                 :           0 :                                                                           _o2[0] = _r3;
   10260                 :             :                                                                         }
   10261                 :           0 :                                                                         _o2[1] =  swap_p ? captures[2] : captures[4];
   10262                 :           0 :                                                                         _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
   10263                 :           0 :                                                                         _o1[0] = _r2;
   10264                 :             :                                                                       }
   10265                 :           0 :                                                                       if (TREE_TYPE (_o1[0]) != sizetype)
   10266                 :             :                                                                         {
   10267                 :           0 :                                                                           _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
   10268                 :             :                                                                         }
   10269                 :             :                                                                       else
   10270                 :             :                                                                         _r1 = _o1[0];
   10271                 :           0 :                                                                       res_op0 = _r1;
   10272                 :             :                                                                     }
   10273                 :           0 :                                                                     tree res_op1;
   10274                 :           0 :                                                                     res_op1 =  rhs_tree;
   10275                 :           0 :                                                                     tree _r;
   10276                 :           0 :                                                                     _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
   10277                 :           0 :                                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 836, __FILE__, __LINE__, true);
   10278                 :           0 :                                                                     return _r;
   10279                 :             :                                                                   }
   10280                 :           0 : next_after_fail1593:;
   10281                 :             :                                                                 }
   10282                 :             :                                                           }
   10283                 :             :                                                         }
   10284                 :             :                                                   }
   10285                 :             :                                                 }
   10286                 :             :                                             }
   10287                 :             :                                           }
   10288                 :             :                                       }
   10289                 :             :                                   }
   10290                 :             :                                 break;
   10291                 :             :                               }
   10292                 :             :                             default:;
   10293                 :             :                             }
   10294                 :             :                           break;
   10295                 :             :                         }
   10296                 :           0 :                       case GE_EXPR:
   10297                 :           0 :                         {
   10298                 :           0 :                           tree _q70 = TREE_OPERAND (_p1, 0);
   10299                 :           0 :                           tree _q71 = TREE_OPERAND (_p1, 1);
   10300                 :           0 :                           if ((_q70 == _q40 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q40, 0) && types_match (_q70, _q40)))
   10301                 :             :                             {
   10302                 :           0 :                               switch (TREE_CODE (_q71))
   10303                 :             :                                 {
   10304                 :           0 :                                 case POINTER_PLUS_EXPR:
   10305                 :           0 :                                   {
   10306                 :           0 :                                     tree _q90 = TREE_OPERAND (_q71, 0);
   10307                 :           0 :                                     tree _q91 = TREE_OPERAND (_q71, 1);
   10308                 :           0 :                                     if ((_q90 == _q20 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q20, 0) && types_match (_q90, _q20)))
   10309                 :             :                                       {
   10310                 :           0 :                                         if ((_q91 == _q41 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q41, 0) && types_match (_q91, _q41)))
   10311                 :             :                                           {
   10312                 :           0 :                                             {
   10313                 :           0 :                                               tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q21, _q40, _q41, _q20, _p1, _q71 };
   10314                 :           0 :                                               const enum tree_code cmp = LE_EXPR;
   10315                 :           0 :                                               if (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[2]))
   10316                 :           0 :  && TYPE_OVERFLOW_WRAPS (sizetype)
   10317                 :           0 :  && TYPE_PRECISION (TREE_TYPE (captures[2])) == TYPE_PRECISION (sizetype)
   10318                 :             : )
   10319                 :             :                                                 {
   10320                 :           0 :                                                   {
   10321                 :           0 :  offset_int off = wi::to_offset (captures[3]) - (cmp == LE_EXPR ? 1 : 0);
   10322                 :           0 :  offset_int rhs = off * 2;
   10323                 :           0 :                                                       if (wi::min_precision (rhs, UNSIGNED) <= TYPE_PRECISION (sizetype)
   10324                 :             : )
   10325                 :             :                                                         {
   10326                 :           0 :                                                           {
   10327                 :           0 :  bool swap_p = tree_swap_operands_p (captures[2], captures[4]);
   10328                 :           0 :  tree rhs_tree = wide_int_to_tree (sizetype, rhs);
   10329                 :           0 :                                                               if (cmp == LT_EXPR
   10330                 :             : )
   10331                 :             :                                                                 {
   10332                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1594;
   10333                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1594;
   10334                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1594;
   10335                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1594;
   10336                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1594;
   10337                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail1594;
   10338                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[6])) goto next_after_fail1594;
   10339                 :             :                                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1594;
   10340                 :             :                                                                   {
   10341                 :             :                                                                     tree res_op0;
   10342                 :             :                                                                     {
   10343                 :             :                                                                       tree _o1[1], _r1;
   10344                 :             :                                                                       {
   10345                 :             :                                                                         tree _o2[2], _r2;
   10346                 :             :                                                                         _o2[0] =  swap_p ? captures[6] : captures[1];
   10347                 :             :                                                                         _o2[1] =  swap_p ? captures[2] : captures[4];
   10348                 :             :                                                                         _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
   10349                 :             :                                                                         _o1[0] = _r2;
   10350                 :             :                                                                       }
   10351                 :             :                                                                       if (TREE_TYPE (_o1[0]) != sizetype)
   10352                 :             :                                                                         {
   10353                 :             :                                                                           _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
   10354                 :             :                                                                         }
   10355                 :             :                                                                       else
   10356                 :             :                                                                         _r1 = _o1[0];
   10357                 :             :                                                                       res_op0 = _r1;
   10358                 :             :                                                                     }
   10359                 :             :                                                                     tree res_op1;
   10360                 :             :                                                                     res_op1 =  rhs_tree;
   10361                 :             :                                                                     tree _r;
   10362                 :             :                                                                     _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
   10363                 :             :                                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 835, __FILE__, __LINE__, true);
   10364                 :           0 :                                                                     return _r;
   10365                 :             :                                                                   }
   10366                 :             : next_after_fail1594:;
   10367                 :             :                                                                 }
   10368                 :             :                                                               else
   10369                 :             :                                                                 {
   10370                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1595;
   10371                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1595;
   10372                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1595;
   10373                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1595;
   10374                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1595;
   10375                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail1595;
   10376                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[6])) goto next_after_fail1595;
   10377                 :           0 :                                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1595;
   10378                 :           0 :                                                                   {
   10379                 :           0 :                                                                     tree res_op0;
   10380                 :           0 :                                                                     {
   10381                 :           0 :                                                                       tree _o1[1], _r1;
   10382                 :           0 :                                                                       {
   10383                 :           0 :                                                                         tree _o2[2], _r2;
   10384                 :           0 :                                                                         {
   10385                 :           0 :                                                                           tree _o3[2], _r3;
   10386                 :           0 :                                                                           _o3[0] =  swap_p ? captures[4] : captures[2];
   10387                 :           0 :                                                                           _o3[1] =  wide_int_to_tree (sizetype, off);
   10388                 :           0 :                                                                           _r3 = fold_build2_loc (loc, POINTER_PLUS_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
   10389                 :           0 :                                                                           _o2[0] = _r3;
   10390                 :             :                                                                         }
   10391                 :           0 :                                                                         _o2[1] =  swap_p ? captures[2] : captures[4];
   10392                 :           0 :                                                                         _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
   10393                 :           0 :                                                                         _o1[0] = _r2;
   10394                 :             :                                                                       }
   10395                 :           0 :                                                                       if (TREE_TYPE (_o1[0]) != sizetype)
   10396                 :             :                                                                         {
   10397                 :           0 :                                                                           _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
   10398                 :             :                                                                         }
   10399                 :             :                                                                       else
   10400                 :             :                                                                         _r1 = _o1[0];
   10401                 :           0 :                                                                       res_op0 = _r1;
   10402                 :             :                                                                     }
   10403                 :           0 :                                                                     tree res_op1;
   10404                 :           0 :                                                                     res_op1 =  rhs_tree;
   10405                 :           0 :                                                                     tree _r;
   10406                 :           0 :                                                                     _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
   10407                 :           0 :                                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 836, __FILE__, __LINE__, true);
   10408                 :           0 :                                                                     return _r;
   10409                 :             :                                                                   }
   10410                 :           0 : next_after_fail1595:;
   10411                 :             :                                                                 }
   10412                 :             :                                                           }
   10413                 :             :                                                         }
   10414                 :             :                                                   }
   10415                 :             :                                                 }
   10416                 :             :                                             }
   10417                 :             :                                           }
   10418                 :             :                                       }
   10419                 :             :                                     break;
   10420                 :             :                                   }
   10421                 :             :                                 default:;
   10422                 :             :                                 }
   10423                 :             :                             }
   10424                 :             :                           break;
   10425                 :             :                         }
   10426                 :             :                       default:;
   10427                 :             :                       }
   10428                 :             :                     break;
   10429                 :             :                   }
   10430                 :             :                 default:;
   10431                 :             :                 }
   10432                 :             :               break;
   10433                 :             :             }
   10434                 :             :           default:;
   10435                 :             :           }
   10436                 :             :         break;
   10437                 :             :       }
   10438                 :       68596 :     case GT_EXPR:
   10439                 :       68596 :       {
   10440                 :       68596 :         tree _q20 = TREE_OPERAND (_p0, 0);
   10441                 :       68596 :         tree _q21 = TREE_OPERAND (_p0, 1);
   10442                 :       68596 :         switch (TREE_CODE (_q21))
   10443                 :             :           {
   10444                 :           0 :           case POINTER_PLUS_EXPR:
   10445                 :           0 :             {
   10446                 :           0 :               tree _q40 = TREE_OPERAND (_q21, 0);
   10447                 :           0 :               tree _q41 = TREE_OPERAND (_q21, 1);
   10448                 :           0 :               switch (TREE_CODE (_q41))
   10449                 :             :                 {
   10450                 :           0 :                 case INTEGER_CST:
   10451                 :           0 :                   {
   10452                 :           0 :                     switch (TREE_CODE (_p1))
   10453                 :             :                       {
   10454                 :           0 :                       case LT_EXPR:
   10455                 :           0 :                         {
   10456                 :           0 :                           tree _q70 = TREE_OPERAND (_p1, 0);
   10457                 :           0 :                           tree _q71 = TREE_OPERAND (_p1, 1);
   10458                 :           0 :                           switch (TREE_CODE (_q70))
   10459                 :             :                             {
   10460                 :           0 :                             case POINTER_PLUS_EXPR:
   10461                 :           0 :                               {
   10462                 :           0 :                                 tree _q80 = TREE_OPERAND (_q70, 0);
   10463                 :           0 :                                 tree _q81 = TREE_OPERAND (_q70, 1);
   10464                 :           0 :                                 if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
   10465                 :             :                                   {
   10466                 :           0 :                                     if ((_q81 == _q41 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q41, 0) && types_match (_q81, _q41)))
   10467                 :             :                                       {
   10468                 :           0 :                                         if ((_q71 == _q40 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q40, 0) && types_match (_q71, _q40)))
   10469                 :             :                                           {
   10470                 :           0 :                                             {
   10471                 :           0 :                                               tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q21, _q40, _q41, _q20, _p1, _q70 };
   10472                 :           0 :                                               const enum tree_code cmp = LT_EXPR;
   10473                 :           0 :                                               if (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[2]))
   10474                 :           0 :  && TYPE_OVERFLOW_WRAPS (sizetype)
   10475                 :           0 :  && TYPE_PRECISION (TREE_TYPE (captures[2])) == TYPE_PRECISION (sizetype)
   10476                 :             : )
   10477                 :             :                                                 {
   10478                 :           0 :                                                   {
   10479                 :           0 :  offset_int off = wi::to_offset (captures[3]) - (cmp == LE_EXPR ? 1 : 0);
   10480                 :           0 :  offset_int rhs = off * 2;
   10481                 :           0 :                                                       if (wi::min_precision (rhs, UNSIGNED) <= TYPE_PRECISION (sizetype)
   10482                 :             : )
   10483                 :             :                                                         {
   10484                 :           0 :                                                           {
   10485                 :           0 :  bool swap_p = tree_swap_operands_p (captures[2], captures[4]);
   10486                 :           0 :  tree rhs_tree = wide_int_to_tree (sizetype, rhs);
   10487                 :           0 :                                                               if (cmp == LT_EXPR
   10488                 :             : )
   10489                 :             :                                                                 {
   10490                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1596;
   10491                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1596;
   10492                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1596;
   10493                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1596;
   10494                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1596;
   10495                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail1596;
   10496                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[6])) goto next_after_fail1596;
   10497                 :           0 :                                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1596;
   10498                 :           0 :                                                                   {
   10499                 :           0 :                                                                     tree res_op0;
   10500                 :           0 :                                                                     {
   10501                 :           0 :                                                                       tree _o1[1], _r1;
   10502                 :           0 :                                                                       {
   10503                 :           0 :                                                                         tree _o2[2], _r2;
   10504                 :           0 :                                                                         _o2[0] =  swap_p ? captures[6] : captures[1];
   10505                 :           0 :                                                                         _o2[1] =  swap_p ? captures[2] : captures[4];
   10506                 :           0 :                                                                         _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
   10507                 :           0 :                                                                         _o1[0] = _r2;
   10508                 :             :                                                                       }
   10509                 :           0 :                                                                       if (TREE_TYPE (_o1[0]) != sizetype)
   10510                 :             :                                                                         {
   10511                 :           0 :                                                                           _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
   10512                 :             :                                                                         }
   10513                 :             :                                                                       else
   10514                 :             :                                                                         _r1 = _o1[0];
   10515                 :           0 :                                                                       res_op0 = _r1;
   10516                 :             :                                                                     }
   10517                 :           0 :                                                                     tree res_op1;
   10518                 :           0 :                                                                     res_op1 =  rhs_tree;
   10519                 :           0 :                                                                     tree _r;
   10520                 :           0 :                                                                     _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
   10521                 :           0 :                                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 835, __FILE__, __LINE__, true);
   10522                 :           0 :                                                                     return _r;
   10523                 :             :                                                                   }
   10524                 :           0 : next_after_fail1596:;
   10525                 :             :                                                                 }
   10526                 :             :                                                               else
   10527                 :             :                                                                 {
   10528                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1597;
   10529                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1597;
   10530                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1597;
   10531                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1597;
   10532                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1597;
   10533                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail1597;
   10534                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[6])) goto next_after_fail1597;
   10535                 :             :                                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1597;
   10536                 :             :                                                                   {
   10537                 :             :                                                                     tree res_op0;
   10538                 :             :                                                                     {
   10539                 :             :                                                                       tree _o1[1], _r1;
   10540                 :             :                                                                       {
   10541                 :             :                                                                         tree _o2[2], _r2;
   10542                 :             :                                                                         {
   10543                 :             :                                                                           tree _o3[2], _r3;
   10544                 :             :                                                                           _o3[0] =  swap_p ? captures[4] : captures[2];
   10545                 :             :                                                                           _o3[1] =  wide_int_to_tree (sizetype, off);
   10546                 :             :                                                                           _r3 = fold_build2_loc (loc, POINTER_PLUS_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
   10547                 :             :                                                                           _o2[0] = _r3;
   10548                 :             :                                                                         }
   10549                 :             :                                                                         _o2[1] =  swap_p ? captures[2] : captures[4];
   10550                 :             :                                                                         _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
   10551                 :             :                                                                         _o1[0] = _r2;
   10552                 :             :                                                                       }
   10553                 :             :                                                                       if (TREE_TYPE (_o1[0]) != sizetype)
   10554                 :             :                                                                         {
   10555                 :             :                                                                           _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
   10556                 :             :                                                                         }
   10557                 :             :                                                                       else
   10558                 :             :                                                                         _r1 = _o1[0];
   10559                 :             :                                                                       res_op0 = _r1;
   10560                 :             :                                                                     }
   10561                 :             :                                                                     tree res_op1;
   10562                 :             :                                                                     res_op1 =  rhs_tree;
   10563                 :             :                                                                     tree _r;
   10564                 :             :                                                                     _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
   10565                 :             :                                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 836, __FILE__, __LINE__, true);
   10566                 :             :                                                                     return _r;
   10567                 :             :                                                                   }
   10568                 :             : next_after_fail1597:;
   10569                 :             :                                                                 }
   10570                 :             :                                                           }
   10571                 :             :                                                         }
   10572                 :             :                                                   }
   10573                 :             :                                                 }
   10574                 :             :                                             }
   10575                 :             :                                           }
   10576                 :             :                                       }
   10577                 :             :                                   }
   10578                 :             :                                 break;
   10579                 :             :                               }
   10580                 :             :                             default:;
   10581                 :             :                             }
   10582                 :             :                           break;
   10583                 :             :                         }
   10584                 :           0 :                       case GT_EXPR:
   10585                 :           0 :                         {
   10586                 :           0 :                           tree _q70 = TREE_OPERAND (_p1, 0);
   10587                 :           0 :                           tree _q71 = TREE_OPERAND (_p1, 1);
   10588                 :           0 :                           if ((_q70 == _q40 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q40, 0) && types_match (_q70, _q40)))
   10589                 :             :                             {
   10590                 :           0 :                               switch (TREE_CODE (_q71))
   10591                 :             :                                 {
   10592                 :           0 :                                 case POINTER_PLUS_EXPR:
   10593                 :           0 :                                   {
   10594                 :           0 :                                     tree _q90 = TREE_OPERAND (_q71, 0);
   10595                 :           0 :                                     tree _q91 = TREE_OPERAND (_q71, 1);
   10596                 :           0 :                                     if ((_q90 == _q20 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q20, 0) && types_match (_q90, _q20)))
   10597                 :             :                                       {
   10598                 :           0 :                                         if ((_q91 == _q41 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q41, 0) && types_match (_q91, _q41)))
   10599                 :             :                                           {
   10600                 :           0 :                                             {
   10601                 :           0 :                                               tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q21, _q40, _q41, _q20, _p1, _q71 };
   10602                 :           0 :                                               const enum tree_code cmp = LT_EXPR;
   10603                 :           0 :                                               if (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[2]))
   10604                 :           0 :  && TYPE_OVERFLOW_WRAPS (sizetype)
   10605                 :           0 :  && TYPE_PRECISION (TREE_TYPE (captures[2])) == TYPE_PRECISION (sizetype)
   10606                 :             : )
   10607                 :             :                                                 {
   10608                 :           0 :                                                   {
   10609                 :           0 :  offset_int off = wi::to_offset (captures[3]) - (cmp == LE_EXPR ? 1 : 0);
   10610                 :           0 :  offset_int rhs = off * 2;
   10611                 :           0 :                                                       if (wi::min_precision (rhs, UNSIGNED) <= TYPE_PRECISION (sizetype)
   10612                 :             : )
   10613                 :             :                                                         {
   10614                 :           0 :                                                           {
   10615                 :           0 :  bool swap_p = tree_swap_operands_p (captures[2], captures[4]);
   10616                 :           0 :  tree rhs_tree = wide_int_to_tree (sizetype, rhs);
   10617                 :           0 :                                                               if (cmp == LT_EXPR
   10618                 :             : )
   10619                 :             :                                                                 {
   10620                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1598;
   10621                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1598;
   10622                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1598;
   10623                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1598;
   10624                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1598;
   10625                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail1598;
   10626                 :           0 :                                                                   if (TREE_SIDE_EFFECTS (captures[6])) goto next_after_fail1598;
   10627                 :           0 :                                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1598;
   10628                 :           0 :                                                                   {
   10629                 :           0 :                                                                     tree res_op0;
   10630                 :           0 :                                                                     {
   10631                 :           0 :                                                                       tree _o1[1], _r1;
   10632                 :           0 :                                                                       {
   10633                 :           0 :                                                                         tree _o2[2], _r2;
   10634                 :           0 :                                                                         _o2[0] =  swap_p ? captures[6] : captures[1];
   10635                 :           0 :                                                                         _o2[1] =  swap_p ? captures[2] : captures[4];
   10636                 :           0 :                                                                         _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
   10637                 :           0 :                                                                         _o1[0] = _r2;
   10638                 :             :                                                                       }
   10639                 :           0 :                                                                       if (TREE_TYPE (_o1[0]) != sizetype)
   10640                 :             :                                                                         {
   10641                 :           0 :                                                                           _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
   10642                 :             :                                                                         }
   10643                 :             :                                                                       else
   10644                 :             :                                                                         _r1 = _o1[0];
   10645                 :           0 :                                                                       res_op0 = _r1;
   10646                 :             :                                                                     }
   10647                 :           0 :                                                                     tree res_op1;
   10648                 :           0 :                                                                     res_op1 =  rhs_tree;
   10649                 :           0 :                                                                     tree _r;
   10650                 :           0 :                                                                     _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
   10651                 :           0 :                                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 835, __FILE__, __LINE__, true);
   10652                 :           0 :                                                                     return _r;
   10653                 :             :                                                                   }
   10654                 :           0 : next_after_fail1598:;
   10655                 :             :                                                                 }
   10656                 :             :                                                               else
   10657                 :             :                                                                 {
   10658                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1599;
   10659                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1599;
   10660                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1599;
   10661                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1599;
   10662                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1599;
   10663                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail1599;
   10664                 :             :                                                                   if (TREE_SIDE_EFFECTS (captures[6])) goto next_after_fail1599;
   10665                 :             :                                                                   if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1599;
   10666                 :             :                                                                   {
   10667                 :             :                                                                     tree res_op0;
   10668                 :             :                                                                     {
   10669                 :             :                                                                       tree _o1[1], _r1;
   10670                 :             :                                                                       {
   10671                 :             :                                                                         tree _o2[2], _r2;
   10672                 :             :                                                                         {
   10673                 :             :                                                                           tree _o3[2], _r3;
   10674                 :             :                                                                           _o3[0] =  swap_p ? captures[4] : captures[2];
   10675                 :             :                                                                           _o3[1] =  wide_int_to_tree (sizetype, off);
   10676                 :             :                                                                           _r3 = fold_build2_loc (loc, POINTER_PLUS_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
   10677                 :             :                                                                           _o2[0] = _r3;
   10678                 :             :                                                                         }
   10679                 :             :                                                                         _o2[1] =  swap_p ? captures[2] : captures[4];
   10680                 :             :                                                                         _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
   10681                 :             :                                                                         _o1[0] = _r2;
   10682                 :             :                                                                       }
   10683                 :             :                                                                       if (TREE_TYPE (_o1[0]) != sizetype)
   10684                 :             :                                                                         {
   10685                 :             :                                                                           _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
   10686                 :             :                                                                         }
   10687                 :             :                                                                       else
   10688                 :             :                                                                         _r1 = _o1[0];
   10689                 :             :                                                                       res_op0 = _r1;
   10690                 :             :                                                                     }
   10691                 :             :                                                                     tree res_op1;
   10692                 :             :                                                                     res_op1 =  rhs_tree;
   10693                 :             :                                                                     tree _r;
   10694                 :             :                                                                     _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
   10695                 :             :                                                                     if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 836, __FILE__, __LINE__, true);
   10696                 :             :                                                                     return _r;
   10697                 :             :                                                                   }
   10698                 :             : next_after_fail1599:;
   10699                 :             :                                                                 }
   10700                 :             :                                                           }
   10701                 :             :                                                         }
   10702                 :             :                                                   }
   10703                 :             :                                                 }
   10704                 :             :                                             }
   10705                 :             :                                           }
   10706                 :             :                                       }
   10707                 :             :                                     break;
   10708                 :             :                                   }
   10709                 :             :                                 default:;
   10710                 :             :                                 }
   10711                 :             :                             }
   10712                 :             :                           break;
   10713                 :             :                         }
   10714                 :             :                       default:;
   10715                 :             :                       }
   10716                 :             :                     break;
   10717                 :             :                   }
   10718                 :             :                 default:;
   10719                 :             :                 }
   10720                 :             :               break;
   10721                 :             :             }
   10722                 :             :           default:;
   10723                 :             :           }
   10724                 :             :         break;
   10725                 :             :       }
   10726                 :             :     default:;
   10727                 :             :     }
   10728                 :             :   return NULL_TREE;
   10729                 :             : }
   10730                 :             : #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.