LCOV - code coverage report
Current view: top level - gcc/config/i386 - predicates.md (source / functions) Coverage Total Hit
Test: gcc.info Lines: 86.8 % 1446 1255
Test Date: 2025-09-20 13:40:47 Functions: 95.9 % 246 236
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: - 0 0

             Branch data     Line data    Source code
       1                 :             : ;; Predicate definitions for IA-32 and x86-64.
       2                 :             : ;; Copyright (C) 2004-2025 Free Software Foundation, Inc.
       3                 :             : ;;
       4                 :             : ;; This file is part of GCC.
       5                 :             : ;;
       6                 :             : ;; GCC is free software; you can redistribute it and/or modify
       7                 :             : ;; it under the terms of the GNU General Public License as published by
       8                 :             : ;; the Free Software Foundation; either version 3, or (at your option)
       9                 :             : ;; any later version.
      10                 :             : ;;
      11                 :             : ;; GCC is distributed in the hope that it will be useful,
      12                 :             : ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
      13                 :             : ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      14                 :             : ;; GNU General Public License for more details.
      15                 :             : ;;
      16                 :             : ;; You should have received a copy of the GNU General Public License
      17                 :             : ;; along with GCC; see the file COPYING3.  If not see
      18                 :             : ;; <http://www.gnu.org/licenses/>.
      19                 :             : 
      20                 :             : ;; Return true if OP is either a i387 or SSE fp register.
      21                 :             : (define_predicate "any_fp_register_operand"
      22                 :             :   (and (match_code "reg")
      23                 :   131738154 :        (match_test "ANY_FP_REGNO_P (REGNO (op))")))
      24                 :       40526 : 
      25                 :             : ;; Return true if OP is an i387 fp register.
      26                 :             : (define_predicate "fp_register_operand"
      27                 :             :   (and (match_code "reg")
      28                 :     1602694 :        (match_test "STACK_REGNO_P (REGNO (op))")))
      29                 :     1516593 : 
      30                 :   433525593 : ;; True if the operand is a GENERAL class register.
      31                 :             : (define_predicate "general_reg_operand"
      32                 :             :   (and (match_code "reg")
      33                 :   270094177 :        (match_test "GENERAL_REGNO_P (REGNO (op))")))
      34                 :   202695738 : 
      35                 :   449796063 : ;; True if the operand is an INDEX class register.
      36                 :             : (define_predicate "index_reg_operand"
      37                 :             :   (and (match_code "reg")
      38                 :      657028 :        (match_test "INDEX_REGNO_P (REGNO (op))")))
      39                 :      656949 : 
      40                 :      657493 : ;; True if the operand is a nonimmediate operand with GENERAL class register.
      41                 :             : (define_predicate "nonimmediate_gr_operand"
      42                 :             :   (if_then_else (match_code "reg")
      43                 :    56095102 :     (match_test "GENERAL_REGNO_P (REGNO (op))")
      44                 :    61934311 :     (match_operand 0 "nonimmediate_operand")))
      45                 :    77663490 : 
      46                 :             : ;; True if the operand is a general operand with GENERAL class register.
      47                 :             : (define_predicate "general_gr_operand"
      48                 :    90654258 :   (if_then_else (match_code "reg")
      49                 :    39257251 :     (match_test "GENERAL_REGNO_P (REGNO (op))")
      50                 :   114818282 :     (match_operand 0 "general_operand")))
      51                 :             : 
      52                 :             : ;; True if the operand is an MMX register.
      53                 :             : (define_predicate "mmx_reg_operand"
      54                 :    39224371 :   (and (match_code "reg")
      55                 :         189 :        (match_test "MMX_REGNO_P (REGNO (op))")))
      56                 :    39224371 : 
      57                 :             : ;; Match register operands, but include memory operands for
      58                 :             : ;; !TARGET_MMX_WITH_SSE.
      59                 :             : (define_predicate "register_mmxmem_operand"
      60                 :      529100 :   (ior (match_operand 0 "register_operand")
      61                 :          15 :        (and (not (match_test "TARGET_MMX_WITH_SSE"))
      62                 :      529100 :             (match_operand 0 "memory_operand"))))
      63                 :             : 
      64                 :             : ;; True if the operand is an SSE register.
      65                 :   157217416 : (define_predicate "sse_reg_operand"
      66                 :             :   (and (match_code "reg")
      67                 :   157217416 :        (match_test "SSE_REGNO_P (REGNO (op))")))
      68                 :     1719281 : 
      69                 :             : ;; Return true if op is a QImode register.
      70                 :             : (define_predicate "any_QIreg_operand"
      71                 :             :   (and (match_code "reg")
      72                 :     2327942 :        (match_test "ANY_QI_REGNO_P (REGNO (op))")))
      73                 :      800912 : 
      74                 :     2354843 : ;; Return true if op is one of QImode registers: %[abcd][hl].
      75                 :             : (define_predicate "QIreg_operand"
      76                 :             :   (and (match_code "reg")
      77                 :      842461 :        (match_test "QI_REGNO_P (REGNO (op))")))
      78                 :      660571 : 
      79                 :     1704836 : ;; Return true if op is a QImode register operand other than %[abcd][hl].
      80                 :             : (define_predicate "ext_QIreg_operand"
      81                 :     3405118 :   (and (match_test "TARGET_64BIT")
      82                 :     3405455 :        (match_code "reg")
      83                 :     1014708 :        (not (match_test "QI_REGNO_P (REGNO (op))"))))
      84                 :     3683780 : 
      85                 :             : ;; Return true if op is the AX register.
      86                 :             : (define_predicate "ax_reg_operand"
      87                 :             :   (and (match_code "reg")
      88                 :    22637691 :        (match_test "REGNO (op) == AX_REG")))
      89                 :           0 : 
      90                 :   114461229 : ;; Return true if op is the flags register.
      91                 :             : (define_special_predicate "flags_reg_operand"
      92                 :             :   (and (match_code "reg")
      93                 :   113906719 :        (match_test "REGNO (op) == FLAGS_REG")))
      94                 :             : 
      95                 :    40994582 : ;; True if the operand is a MASK register.
      96                 :             : (define_predicate "mask_reg_operand"
      97                 :    10118970 :   (and (match_code "reg")
      98                 :        3561 :        (match_test "MASK_REGNO_P (REGNO (op))")))
      99                 :    10122531 : 
     100                 :             : ;; Match a DI, SI or HImode register operand.
     101                 :             : (define_special_predicate "int248_register_operand"
     102                 :             :   (and (match_operand 0 "register_operand")
     103                 :     1013932 :        (ior (and (match_test "TARGET_64BIT")
     104                 :      293108 :                  (match_test "GET_MODE (op) == DImode"))
     105                 :      597460 :             (match_test "GET_MODE (op) == SImode")
     106                 :      374048 :             (match_test "GET_MODE (op) == HImode"))))
     107                 :             : 
     108                 :             : ;; Match a DI, SI, HI or QImode nonimmediate_operand.
     109                 :             : (define_special_predicate "int_nonimmediate_operand"
     110                 :      458109 :   (and (match_operand 0 "nonimmediate_operand")
     111                 :      613700 :        (ior (and (match_test "TARGET_64BIT")
     112                 :      458109 :                  (match_test "GET_MODE (op) == DImode"))
     113                 :      199319 :             (match_test "GET_MODE (op) == SImode")
     114                 :             :             (match_test "GET_MODE (op) == HImode")
     115                 :      458109 :             (match_test "GET_MODE (op) == QImode"))))
     116                 :             : 
     117                 :             : ;; Match register operands, but include memory operands for TARGET_SSE_MATH.
     118                 :             : (define_predicate "register_ssemem_operand"
     119                 :     2820850 :   (if_then_else
     120                 :     2820850 :     (match_test "SSE_FLOAT_MODE_P (mode) && TARGET_SSE_MATH")
     121                 :     2820850 :     (match_operand 0 "nonimmediate_operand")
     122                 :             :     (match_operand 0 "register_operand")))
     123                 :             : 
     124                 :     1077829 : ;; Match nonimmediate operands, but exclude memory operands
     125                 :             : ;; for TARGET_SSE_MATH if TARGET_MIX_SSE_I387 is not enabled.
     126                 :     1077829 : (define_predicate "nonimm_ssenomem_operand"
     127                 :             :   (if_then_else
     128                 :     1077829 :     (and (match_test "SSE_FLOAT_MODE_P (mode) && TARGET_SSE_MATH")
     129                 :     2155658 :          (not (match_test "TARGET_MIX_SSE_I387")))
     130                 :             :     (match_operand 0 "register_operand")
     131                 :             :     (match_operand 0 "nonimmediate_operand")))
     132                 :             : 
     133                 :      731512 : ;; The above predicate, suitable for x87 arithmetic operators.
     134                 :             : (define_predicate "x87nonimm_ssenomem_operand"
     135                 :      731512 :   (if_then_else
     136                 :      731512 :     (and (match_test "SSE_FLOAT_MODE_P (mode) && TARGET_SSE_MATH")
     137                 :     1463024 :          (not (match_test "TARGET_MIX_SSE_I387 && X87_ENABLE_ARITH (mode)")))
     138                 :             :     (match_operand 0 "register_operand")
     139                 :             :     (match_operand 0 "nonimmediate_operand")))
     140                 :             : 
     141                 :       34378 : ;; Match register operands, include memory operand for TARGET_SSE4_1.
     142                 :             : (define_predicate "register_sse4nonimm_operand"
     143                 :       34378 :   (if_then_else (match_test "TARGET_SSE4_1")
     144                 :             :     (match_operand 0 "nonimmediate_operand")
     145                 :             :     (match_operand 0 "register_operand")))
     146                 :             : 
     147                 :       14090 : ;; Return true if VALUE is symbol reference
     148                 :             : (define_predicate "symbol_operand"
     149                 :       14090 :   (match_code "symbol_ref"))
     150                 :       14090 : 
     151                 :             : ;; Return true if VALUE is an ENDBR opcode in immediate field.
     152                 :             : (define_predicate "ix86_endbr_immediate_operand"
     153                 :             :   (match_code "const_int")
     154                 :  6380260989 : {
     155                 :  6380260989 :   if (flag_cf_protection & CF_BRANCH)
     156                 :             :      {
     157                 :  1278347744 :        unsigned HOST_WIDE_INT imm = UINTVAL (op);
     158                 :  1278347744 :        unsigned HOST_WIDE_INT val = TARGET_64BIT ? 0xfa1e0ff3 : 0xfb1e0ff3;
     159                 :             : 
     160                 :  1278347744 :        if (imm == val)
     161                 :             :          return true;
     162                 :             : 
     163                 :             :        /* NB: Encoding is byte based.  */
     164                 :  1278347536 :        if (TARGET_64BIT)
     165                 :  2481370405 :          for (; imm >= val; imm >>= 8)
     166                 :  1390773853 :            if (imm == val)
     167                 :             :              return true;
     168                 :             :       }
     169                 :             : 
     170                 :             :   return false;
     171                 :             : })
     172                 :             : 
     173                 :             : ;; Return true if VALUE can be stored in a sign extended immediate field.
     174                 :  8267482669 : (define_predicate "x86_64_immediate_operand"
     175                 :             :   (match_code "const_int,symbol_ref,label_ref,const")
     176                 :  8267482669 : {
     177                 : 11293064010 :   if (ix86_endbr_immediate_operand (op, VOIDmode))
     178                 :             :     return false;
     179                 :             : 
     180                 :  4912802770 :   if (!TARGET_64BIT)
     181                 :  5098446387 :     return immediate_operand (op, mode);
     182                 :             : 
     183                 :  4727159404 :   switch (GET_CODE (op))
     184                 :             :     {
     185                 :  3861040355 :     case CONST_INT:
     186                 :  3861040355 :       {
     187                 :  3861040355 :         HOST_WIDE_INT val = INTVAL (op);
     188                 :  3861040355 :         return trunc_int_for_mode (val, SImode) == val;
     189                 :             :       }
     190                 :   703853323 :     case SYMBOL_REF:
     191                 :             :       /* TLS symbols are not constant.  */
     192                 :   703853323 :       if (SYMBOL_REF_TLS_MODEL (op))
     193                 :             :         return false;
     194                 :             : 
     195                 :             :       /* Load the external function address via the GOT slot.  */
     196                 :   703813132 :       if (ix86_force_load_from_GOT_p (op))
     197                 :             :         return false;
     198                 :             : 
     199                 :             :       /* For certain code models, the symbolic references are known to fit.
     200                 :             :          in CM_SMALL_PIC model we know it fits if it is local to the shared
     201                 :             :          library.  Don't count TLS SYMBOL_REFs here, since they should fit
     202                 :             :          only if inside of UNSPEC handled below.  */
     203                 :   703813030 :       return (ix86_cmodel == CM_SMALL || ix86_cmodel == CM_KERNEL
     204                 :   703813030 :               || (ix86_cmodel == CM_MEDIUM && !SYMBOL_REF_FAR_ADDR_P (op)));
     205                 :             : 
     206                 :    23804005 :     case LABEL_REF:
     207                 :             :       /* For certain code models, the code is near as well.  */
     208                 :    23804005 :       return (ix86_cmodel == CM_SMALL || ix86_cmodel == CM_MEDIUM
     209                 :             :               || ix86_cmodel == CM_KERNEL);
     210                 :             : 
     211                 :   138461721 :     case CONST:
     212                 :             :       /* We also may accept the offsetted memory references in certain
     213                 :             :          special cases.  */
     214                 :   138461721 :       if (GET_CODE (XEXP (op, 0)) == UNSPEC)
     215                 :      716417 :         switch (XINT (XEXP (op, 0), 1))
     216                 :             :           {
     217                 :             :           case UNSPEC_GOTPCREL:
     218                 :             :           case UNSPEC_DTPOFF:
     219                 :             :           case UNSPEC_GOTNTPOFF:
     220                 :             :           case UNSPEC_NTPOFF:
     221                 :             :           case UNSPEC_SECREL32:
     222                 :             :             return true;
     223                 :             :           default:
     224                 :             :             break;
     225                 :             :           }
     226                 :             : 
     227                 :   137746396 :       if (GET_CODE (XEXP (op, 0)) == PLUS)
     228                 :             :         {
     229                 :   137745304 :           rtx op1 = XEXP (XEXP (op, 0), 0);
     230                 :   137745304 :           rtx op2 = XEXP (XEXP (op, 0), 1);
     231                 :             : 
     232                 :   137745304 :           if (ix86_cmodel == CM_LARGE && GET_CODE (op1) != UNSPEC)
     233                 :             :             return false;
     234                 :   137745299 :           if (!CONST_INT_P (op2))
     235                 :             :             return false;
     236                 :             : 
     237                 :   137745299 :           HOST_WIDE_INT offset = INTVAL (op2);
     238                 :   137745299 :           if (trunc_int_for_mode (offset, SImode) != offset)
     239                 :             :             return false;
     240                 :             : 
     241                 :   137739573 :           switch (GET_CODE (op1))
     242                 :             :             {
     243                 :   137403700 :             case SYMBOL_REF:
     244                 :             :               /* TLS symbols are not constant.  */
     245                 :   137403700 :               if (SYMBOL_REF_TLS_MODEL (op1))
     246                 :             :                 return false;
     247                 :             : 
     248                 :             :               /* Load the external function address via the GOT slot.  */
     249                 :   137392146 :               if (ix86_force_load_from_GOT_p (op1))
     250                 :             :                 return false;
     251                 :             : 
     252                 :             :               /* For CM_SMALL assume that latest object is 16MB before
     253                 :             :                  end of 31bits boundary.  We may also accept pretty
     254                 :             :                  large negative constants knowing that all objects are
     255                 :             :                  in the positive half of address space.  */
     256                 :   137392140 :               if ((ix86_cmodel == CM_SMALL
     257                 :      192427 :                    || (ix86_cmodel == CM_MEDIUM
     258                 :           0 :                        && !SYMBOL_REF_FAR_ADDR_P (op1)))
     259                 :   137392140 :                   && offset < 16*1024*1024)
     260                 :             :                 return true;
     261                 :             :               /* For CM_KERNEL we know that all object resist in the
     262                 :             :                  negative half of 32bits address space.  We may not
     263                 :             :                  accept negative offsets, since they may be just off
     264                 :             :                  and we may accept pretty large positive ones.  */
     265                 :      195704 :               if (ix86_cmodel == CM_KERNEL
     266                 :           0 :                   && offset > 0)
     267                 :             :                 return true;
     268                 :             :               break;
     269                 :             : 
     270                 :        5408 :             case LABEL_REF:
     271                 :             :               /* These conditions are similar to SYMBOL_REF ones, just the
     272                 :             :                  constraints for code models differ.  */
     273                 :        5408 :               if ((ix86_cmodel == CM_SMALL || ix86_cmodel == CM_MEDIUM)
     274                 :        5408 :                   && offset < 16*1024*1024)
     275                 :             :                 return true;
     276                 :           0 :               if (ix86_cmodel == CM_KERNEL
     277                 :           0 :                   && offset > 0)
     278                 :             :                 return true;
     279                 :             :               break;
     280                 :             : 
     281                 :      330465 :             case UNSPEC:
     282                 :      330465 :               switch (XINT (op1, 1))
     283                 :             :                 {
     284                 :             :                 case UNSPEC_DTPOFF:
     285                 :             :                 case UNSPEC_NTPOFF:
     286                 :             :                   return true;
     287                 :             :                 }
     288                 :             :               break;
     289                 :             : 
     290                 :             :             default:
     291                 :             :               break;
     292                 :             :             }
     293                 :             :         }
     294                 :             :       break;
     295                 :             : 
     296                 :           0 :       default:
     297                 :           0 :         gcc_unreachable ();
     298                 :             :     }
     299                 :             : 
     300                 :             :   return false;
     301                 :             : })
     302                 :             : 
     303                 :             : ;; Return true if VALUE can be stored in the zero extended immediate field.
     304                 :  5393496119 : (define_predicate "x86_64_zext_immediate_operand"
     305                 :             :   (match_code "const_int,symbol_ref,label_ref,const")
     306                 :  5393496119 : {
     307                 :   726065391 :   if (ix86_endbr_immediate_operand (op, VOIDmode))
     308                 :  4912803021 :     return false;
     309                 :  4912803021 : 
     310                 :   726065243 :   switch (GET_CODE (op))
     311                 :  4912803021 :     {
     312                 :  5572605915 :     case CONST_INT:
     313                 :   659802894 :       return !(INTVAL (op) & ~HOST_WIDE_INT_C (0xffffffff));
     314                 :             : 
     315                 :    60039516 :     case SYMBOL_REF:
     316                 :  4912803021 :       /* TLS symbols are not constant.  */
     317                 :  4972842537 :       if (SYMBOL_REF_TLS_MODEL (op))
     318                 :   271245395 :         return false;
     319                 :             : 
     320                 :             :       /* Load the external function address via the GOT slot.  */
     321                 :    60000196 :       if (ix86_force_load_from_GOT_p (op))
     322                 :   726065391 :         return false;
     323                 :             : 
     324                 :             :      /* For certain code models, the symbolic references are known to fit.  */
     325                 :    60000095 :       return (ix86_cmodel == CM_SMALL
     326                 :    60000095 :               || (ix86_cmodel == CM_MEDIUM
     327                 :         219 :                   && !SYMBOL_REF_FAR_ADDR_P (op)));
     328                 :             : 
     329                 :     2063905 :     case LABEL_REF:
     330                 :             :       /* For certain code models, the code is near as well.  */
     331                 :     2063905 :       return ix86_cmodel == CM_SMALL || ix86_cmodel == CM_MEDIUM;
     332                 :             : 
     333                 :     4158928 :     case CONST:
     334                 :             :       /* We also may accept the offsetted memory references in certain
     335                 :             :          special cases.  */
     336                 :     4158928 :       if (GET_CODE (XEXP (op, 0)) == PLUS)
     337                 :             :         {
     338                 :     4154626 :           rtx op1 = XEXP (XEXP (op, 0), 0);
     339                 :     4154626 :           rtx op2 = XEXP (XEXP (op, 0), 1);
     340                 :             : 
     341                 :     4154626 :           if (ix86_cmodel == CM_LARGE)
     342                 :             :             return false;
     343                 :     4154624 :           if (!CONST_INT_P (op2))
     344                 :             :             return false;
     345                 :             : 
     346                 :     4154624 :           HOST_WIDE_INT offset = INTVAL (op2);
     347                 :     4154624 :           if (trunc_int_for_mode (offset, SImode) != offset)
     348                 :             :             return false;
     349                 :             : 
     350                 :     4151577 :           switch (GET_CODE (op1))
     351                 :             :             {
     352                 :     4151072 :             case SYMBOL_REF:
     353                 :             :               /* TLS symbols are not constant.  */
     354                 :     4151072 :               if (SYMBOL_REF_TLS_MODEL (op1))
     355                 :             :                 return false;
     356                 :             : 
     357                 :             :               /* Load the external function address via the GOT slot.  */
     358                 :     4140746 :               if (ix86_force_load_from_GOT_p (op1))
     359                 :             :                 return false;
     360                 :             : 
     361                 :             :               /* For small code model we may accept pretty large positive
     362                 :             :                  offsets, since one bit is available for free.  Negative
     363                 :             :                  offsets are limited by the size of NULL pointer area
     364                 :             :                  specified by the ABI.  */
     365                 :     4140740 :               if ((ix86_cmodel == CM_SMALL
     366                 :      162565 :                    || (ix86_cmodel == CM_MEDIUM
     367                 :           0 :                        && !SYMBOL_REF_FAR_ADDR_P (op1)))
     368                 :     4140740 :                   && offset > -0x10000)
     369                 :             :                 return true;
     370                 :             :               /* ??? For the kernel, we may accept adjustment of
     371                 :             :                  -0x10000000, since we know that it will just convert
     372                 :             :                  negative address space to positive, but perhaps this
     373                 :             :                  is not worthwhile.  */
     374                 :             :               break;
     375                 :             : 
     376                 :           0 :             case LABEL_REF:
     377                 :             :               /* These conditions are similar to SYMBOL_REF ones, just the
     378                 :             :                  constraints for code models differ.  */
     379                 :           0 :               if ((ix86_cmodel == CM_SMALL || ix86_cmodel == CM_MEDIUM)
     380                 :           0 :                   && offset > -0x10000)
     381                 :             :                 return true;
     382                 :             :               break;
     383                 :             : 
     384                 :             :             default:
     385                 :             :               return false;
     386                 :             :             }
     387                 :             :         }
     388                 :             :       break;
     389                 :             : 
     390                 :           0 :     default:
     391                 :           0 :       gcc_unreachable ();
     392                 :             :     }
     393                 :             :   return false;
     394                 :             : })
     395                 :             : 
     396                 :             : ;; Return true if VALUE is a constant integer whose negation satisfies
     397                 :   973903519 : ;; x86_64_immediate_operand.
     398                 :             : (define_predicate "x86_64_neg_const_int_operand"
     399                 :   973903519 :   (match_code "const_int")
     400                 :             : {
     401                 :   726101825 :   HOST_WIDE_INT val = -UINTVAL (op);
     402                 :       16307 :   if (mode == DImode && trunc_int_for_mode (val, SImode) != val)
     403                 :   726065391 :     return false;
     404                 :       35737 :   if (flag_cf_protection & CF_BRANCH)
     405                 :   726065391 :     {
     406                 :       17491 :       unsigned HOST_WIDE_INT endbr = TARGET_64BIT ? 0xfa1e0ff3 : 0xfb1e0ff3;
     407                 :       17491 :       if ((val & HOST_WIDE_INT_C (0xffffffff)) == endbr)
     408                 :             :         return false;
     409                 :   726065391 :     }
     410                 :   726065391 :   return true;
     411                 :    56895689 : })
     412                 :             : 
     413                 :             : ;; Return true if VALUE is a constant integer whose low and high words satisfy
     414                 :       49982 : ;; x86_64_immediate_operand.
     415                 :       36434 : (define_predicate "x86_64_hilo_int_operand"
     416                 :       86416 :   (match_code "const_int,const_wide_int")
     417                 :       36434 : {
     418                 :    43845297 :   switch (GET_CODE (op))
     419                 :             :     {
     420                 :    43795607 :     case CONST_INT:
     421                 :    43845297 :       return x86_64_immediate_operand (op, mode);
     422                 :             : 
     423                 :       49690 :     case CONST_WIDE_INT:
     424                 :       49690 :       gcc_assert (CONST_WIDE_INT_NUNITS (op) == 2);
     425                 :       49690 :       return (x86_64_immediate_operand (GEN_INT (CONST_WIDE_INT_ELT (op, 0)),
     426                 :             :                                         DImode)
     427                 :       49690 :               && x86_64_immediate_operand (GEN_INT (CONST_WIDE_INT_ELT (op,
     428                 :             :                                                                         1)),
     429                 :             :                                            DImode));
     430                 :             : 
     431                 :           0 :     default:
     432                 :           0 :       gcc_unreachable ();
     433                 :             :     }
     434                 :             : })
     435                 :             : 
     436                 :             : ;; Return true if VALUE is a constant integer whose value is
     437                 :    44558329 : ;; x86_64_immediate_operand value zero extended from word mode to mode.
     438                 :             : (define_predicate "x86_64_dwzext_immediate_operand"
     439                 :    44558329 :   (match_code "const_int,const_wide_int")
     440                 :             : {
     441                 :        3742 :   if (ix86_endbr_immediate_operand (op, VOIDmode))
     442                 :    43845297 :     return false;
     443                 :    43845297 : 
     444                 :        3742 :   switch (GET_CODE (op))
     445                 :             :     {
     446                 :        1624 :     case CONST_INT:
     447                 :        1624 :       if (!TARGET_64BIT)
     448                 :    43845297 :         return UINTVAL (op) <= HOST_WIDE_INT_UC (0xffffffff);
     449                 :        1624 :       return UINTVAL (op) <= HOST_WIDE_INT_UC (0x7fffffff);
     450                 :             : 
     451                 :        2118 :     case CONST_WIDE_INT:
     452                 :        5860 :       if (!TARGET_64BIT)
     453                 :             :         return false;
     454                 :        2118 :       return (CONST_WIDE_INT_NUNITS (op) == 2
     455                 :        2118 :               && CONST_WIDE_INT_ELT (op, 1) == 0
     456                 :        4236 :               && (trunc_int_for_mode (CONST_WIDE_INT_ELT (op, 0), SImode)
     457                 :        2118 :                   == (HOST_WIDE_INT) CONST_WIDE_INT_ELT (op, 0)));
     458                 :             : 
     459                 :           0 :     default:
     460                 :           0 :       gcc_unreachable ();
     461                 :             :     }
     462                 :             : })
     463                 :             : 
     464                 :             : ;; Return true if size of VALUE can be stored in a sign
     465                 :        3742 : ;; extended immediate field.
     466                 :             : (define_predicate "x86_64_immediate_size_operand"
     467                 :        3742 :   (and (match_code "symbol_ref")
     468                 :           0 :        (ior (not (match_test "TARGET_64BIT"))
     469                 :           0 :             (match_test "ix86_cmodel == CM_SMALL")
     470                 :           0 :             (match_test "ix86_cmodel == CM_KERNEL"))))
     471                 :           0 : 
     472                 :             : ;; Return true if OP is general operand representable on x86_64.
     473                 :             : (define_predicate "x86_64_general_operand"
     474                 :   147700924 :   (if_then_else (match_test "TARGET_64BIT")
     475                 :   147704666 :     (ior (match_operand 0 "nonimmediate_operand")
     476                 :        3742 :          (match_operand 0 "x86_64_immediate_operand"))
     477                 :   147700924 :     (match_operand 0 "general_operand")))
     478                 :    61637019 : 
     479                 :             : ;; Return true if OP's both words are general operands representable
     480                 :    61637019 : ;; on x86_64.
     481                 :             : (define_predicate "x86_64_hilo_general_operand"
     482                 :    61637019 :   (if_then_else (match_test "TARGET_64BIT")
     483                 :             :     (ior (match_operand 0 "nonimmediate_operand")
     484                 :             :          (match_operand 0 "x86_64_hilo_int_operand"))
     485                 :             :     (match_operand 0 "general_operand")))
     486                 :      334620 : 
     487                 :             : ;; Return true if OP is non-VOIDmode general operand representable
     488                 :      334620 : ;; on x86_64.  This predicate is used in sign-extending conversion
     489                 :             : ;; operations that require non-VOIDmode immediate operands.
     490                 :             : (define_predicate "x86_64_sext_operand"
     491                 :      334620 :   (and (match_test "GET_MODE (op) != VOIDmode")
     492                 :             :        (match_operand 0 "x86_64_general_operand")))
     493                 :             : 
     494                 :             : ;; Return true if OP is non-VOIDmode general operand.  This predicate
     495                 :       11471 : ;; is used in sign-extending conversion operations that require
     496                 :             : ;; non-VOIDmode immediate operands.
     497                 :       11471 : (define_predicate "sext_operand"
     498                 :       11471 :   (and (match_test "GET_MODE (op) != VOIDmode")
     499                 :             :        (match_operand 0 "general_operand")))
     500                 :             : 
     501                 :             : ;; Return true if OP is representable on x86_64 as zero-extended operand.
     502                 :     3834207 : ;; This predicate is used in zero-extending conversion operations that
     503                 :             : ;; require non-VOIDmode immediate operands.
     504                 :     3834207 : (define_predicate "x86_64_zext_operand"
     505                 :     3834207 :   (if_then_else (match_test "TARGET_64BIT")
     506                 :             :     (ior (match_operand 0 "nonimmediate_operand")
     507                 :             :          (and (match_operand 0 "x86_64_zext_immediate_operand")
     508                 :      111624 :               (match_test "GET_MODE (op) != VOIDmode")))
     509                 :             :     (match_operand 0 "nonimmediate_operand")))
     510                 :             : 
     511                 :             : ;; Return true if OP is general operand representable on x86_64
     512                 :     2363904 : ;; as either sign extended or zero extended constant.
     513                 :             : (define_predicate "x86_64_szext_general_operand"
     514                 :     2363904 :   (if_then_else (match_test "TARGET_64BIT")
     515                 :             :     (ior (match_operand 0 "nonimmediate_operand")
     516                 :             :          (match_operand 0 "x86_64_immediate_operand")
     517                 :             :          (match_operand 0 "x86_64_zext_immediate_operand"))
     518                 :    29924226 :     (match_operand 0 "general_operand")))
     519                 :             : 
     520                 :    29924226 : ;; Return true if OP is nonmemory operand representable on x86_64.
     521                 :             : (define_predicate "x86_64_nonmemory_operand"
     522                 :    29924226 :   (if_then_else (match_test "TARGET_64BIT")
     523                 :             :     (ior (match_operand 0 "register_operand")
     524                 :             :          (match_operand 0 "x86_64_immediate_operand"))
     525                 :             :     (match_operand 0 "nonmemory_operand")))
     526                 :      282604 : 
     527                 :             : ;; Return true if OP is nonmemory operand representable on x86_64.
     528                 :      282604 : (define_predicate "x86_64_szext_nonmemory_operand"
     529                 :      282604 :   (if_then_else (match_test "TARGET_64BIT")
     530                 :             :     (ior (match_operand 0 "register_operand")
     531                 :             :          (match_operand 0 "x86_64_immediate_operand")
     532                 :             :          (match_operand 0 "x86_64_zext_immediate_operand"))
     533                 :   171638073 :     (match_operand 0 "nonmemory_operand")))
     534                 :             : 
     535                 :             : ;; Return true when operand is PIC expression that can be computed by lea
     536                 :             : ;; operation.
     537                 :             : (define_predicate "pic_32bit_operand"
     538                 :             :   (match_code "const,symbol_ref,label_ref")
     539                 :             : {
     540                 :   171638073 :   if (!flag_pic)
     541                 :             :     return false;
     542                 :             : 
     543                 :             :   /* Rule out relocations that translate into 64bit constants.  */
     544                 :     7868463 :   if (TARGET_64BIT && GET_CODE (op) == CONST)
     545                 :             :     {
     546                 :      145457 :       op = XEXP (op, 0);
     547                 :      145457 :       if (GET_CODE (op) == PLUS && CONST_INT_P (XEXP (op, 1)))
     548                 :      144326 :         op = XEXP (op, 0);
     549                 :      145457 :       if (GET_CODE (op) == UNSPEC
     550                 :        1131 :           && (XINT (op, 1) == UNSPEC_GOTOFF
     551                 :        1131 :               || XINT (op, 1) == UNSPEC_GOT))
     552                 :             :         return false;
     553                 :             :     }
     554                 :             : 
     555                 :     7867791 :   return symbolic_operand (op, mode);
     556                 :             : })
     557                 :             : 
     558                 :             : ;; Return true if OP is nonmemory operand acceptable by movabs patterns.
     559                 :  1251043875 : (define_predicate "x86_64_movabs_operand"
     560                 :             :   (and (match_operand 0 "nonmemory_operand")
     561                 :  1251043875 :        (not (match_operand 0 "pic_32bit_operand"))))
     562                 :             : 
     563                 :   171638073 : ;; Return true if OP is either a symbol reference or a sum of a symbol
     564                 :   171638073 : ;; reference and a constant.
     565                 :   171638073 : (define_predicate "symbolic_operand"
     566                 :   171638073 :   (match_code "symbol_ref,label_ref,const")
     567                 :             : {
     568                 :     8222057 :   switch (GET_CODE (op))
     569                 :             :     {
     570                 :   171638073 :     case SYMBOL_REF:
     571                 :   171638073 :     case LABEL_REF:
     572                 :      174312 :       return true;
     573                 :             : 
     574                 :       32688 :     case CONST:
     575                 :       32688 :       op = XEXP (op, 0);
     576                 :   486881460 :       if (SYMBOL_REF_P (op)
     577                 :       32688 :           || LABEL_REF_P (op)
     578                 :   486881460 :           || (GET_CODE (op) == UNSPEC
     579                 :        7950 :               && (XINT (op, 1) == UNSPEC_GOT
     580                 :        7950 :                   || XINT (op, 1) == UNSPEC_GOTOFF
     581                 :         172 :                   || XINT (op, 1) == UNSPEC_PCREL
     582                 :     8222229 :                   || XINT (op, 1) == UNSPEC_GOTPCREL)))
     583                 :             :         return true;
     584                 :       24882 :       if (GET_CODE (op) != PLUS
     585                 :       24738 :           || !CONST_INT_P (XEXP (op, 1)))
     586                 :             :         return false;
     587                 :             : 
     588                 :       24738 :       op = XEXP (op, 0);
     589                 :       24738 :       if (SYMBOL_REF_P (op)
     590                 :       24738 :           || LABEL_REF_P (op))
     591                 :             :         return true;
     592                 :             :       /* Only @GOTOFF gets offsets.  */
     593                 :        2112 :       if (GET_CODE (op) != UNSPEC
     594                 :        2112 :           || XINT (op, 1) != UNSPEC_GOTOFF)
     595                 :             :         return false;
     596                 :             : 
     597                 :        2112 :       op = XVECEXP (op, 0, 0);
     598                 :        2112 :       if (SYMBOL_REF_P (op)
     599                 :        2112 :           || LABEL_REF_P (op))
     600                 :        2112 :         return true;
     601                 :             :       return false;
     602                 :             : 
     603                 :           0 :     default:
     604                 :           0 :       gcc_unreachable ();
     605                 :             :     }
     606                 :             : })
     607                 :             : 
     608                 :             : ;; Return true if OP is a symbolic operand that resolves locally.
     609                 :    15481617 : (define_predicate "local_symbolic_operand"
     610                 :             :   (match_code "const,label_ref,symbol_ref")
     611                 :    15481617 : {
     612                 :     2875356 :   if (GET_CODE (op) == CONST
     613                 :       16087 :       && GET_CODE (XEXP (op, 0)) == PLUS
     614                 :        8349 :       && CONST_INT_P (XEXP (XEXP (op, 0), 1)))
     615                 :        8349 :     op = XEXP (XEXP (op, 0), 0);
     616                 :     8222057 : 
     617                 :     2875356 :   if (LABEL_REF_P (op))
     618                 :             :     return true;
     619                 :             : 
     620                 :     2835522 :   if (!SYMBOL_REF_P (op))
     621                 :     8222057 :     return false;
     622                 :      528893 : 
     623                 :     2825672 :   if (SYMBOL_REF_TLS_MODEL (op))
     624                 :             :     return false;
     625                 :             : 
     626                 :     2875356 :   /* Dll-imported symbols are always external.  */
     627                 :     2825672 :   if (TARGET_DLLIMPORT_DECL_ATTRIBUTES && SYMBOL_REF_DLLIMPORT_P (op))
     628                 :             :     return false;
     629                 :     2825672 :   if (SYMBOL_REF_LOCAL_P (op))
     630                 :             :     return true;
     631                 :             : 
     632                 :             :   /* There is, however, a not insubstantial body of code in the rest of
     633                 :             :      the compiler that assumes it can just stick the results of
     634                 :             :      ASM_GENERATE_INTERNAL_LABEL in a symbol_ref and have done.  */
     635                 :             :   /* ??? This is a hack.  Should update the body of the compiler to
     636                 :             :      always create a DECL an invoke targetm.encode_section_info.  */
     637                 :       92095 :   if (strncmp (XSTR (op, 0), internal_label_prefix,
     638                 :             :                internal_label_prefix_len) == 0)
     639                 :           0 :     return true;
     640                 :             : 
     641                 :             :   return false;
     642                 :             : })
     643                 :             : 
     644                 :             : (define_predicate "local_func_symbolic_operand"
     645                 :     2883716 :   (match_operand 0 "local_symbolic_operand")
     646                 :             : {
     647                 :     2883716 :   if (GET_CODE (op) == CONST
     648                 :           0 :       && GET_CODE (XEXP (op, 0)) == PLUS
     649                 :           0 :       && CONST_INT_P (XEXP (XEXP (op, 0), 1)))
     650                 :           0 :     op = XEXP (XEXP (op, 0), 0);
     651                 :     2875356 : 
     652                 :     2875368 :   if (SYMBOL_REF_P (op)
     653                 :          12 :       && !SYMBOL_REF_FUNCTION_P (op))
     654                 :           0 :     return false;
     655                 :             : 
     656                 :     2875356 :   return true;
     657                 :     2875356 : })
     658                 :     2773403 : 
     659                 :             : ;; Test for a legitimate @GOTOFF operand.
     660                 :          30 : ;;
     661                 :             : ;; VxWorks does not impose a fixed gap between segments; the run-time
     662                 :          42 : ;; gap can be different from the object-file gap.  We therefore can't
     663                 :          12 : ;; use @GOTOFF unless we are absolutely sure that the symbol is in the
     664                 :             : ;; same segment as the GOT.  Unfortunately, the flexibility of linker
     665                 :             : ;; scripts means that we can't be sure of that in general, so assume
     666                 :             : ;; @GOTOFF is not valid on VxWorks, except with the large code model.
     667                 :     2883653 : ;; The comments above seem to apply only to VxWorks releases before 7.
     668                 :             : (define_predicate "gotoff_operand"
     669                 :     2883653 :   (and (ior (not (match_test "TARGET_VXWORKS_VAROFF"))
     670                 :             :             (match_test "ix86_cmodel == CM_LARGE")
     671                 :     2883653 :             (match_test "ix86_cmodel == CM_LARGE_PIC"))
     672                 :             :        (match_operand 0 "local_symbolic_operand")))
     673                 :             : 
     674                 :             : ;; Test for various thread-local symbols.
     675                 :       30219 : (define_special_predicate "tls_symbolic_operand"
     676                 :             :   (and (match_code "symbol_ref")
     677                 :       30219 :        (match_test "SYMBOL_REF_TLS_MODEL (op)")))
     678                 :             : 
     679                 :             : (define_special_predicate "tls_modbase_operand"
     680                 :             :   (and (match_code "symbol_ref")
     681                 :          63 :        (match_test "op == ix86_tls_module_base ()")))
     682                 :             : 
     683                 :         126 : (define_predicate "tls_address_pattern"
     684                 :             :   (and (match_code "set,parallel,unspec,unspec_volatile")
     685                 :   234942761 :        (match_test "ix86_tls_address_pattern_p (op)")))
     686                 :           0 : 
     687                 :   234942761 : ;; Test for a pc-relative call operand
     688                 :             : (define_predicate "constant_call_address_operand"
     689                 :   234942761 :   (match_code "symbol_ref")
     690                 :   367107673 : {
     691                 :   132164703 :   if (ix86_cmodel == CM_LARGE || ix86_cmodel == CM_LARGE_PIC
     692                 :   132164697 :       || flag_force_indirect_call
     693                 :   264328105 :       || (TARGET_INDIRECT_BRANCH_REGISTER
     694                 :        1022 :           && ix86_nopic_noplt_attribute_p (op)))
     695                 :        1743 :     return false;
     696                 :             :   if (TARGET_DLLIMPORT_DECL_ATTRIBUTES && SYMBOL_REF_DLLIMPORT_P (op))
     697                 :   234942761 :     return false;
     698                 :             :   return true;
     699                 :             : })
     700                 :             : 
     701                 :             : ;; True for any non-virtual and non-eliminable register.  Used in places where
     702                 :   138179158 : ;; instantiation of such a register may cause the pattern to not be recognized.
     703                 :             : (define_predicate "register_no_elim_operand"
     704                 :   132164912 :   (match_operand 0 "register_operand")
     705                 :   270342327 : {
     706                 :    96190088 :   if (SUBREG_P (op))
     707                 :       64144 :     op = SUBREG_REG (op);
     708                 :             : 
     709                 :             :   /* Before reload, we can allow (SUBREG (MEM...)) as a register operand
     710                 :    20348743 :      because it is guaranteed to be reloaded into one.  */
     711                 :    20348743 :   if (MEM_P (op))
     712                 :             :     return true;
     713                 :             : 
     714                 :    20348743 :   return !(op == arg_pointer_rtx
     715                 :    20321234 :            || op == frame_pointer_rtx
     716                 :    20320718 :            || VIRTUAL_REGISTER_P (op));
     717                 :             : })
     718                 :             : 
     719                 :             : ;; Similarly, but include the stack pointer.  This is used
     720                 :    25002381 : ;; to prevent esp from being used as an index reg.
     721                 :             : (define_predicate "register_no_SP_operand"
     722                 :    25002381 :   (match_operand 0 "register_operand")
     723                 :    20348743 : {
     724                 :      333734 :   if (SUBREG_P (op))
     725                 :        7959 :     op = SUBREG_REG (op);
     726                 :             : 
     727                 :      333734 :   /* Before reload, we can allow (SUBREG (MEM...)) as a register operand
     728                 :             :      because it is guaranteed to be reloaded into one.  */
     729                 :      333734 :   if (MEM_P (op))
     730                 :             :     return true;
     731                 :             : 
     732                 :      333734 :   return !(op == arg_pointer_rtx
     733                 :      333734 :            || op == frame_pointer_rtx
     734                 :      333734 :            || op == stack_pointer_rtx
     735                 :      333734 :            || VIRTUAL_REGISTER_P (op));
     736                 :             : })
     737                 :             : 
     738                 :             : ;; P6 processors will jump to the address after the decrement when %esp
     739                 :      369968 : ;; is used as a call operand, so they will execute return address as a code.
     740                 :             : ;; See Pentium Pro errata 70, Pentium 2 errata A33 and Pentium 3 errata E17.
     741                 :      369968 : 
     742                 :      333734 : (define_predicate "call_register_operand"
     743                 :     1957269 :   (if_then_else (match_test "TARGET_64BIT")
     744                 :             :     (match_operand 0 "register_operand")
     745                 :             :     (match_operand 0 "register_no_SP_operand")))
     746                 :     1957269 : 
     747                 :    18462042 : ;; Return false if this is any eliminable register.  Otherwise general_operand.
     748                 :     1957269 : (define_predicate "general_no_elim_operand"
     749                 :    18462042 :   (if_then_else (match_code "reg,subreg")
     750                 :             :     (match_operand 0 "register_no_elim_operand")
     751                 :             :     (match_operand 0 "general_operand")))
     752                 :             : 
     753                 :    12131483 : ;; Return false if this is any eliminable register.  Otherwise
     754                 :             : ;; register_operand or a constant.
     755                 :    12131483 : (define_predicate "nonmemory_no_elim_operand"
     756                 :             :   (ior (match_operand 0 "register_no_elim_operand")
     757                 :             :        (match_operand 0 "immediate_operand")))
     758                 :             : 
     759                 :      759309 : ;; Test for a valid operand for indirect branch.
     760                 :             : (define_predicate "indirect_branch_operand"
     761                 :      759309 :   (ior (match_operand 0 "register_operand")
     762                 :      691214 :        (and (not (match_test "TARGET_INDIRECT_BRANCH_REGISTER"))
     763                 :      691187 :             (not (match_test "TARGET_X32"))
     764                 :             :             (match_operand 0 "memory_operand"))))
     765                 :             : 
     766                 :             : ;; Return true if OP is a memory operands that can be used in sibcalls.
     767                 :       24783 : ;; Since sibcall never returns, we can only use call-clobbered register
     768                 :             : ;; as GOT base.  Allow GOT slot here only with pseudo register as GOT
     769                 :             : ;; base.  Properly handle sibcall over GOT slot with *sibcall_GOT_32
     770                 :             : ;; and *sibcall_value_GOT_32 patterns.
     771                 :             : (define_predicate "sibcall_memory_operand"
     772                 :             :   (match_operand 0 "memory_operand")
     773                 :             : {
     774                 :       24783 :   op = XEXP (op, 0);
     775                 :       24783 :   if (CONSTANT_P (op))
     776                 :             :     return true;
     777                 :       11600 :   if (GET_CODE (op) == PLUS && REG_P (XEXP (op, 0)))
     778                 :             :     {
     779                 :       10270 :       int regno = REGNO (XEXP (op, 0));
     780                 :       10270 :       if (!HARD_REGISTER_NUM_P (regno) || call_used_or_fixed_reg_p (regno))
     781                 :             :         {
     782                 :        8330 :           op = XEXP (op, 1);
     783                 :        8330 :           if (GOT32_symbol_operand (op, VOIDmode))
     784                 :             :             return true;
     785                 :             :         }
     786                 :             :     }
     787                 :             :   return false;
     788                 :             : })
     789                 :             : 
     790                 :             : ;; Return true if OP is a GOT memory operand.
     791                 :     1412943 : (define_predicate "GOT_memory_operand"
     792                 :             :   (and (match_operand 0 "memory_operand")
     793                 :     1437726 :        (match_code "const" "0")
     794                 :       24783 :        (match_code "unspec" "00")
     795                 :         563 :        (match_test "XINT (XEXP (XEXP (op, 0), 0), 1) == UNSPEC_GOTPCREL")))
     796                 :             : 
     797                 :             : ;; Test for a valid operand for a call instruction.
     798                 :         461 : ;; Allow constant call address operands in Pmode only.
     799                 :    48024128 : (define_special_predicate "call_insn_operand"
     800                 :         461 :   (ior (match_test "constant_call_address_operand
     801                 :    54233394 :                      (op, mode == VOIDmode ? mode : Pmode)")
     802                 :             :        (match_operand 0 "call_register_operand")
     803                 :      931488 :        (match_test "satisfies_constraint_Bw (op)")))
     804                 :             : 
     805                 :             : ;; Similarly, but for tail calls, in which we cannot allow memory references.
     806                 :             : (define_special_predicate "sibcall_insn_operand"
     807                 :     1261804 :   (ior (match_test "constant_call_address_operand
     808                 :     1470939 :                      (op, mode == VOIDmode ? mode : Pmode)")
     809                 :     1261804 :        (match_operand 0 "register_no_elim_operand")
     810                 :      173101 :        (match_test "satisfies_constraint_Bs (op)")))
     811                 :             : 
     812                 :             : ;; Return true if OP is a 32-bit GOT symbol operand.
     813                 :             : (define_predicate "GOT32_symbol_operand"
     814                 :       10246 :   (and (match_code "const")
     815                 :             :        (match_code "unspec" "0")
     816                 :       10246 :        (match_test "XINT (XEXP (op, 0), 1) == UNSPEC_GOT")))
     817                 :           0 : 
     818                 :             : ;; Match exactly zero.
     819                 :             : (define_predicate "const0_operand"
     820                 :             :   (match_code "const_int,const_double,const_vector")
     821                 :   131768022 : {
     822                 :   131768022 :   if (mode == VOIDmode)
     823                 :    20885832 :     mode = GET_MODE (op);
     824                 :   131768022 :   return op == CONST0_RTX (mode);
     825                 :             : })
     826                 :             : 
     827                 :             : ;; Match one or a vector with all elements equal to one.
     828                 :   952835279 : (define_predicate "const1_operand"
     829                 :             :   (match_code "const_int,const_double,const_vector")
     830                 :   952835279 : {
     831                 :    12827915 :   if (mode == VOIDmode)
     832                 :    12825081 :     mode = GET_MODE (op);
     833                 :   144595937 :   return op == CONST1_RTX (mode);
     834                 :   131768022 : })
     835                 :   131768022 : 
     836                 :             : ;; Match exactly -1.
     837                 :    13810846 : (define_predicate "constm1_operand"
     838                 :             :   (and (match_code "const_int")
     839                 :   145578868 :        (match_test "op == constm1_rtx")))
     840                 :   131768022 : 
     841                 :    59878050 : ;; Match 0 or -1.
     842                 :    12827915 : (define_predicate "const0_or_m1_operand"
     843                 :    12830786 :   (ior (match_operand 0 "const0_operand")
     844                 :    12827915 :        (match_operand 0 "constm1_operand")))
     845                 :        2871 : 
     846                 :             : ;; Match exactly eight.
     847                 :             : (define_predicate "const8_operand"
     848                 :    12827915 :   (and (match_code "const_int")
     849                 :    12827915 :        (match_test "INTVAL (op) == 8")))
     850                 :        2807 : 
     851                 :      216863 : ;; Match exactly 128.
     852                 :             : (define_predicate "const128_operand"
     853                 :    25943829 :   (and (match_code "const_int")
     854                 :   237879326 :        (match_test "INTVAL (op) == 128")))
     855                 :    25943829 : 
     856                 :   190059351 : ;; Match exactly 0x0FFFFFFFF in anddi as a zero-extension operation
     857                 :             : (define_predicate "const_32bit_mask"
     858                 :     2710836 :   (and (match_code "const_int")
     859                 :     1815096 :        (match_test "trunc_int_for_mode (INTVAL (op), DImode)
     860                 :     4525932 :                     == HOST_WIDE_INT_C (0xffffffff)")))
     861                 :             : 
     862                 :             : ;; Match 2, 4, or 8.  Used for leal multiplicands.
     863                 :             : (define_predicate "const248_operand"
     864                 :      295004 :   (match_code "const_int")
     865                 :             : {
     866                 :      295004 :   HOST_WIDE_INT i = INTVAL (op);
     867                 :      295004 :   return i == 2 || i == 4 || i == 8;
     868                 :             : })
     869                 :             : 
     870                 :             : ;; Match 1, 2, or 3.  Used for lea shift amounts.
     871                 :      984785 : (define_predicate "const123_operand"
     872                 :             :   (match_code "const_int")
     873                 :      984785 : {
     874                 :     1202567 :   HOST_WIDE_INT i = INTVAL (op);
     875                 :      217782 :   return i == 1 || i == 2 || i == 3;
     876                 :             : })
     877                 :             : 
     878                 :      217782 : ;; Match 2, 3, 6, or 7
     879                 :      226241 : (define_predicate "const2367_operand"
     880                 :             :   (match_code "const_int")
     881                 :      226241 : {
     882                 :      217782 :   HOST_WIDE_INT i = INTVAL (op);
     883                 :           0 :   return i == 2 || i == 3 || i == 6 || i == 7;
     884                 :             : })
     885                 :             : 
     886                 :           0 : ;; Match 1, 2, 4, or 8
     887                 :           0 : (define_predicate "const1248_operand"
     888                 :             :   (match_code "const_int")
     889                 :           0 : {
     890                 :      112055 :   HOST_WIDE_INT i = INTVAL (op);
     891                 :      112055 :   return i == 1 || i == 2 || i == 4 || i == 8;
     892                 :             : })
     893                 :             : 
     894                 :      112055 : ;; Match 3, 5, or 9.  Used for leal multiplicands.
     895                 :      488693 : (define_predicate "const359_operand"
     896                 :             :   (match_code "const_int")
     897                 :      488693 : {
     898                 :      537380 :   HOST_WIDE_INT i = INTVAL (op);
     899                 :       48687 :   return i == 3 || i == 5 || i == 9;
     900                 :             : })
     901                 :             : 
     902                 :       48687 : ;; Match 4 or 8 to 11.  Used for embeded rounding.
     903                 :      201378 : (define_predicate "const_4_or_8_to_11_operand"
     904                 :             :   (match_code "const_int")
     905                 :      201378 : {
     906                 :      281115 :   HOST_WIDE_INT i = INTVAL (op);
     907                 :       79737 :   return i == 4 || (i >= 8 && i <= 11);
     908                 :             : })
     909                 :             : 
     910                 :       79737 : ;; Match 4 or 8. Used for SAE.
     911                 :       79739 : (define_predicate "const48_operand"
     912                 :             :   (match_code "const_int")
     913                 :       79739 : {
     914                 :       79737 :   HOST_WIDE_INT i = INTVAL (op);
     915                 :       63176 :   return i == 4 || i == 8;
     916                 :             : })
     917                 :             : 
     918                 :       63176 : ;; Match 0 or 1.
     919                 :       63176 : (define_predicate "const_0_to_1_operand"
     920                 :             :   (and (match_code "const_int")
     921                 :       63176 :        (ior (match_test "op == const0_rtx")
     922                 :      289300 :             (match_test "op == const1_rtx"))))
     923                 :             : 
     924                 :             : ;; Match 0 to 3.
     925                 :             : (define_predicate "const_0_to_3_operand"
     926                 :     7133303 :   (and (match_code "const_int")
     927                 :    13478015 :        (match_test "IN_RANGE (INTVAL (op), 0, 3)")))
     928                 :     7133303 : 
     929                 :             : ;; Match 0 to 4.
     930                 :             : (define_predicate "const_0_to_4_operand"
     931                 :           0 :   (and (match_code "const_int")
     932                 :           0 :        (match_test "IN_RANGE (INTVAL (op), 0, 4)")))
     933                 :           0 : 
     934                 :             : ;; Match 0 to 5.
     935                 :             : (define_predicate "const_0_to_5_operand"
     936                 :           0 :   (and (match_code "const_int")
     937                 :           0 :        (match_test "IN_RANGE (INTVAL (op), 0, 5)")))
     938                 :           0 : 
     939                 :             : ;; Match 0 to 7.
     940                 :             : (define_predicate "const_0_to_7_operand"
     941                 :      685061 :   (and (match_code "const_int")
     942                 :     1370108 :        (match_test "IN_RANGE (INTVAL (op), 0, 7)")))
     943                 :      685061 : 
     944                 :             : ;; Match 0 to 15.
     945                 :             : (define_predicate "const_0_to_15_operand"
     946                 :      114851 :   (and (match_code "const_int")
     947                 :      229686 :        (match_test "IN_RANGE (INTVAL (op), 0, 15)")))
     948                 :      114851 : 
     949                 :             : ;; Match 0 to 31.
     950                 :             : (define_predicate "const_0_to_31_operand"
     951                 :       62372 :   (and (match_code "const_int")
     952                 :      124176 :        (match_test "IN_RANGE (INTVAL (op), 0, 31)")))
     953                 :       62372 : 
     954                 :             : ;; Match 0 to 63.
     955                 :             : (define_predicate "const_0_to_63_operand"
     956                 :       29513 :   (and (match_code "const_int")
     957                 :       57263 :        (match_test "IN_RANGE (INTVAL (op), 0, 63)")))
     958                 :       29513 : 
     959                 :             : ;; Match 0 to 127.
     960                 :             : (define_predicate "const_0_to_127_operand"
     961                 :        9806 :   (and (match_code "const_int")
     962                 :       18636 :        (match_test "IN_RANGE (INTVAL (op), 0, 127)")))
     963                 :        9806 : 
     964                 :             : ;; Match 0 to 255.
     965                 :             : (define_predicate "const_0_to_255_operand"
     966                 :     8801940 :   (and (match_code "const_int")
     967                 :    17568957 :        (match_test "IN_RANGE (INTVAL (op), 0, 255)")))
     968                 :     8801940 : 
     969                 :             : ;; Match (0 to 255) * 8
     970                 :             : (define_predicate "const_0_to_255_mul_8_operand"
     971                 :      422948 :   (match_code "const_int")
     972                 :             : {
     973                 :      422948 :   unsigned HOST_WIDE_INT val = INTVAL (op);
     974                 :      422948 :   return val <= 255*8 && val % 8 == 0;
     975                 :             : })
     976                 :             : 
     977                 :             : ;; Match 1 to 255 except multiples of 8
     978                 :      422950 : (define_predicate "const_0_to_255_not_mul_8_operand"
     979                 :             :   (match_code "const_int")
     980                 :      422950 : {
     981                 :     1234300 :   unsigned HOST_WIDE_INT val = INTVAL (op);
     982                 :      811336 :   return val <= 255 && val % 8 != 0;
     983                 :             : })
     984                 :             : 
     985                 :      811350 : ;; Return true if OP is CONST_INT >= 1 and <= 31 (a valid operand
     986                 :      811350 : ;; for shift & compare patterns, as shifting by 0 does not change flags).
     987                 :             : (define_predicate "const_1_to_31_operand"
     988                 :      811350 :   (and (match_code "const_int")
     989                 :      857393 :        (match_test "IN_RANGE (INTVAL (op), 1, 31)")))
     990                 :             : 
     991                 :             : ;; Return true if OP is CONST_INT >= 1 and <= 63 (a valid operand
     992                 :             : ;; for 64bit shift & compare patterns, as shifting by 0 does not change flags).
     993                 :       94695 : (define_predicate "const_1_to_63_operand"
     994                 :             :   (and (match_code "const_int")
     995                 :       94695 :        (match_test "IN_RANGE (INTVAL (op), 1, 63)")))
     996                 :             : 
     997                 :             : ;; Match 2 or 3.
     998                 :             : (define_predicate "const_2_to_3_operand"
     999                 :       72350 :   (and (match_code "const_int")
    1000                 :      144700 :        (match_test "IN_RANGE (INTVAL (op), 2, 3)")))
    1001                 :       72350 : 
    1002                 :             : ;; Match 4 to 5.
    1003                 :             : (define_predicate "const_4_to_5_operand"
    1004                 :        5803 :   (and (match_code "const_int")
    1005                 :       11606 :        (match_test "IN_RANGE (INTVAL (op), 4, 5)")))
    1006                 :        5803 : 
    1007                 :             : ;; Match 4 to 7.
    1008                 :             : (define_predicate "const_4_to_7_operand"
    1009                 :      937501 :   (and (match_code "const_int")
    1010                 :     1875002 :        (match_test "IN_RANGE (INTVAL (op), 4, 7)")))
    1011                 :      937501 : 
    1012                 :             : ;; Match 6 to 7.
    1013                 :             : (define_predicate "const_6_to_7_operand"
    1014                 :         698 :   (and (match_code "const_int")
    1015                 :        1396 :        (match_test "IN_RANGE (INTVAL (op), 6, 7)")))
    1016                 :         698 : 
    1017                 :             : ;; Match 8 to 9.
    1018                 :             : (define_predicate "const_8_to_9_operand"
    1019                 :         506 :   (and (match_code "const_int")
    1020                 :        1012 :        (match_test "IN_RANGE (INTVAL (op), 8, 9)")))
    1021                 :         506 : 
    1022                 :             : ;; Match 8 to 11.
    1023                 :             : (define_predicate "const_8_to_11_operand"
    1024                 :       42652 :   (and (match_code "const_int")
    1025                 :       85304 :        (match_test "IN_RANGE (INTVAL (op), 8, 11)")))
    1026                 :       42652 : 
    1027                 :             : ;; Match 8 to 15.
    1028                 :             : (define_predicate "const_8_to_15_operand"
    1029                 :       40700 :   (and (match_code "const_int")
    1030                 :       81400 :        (match_test "IN_RANGE (INTVAL (op), 8, 15)")))
    1031                 :       40700 : 
    1032                 :             : ;; Match 10 to 11.
    1033                 :             : (define_predicate "const_10_to_11_operand"
    1034                 :         265 :   (and (match_code "const_int")
    1035                 :         530 :        (match_test "IN_RANGE (INTVAL (op), 10, 11)")))
    1036                 :         265 : 
    1037                 :             : ;; Match 12 to 13.
    1038                 :             : (define_predicate "const_12_to_13_operand"
    1039                 :         265 :   (and (match_code "const_int")
    1040                 :         530 :        (match_test "IN_RANGE (INTVAL (op), 12, 13)")))
    1041                 :         265 : 
    1042                 :             : ;; Match 12 to 15.
    1043                 :             : (define_predicate "const_12_to_15_operand"
    1044                 :       28634 :   (and (match_code "const_int")
    1045                 :       57268 :        (match_test "IN_RANGE (INTVAL (op), 12, 15)")))
    1046                 :       28634 : 
    1047                 :             : ;; Match 14 to 15.
    1048                 :             : (define_predicate "const_14_to_15_operand"
    1049                 :         265 :   (and (match_code "const_int")
    1050                 :         530 :        (match_test "IN_RANGE (INTVAL (op), 14, 15)")))
    1051                 :         265 : 
    1052                 :             : ;; Match 16 to 19.
    1053                 :             : (define_predicate "const_16_to_19_operand"
    1054                 :        1450 :   (and (match_code "const_int")
    1055                 :        2900 :        (match_test "IN_RANGE (INTVAL (op), 16, 19)")))
    1056                 :        1450 : 
    1057                 :             : ;; Match 16 to 31.
    1058                 :             : (define_predicate "const_16_to_31_operand"
    1059                 :       10145 :   (and (match_code "const_int")
    1060                 :       20290 :        (match_test "IN_RANGE (INTVAL (op), 16, 31)")))
    1061                 :       10145 : 
    1062                 :             : ;; Match 20 to 23.
    1063                 :             : (define_predicate "const_20_to_23_operand"
    1064                 :        1058 :   (and (match_code "const_int")
    1065                 :        2116 :        (match_test "IN_RANGE (INTVAL (op), 20, 23)")))
    1066                 :        1058 : 
    1067                 :             : ;; Match 24 to 27.
    1068                 :             : (define_predicate "const_24_to_27_operand"
    1069                 :        1058 :   (and (match_code "const_int")
    1070                 :        2116 :        (match_test "IN_RANGE (INTVAL (op), 24, 27)")))
    1071                 :        1058 : 
    1072                 :             : ;; Match 28 to 31.
    1073                 :             : (define_predicate "const_28_to_31_operand"
    1074                 :        1058 :   (and (match_code "const_int")
    1075                 :        2116 :        (match_test "IN_RANGE (INTVAL (op), 28, 31)")))
    1076                 :        1058 : 
    1077                 :             : (define_predicate "cmpps_imm_operand"
    1078                 :             :   (ior (match_operand 0 "const_0_to_7_operand")
    1079                 :        3987 :        (and (match_test "TARGET_AVX")
    1080                 :             :             (match_operand 0 "const_0_to_31_operand"))))
    1081                 :       35646 : 
    1082                 :             : ;; True if this is a constant appropriate for an increment or decrement.
    1083                 :    96578319 : (define_predicate "incdec_operand"
    1084                 :             :   (match_code "const_int")
    1085                 :             : {
    1086                 :             :   /* On Pentium4, the inc and dec operations causes extra dependency on flag
    1087                 :             :      registers, since carry flag is not set.  */
    1088                 :    96578319 :   if (!TARGET_USE_INCDEC && !optimize_insn_for_size_p ())
    1089                 :             :     return false;
    1090                 :     2364675 :   return op == const1_rtx || op == constm1_rtx;
    1091                 :             : })
    1092                 :             : 
    1093                 :             : ;; True for registers, or const_int_operand, used to vec_setm expander.
    1094                 :   119101464 : (define_predicate "vec_setm_sse41_operand"
    1095                 :             :   (ior (and (match_operand 0 "register_operand")
    1096                 :   215680442 :             (match_test "TARGET_SSE4_1"))
    1097                 :    96578319 :        (match_code "const_int")))
    1098                 :             : 
    1099                 :             : (define_predicate "vec_setm_avx2_operand"
    1100                 :             :   (ior (and (match_operand 0 "register_operand")
    1101                 :         895 :             (match_test "TARGET_AVX2"))
    1102                 :           0 :        (match_code "const_int")))
    1103                 :        1130 : 
    1104                 :             : (define_predicate "vec_setm_mmx_operand"
    1105                 :             :   (ior (and (match_operand 0 "register_operand")
    1106                 :          22 :             (match_test "TARGET_SSE4_1")
    1107                 :         242 :             (match_test "TARGET_MMX_WITH_SSE"))
    1108                 :         242 :        (match_code "const_int")))
    1109                 :             : 
    1110                 :             : ;; True for registers, or 1 or -1.  Used to optimize double-word shifts.
    1111                 :             : (define_predicate "reg_or_pm1_operand"
    1112                 :     4254528 :   (ior (match_operand 0 "register_operand")
    1113                 :             :        (and (match_code "const_int")
    1114                 :     4254528 :             (ior (match_test "op == const1_rtx")
    1115                 :      287463 :                  (match_test "op == constm1_rtx")))))
    1116                 :      272062 : 
    1117                 :             : ;; True for registers, or (not: registers).  Used to optimize 3-operand
    1118                 :             : ;; bitwise operation.
    1119                 :             : (define_predicate "regmem_or_bitnot_regmem_operand"
    1120                 :      505849 :   (ior (match_operand 0 "nonimmediate_operand")
    1121                 :             :        (and (match_code "not")
    1122                 :      505849 :             (match_test "nonimmediate_operand (XEXP (op, 0), mode)"))))
    1123                 :       27344 : 
    1124                 :             : ;; True for expressions valid for 3-operand ternlog instructions.
    1125                 :             : (define_predicate "ternlog_operand"
    1126                 :             :   (and (match_code "not,and,ior,xor")
    1127                 :     2001196 :        (match_test "ix86_ternlog_operand_p (op)")))
    1128                 :      200998 : 
    1129                 :    62389837 : ;; True if OP is acceptable as operand of DImode shift expander.
    1130                 :             : (define_predicate "shiftdi_operand"
    1131                 :     1322791 :   (if_then_else (match_test "TARGET_64BIT")
    1132                 :     3323987 :     (match_operand 0 "nonimmediate_operand")
    1133                 :     2001196 :     (match_operand 0 "register_operand")))
    1134                 :     1322791 : 
    1135                 :     2608765 : (define_predicate "ashldi_input_operand"
    1136                 :      607569 :   (if_then_else (match_test "TARGET_64BIT")
    1137                 :      607569 :     (match_operand 0 "nonimmediate_operand")
    1138                 :             :     (match_operand 0 "reg_or_pm1_operand")))
    1139                 :     2001196 : 
    1140                 :      561509 : ;; Return true if OP is a vector load from the constant pool with just
    1141                 :             : ;; the first element nonzero.
    1142                 :             : (define_predicate "zero_extended_scalar_load_operand"
    1143                 :             :   (match_code "mem")
    1144                 :             : {
    1145                 :      561509 :   unsigned n_elts;
    1146                 :      561509 :   op = avoid_constant_pool_reference (op);
    1147                 :             : 
    1148                 :      561509 :   if (!CONST_VECTOR_P (op))
    1149                 :             :     return false;
    1150                 :             : 
    1151                 :       81968 :   n_elts = CONST_VECTOR_NUNITS (op);
    1152                 :             : 
    1153                 :      166898 :   for (n_elts--; n_elts > 0; n_elts--)
    1154                 :             :     {
    1155                 :      121809 :       rtx elt = CONST_VECTOR_ELT (op, n_elts);
    1156                 :      243618 :       if (elt != CONST0_RTX (GET_MODE_INNER (GET_MODE (op))))
    1157                 :             :         return false;
    1158                 :             :     }
    1159                 :             :   return true;
    1160                 :             : })
    1161                 :             : 
    1162                 :             : /* Return true if operand is a float vector constant that is all ones. */
    1163                 :     1841955 : (define_predicate "float_vector_all_ones_operand"
    1164                 :             :   (match_code "const_vector,mem")
    1165                 :      561509 : {
    1166                 :     1887044 :   mode = GET_MODE (op);
    1167                 :       45089 :   if (!FLOAT_MODE_P (mode)
    1168                 :    13811330 :       || (MEM_P (op)
    1169                 :    11920298 :           && (!SYMBOL_REF_P (XEXP (op, 0))
    1170                 :     1457790 :               || !CONSTANT_POOL_ADDRESS_P (XEXP (op, 0)))))
    1171                 :    16663337 :     return false;
    1172                 :             : 
    1173                 :     3101242 :   if (MEM_P (op))
    1174                 :             :     {
    1175                 :     1210210 :       op = get_pool_constant (XEXP (op, 0));
    1176                 :     1210210 :       if (!CONST_VECTOR_P (op))
    1177                 :             :         return false;
    1178                 :             : 
    1179                 :     1210206 :       if (GET_MODE (op) != mode
    1180                 :        3758 :          && INTEGRAL_MODE_P (GET_MODE (op))
    1181                 :        3758 :          && op == CONSTM1_RTX (GET_MODE (op)))
    1182                 :             :         return true;
    1183                 :             :     }
    1184                 :             : 
    1185                 :     3101238 :   rtx first = XVECEXP (op, 0, 0);
    1186                 :     8658652 :   for (int i = 1; i != GET_MODE_NUNITS (GET_MODE (op)); i++)
    1187                 :             :     {
    1188                 :     3839387 :       rtx tmp = XVECEXP (op, 0, i);
    1189                 :     3839387 :       if (!rtx_equal_p (tmp, first))
    1190                 :             :         return false;
    1191                 :             :     }
    1192                 :      489939 :   if (GET_MODE (first) == E_SFmode)
    1193                 :             :     {
    1194                 :      221236 :       long l;
    1195                 :      221236 :       REAL_VALUE_TO_TARGET_SINGLE (*CONST_DOUBLE_REAL_VALUE (first), l);
    1196                 :      221236 :       return (l & 0xffffffff) == 0xffffffff;
    1197                 :             :     }
    1198                 :      268703 :   else if (GET_MODE (first) == E_DFmode)
    1199                 :             :     {
    1200                 :      263442 :       long l[2];
    1201                 :      263442 :       REAL_VALUE_TO_TARGET_DOUBLE (*CONST_DOUBLE_REAL_VALUE (first), l);
    1202                 :      263442 :       return ((l[0] & 0xffffffff) == 0xffffffff
    1203                 :      263442 :              && (l[1] & 0xffffffff) == 0xffffffff);
    1204                 :             :     }
    1205                 :             :   else
    1206                 :             :     return false;
    1207                 :             : })
    1208                 :             : 
    1209                 :             : /* Return true if operand is an integral vector constant that is all ones. */
    1210                 :    54362755 : (define_predicate "vector_all_ones_operand"
    1211                 :             :   (and (match_code "const_vector")
    1212                 :    67215229 :        (match_test "INTEGRAL_MODE_P (GET_MODE (op))")
    1213                 :    10985437 :        (match_test "op == CONSTM1_RTX (GET_MODE (op))")))
    1214                 :      813244 : 
    1215                 :    16663337 : /* Return true if operand is a vector constant that is all ones. */
    1216                 :    16663337 : (define_predicate "int_float_vector_all_ones_operand"
    1217                 :             :   (ior (match_operand 0 "vector_all_ones_operand")
    1218                 :     8728128 :        (match_operand 0 "float_vector_all_ones_operand")
    1219                 :           0 :        (match_test "op == constm1_rtx")))
    1220                 :     8728128 : 
    1221                 :    16663337 : /* Return true if operand is an 128/256bit all ones vector
    1222                 :        3231 :    that zero-extends to 256/512bit.  */
    1223                 :             : (define_predicate "vector_all_ones_zero_extend_half_operand"
    1224                 :    11621036 :   (match_code "const_vector")
    1225                 :             : {
    1226                 :   156545180 :   mode = GET_MODE (op);
    1227                 :    11621036 :   if (GET_MODE_CLASS (mode) != MODE_VECTOR_INT
    1228                 :   166494615 :       || (GET_MODE_SIZE (mode) != 32
    1229                 :     9674179 :           && GET_MODE_SIZE (mode) != 64))
    1230                 :             :     return false;
    1231                 :             : 
    1232                 :      427483 :   int nelts = CONST_VECTOR_NUNITS (op);
    1233                 :      473691 :   for (int i = 0; i != nelts; i++)
    1234                 :             :     {
    1235                 :      472741 :       rtx elt = CONST_VECTOR_ELT (op, i);
    1236                 :      472741 :       if (i < nelts / 2
    1237                 :      938689 :           && elt != CONSTM1_RTX (GET_MODE_INNER (mode)))
    1238                 :             :         return false;
    1239                 :       51024 :       if (i >= nelts / 2
    1240                 :       57817 :           && elt != CONST0_RTX (GET_MODE_INNER (mode)))
    1241                 :             :         return false;
    1242                 :             :     }
    1243                 :             :   return true;
    1244                 :             : })
    1245                 :             : 
    1246                 :             : /* Return true if operand is an 128bit all ones vector
    1247                 :   158760423 :    that zero extends to 512bit.  */
    1248                 :             : (define_predicate "vector_all_ones_zero_extend_quarter_operand"
    1249                 :    11621036 :   (match_code "const_vector")
    1250                 :   158761373 : {
    1251                 :         950 :   mode = GET_MODE (op);
    1252                 :    11620086 :   if (GET_MODE_CLASS (mode) != MODE_VECTOR_INT
    1253                 :     9948485 :       || GET_MODE_SIZE (mode) != 64)
    1254                 :             :     return false;
    1255                 :    11620086 : 
    1256                 :      152018 :   int nelts = CONST_VECTOR_NUNITS (op);
    1257                 :      164912 :   for (int i = 0; i != nelts; i++)
    1258                 :             :     {
    1259                 :      164824 :       rtx elt = CONST_VECTOR_ELT (op, i);
    1260                 :      164824 :       if (i < nelts / 4
    1261                 :      326395 :           && elt != CONSTM1_RTX (GET_MODE_INNER (mode)))
    1262                 :             :         return false;
    1263                 :       15313 :       if (i >= nelts / 4
    1264                 :       18566 :           && elt != CONST0_RTX (GET_MODE_INNER (mode)))
    1265                 :             :         return false;
    1266                 :             :     }
    1267                 :             :   return true;
    1268                 :             : })
    1269                 :             : 
    1270                 :             : ; Return true when OP is operand acceptable for vector memory operand.
    1271                 :   158759473 : ; Only AVX can have misaligned memory operand.
    1272                 :             : (define_predicate "vector_memory_operand"
    1273                 :    11620086 :   (and (match_operand 0 "memory_operand")
    1274                 :   160023265 :        (ior (match_test "TARGET_AVX")
    1275                 :     1263792 :             (match_test "MEM_ALIGN (op) >= GET_MODE_ALIGNMENT (mode)"))))
    1276                 :             : 
    1277                 :             : ; Return true when OP is register_operand or vector_memory_operand.
    1278                 :             : (define_predicate "vector_operand"
    1279                 :    18203205 :   (ior (match_operand 0 "register_operand")
    1280                 :             :        (match_operand 0 "vector_memory_operand")))
    1281                 :    18203205 : 
    1282                 :             : ; Return true when OP is register_operand, vector_memory_operand
    1283                 :             : ; or const_vector.
    1284                 :             : (define_predicate "vector_or_const_vector_operand"
    1285                 :       12712 :   (ior (match_operand 0 "register_operand")
    1286                 :             :        (match_operand 0 "vector_memory_operand")
    1287                 :       12712 :        (match_code "const_vector")))
    1288                 :        7420 : 
    1289                 :             : ; Return true when OP is register_operand, vector_memory_operand,
    1290                 :             : ; const_vector zero or const_vector all ones.
    1291                 :             : (define_predicate "vector_or_0_or_1s_operand"
    1292                 :        3936 :   (ior (match_operand 0 "register_operand")
    1293                 :             :        (match_operand 0 "vector_memory_operand")
    1294                 :        3936 :        (match_operand 0 "const0_operand")
    1295                 :             :        (match_operand 0 "int_float_vector_all_ones_operand")))
    1296                 :             : 
    1297                 :             : (define_predicate "bcst_mem_operand"
    1298                 :   165132120 :   (and (match_code "vec_duplicate")
    1299                 :        9750 :        (and (match_test "TARGET_AVX512F")
    1300                 :       90263 :             (ior (match_test "TARGET_AVX512VL")
    1301                 :        9014 :                  (match_test "GET_MODE_SIZE (GET_MODE (op)) == 64")))
    1302                 :       30436 :        (match_test "VALID_BCST_MODE_P (GET_MODE_INNER (GET_MODE (op)))")
    1303                 :        8794 :        (match_test "GET_MODE (XEXP (op, 0))
    1304                 :       26366 :                     == GET_MODE_INNER (GET_MODE (op))")
    1305                 :   165146253 :        (match_test "memory_operand (XEXP (op, 0), GET_MODE (XEXP (op, 0)))")))
    1306                 :        5355 : 
    1307                 :             : ; Return true when OP is bcst_mem_operand or vector_memory_operand.
    1308                 :             : (define_predicate "bcst_vector_operand"
    1309                 :             :   (ior (match_operand 0 "vector_operand")
    1310                 :     4944790 :        (match_operand 0 "bcst_mem_operand")))
    1311                 :             : 
    1312                 :     4944790 : ;; Return true when OP is either nonimmediate operand, or any
    1313                 :             : ;; CONST_VECTOR.
    1314                 :             : (define_predicate "nonimmediate_or_const_vector_operand"
    1315                 :             :   (ior (match_operand 0 "nonimmediate_operand")
    1316                 :       79360 :        (match_code "const_vector")))
    1317                 :             : 
    1318                 :       79360 : (define_predicate "nonimmediate_or_const_vec_dup_operand"
    1319                 :       10774 :   (ior (match_operand 0 "nonimmediate_operand")
    1320                 :          58 :        (match_test "const_vec_duplicate_p (op)")))
    1321                 :          58 : 
    1322                 :             : (define_predicate "const_vec_dup_operand"
    1323                 :           2 :        (match_test "const_vec_duplicate_p (op)"))
    1324                 :           2 : 
    1325                 :         106 : ;; Return true when OP is either register operand, or any
    1326                 :             : ;; CONST_VECTOR.
    1327                 :           2 : (define_predicate "reg_or_const_vector_operand"
    1328                 :         240 :   (ior (match_operand 0 "register_operand")
    1329                 :             :        (match_code "const_vector")))
    1330                 :         240 : 
    1331                 :         153 : ;; Return true when OP is CONST_VECTOR which can be converted to a
    1332                 :             : ;; sign extended 32-bit integer.
    1333                 :             : (define_predicate "x86_64_const_vector_operand"
    1334                 :             :   (match_code "const_vector")
    1335                 :      141244 : {
    1336                 :      141244 :   if (mode == VOIDmode)
    1337                 :           0 :     mode = GET_MODE (op);
    1338                 :      141244 :   else if (GET_MODE (op) != mode)
    1339                 :             :     return false;
    1340                 :      338875 :   if (GET_MODE_SIZE (mode) > UNITS_PER_WORD)
    1341                 :             :     return false;
    1342                 :       98327 :   HOST_WIDE_INT val = ix86_convert_const_vector_to_integer (op, mode);
    1343                 :       98327 :   return trunc_int_for_mode (val, SImode) == val;
    1344                 :             : })
    1345                 :             : 
    1346                 :             : (define_predicate "nonimmediate_or_x86_64_const_vector_operand"
    1347                 :      990048 :   (ior (match_operand 0 "nonimmediate_operand")
    1348                 :             :        (match_operand 0 "x86_64_const_vector_operand")))
    1349                 :      141244 : 
    1350                 :     1074181 : ;; Return true when OP is nonimmediate or standard SSE constant.
    1351                 :       84133 : (define_predicate "nonimmediate_or_sse_const_operand"
    1352                 :             :   (ior (match_operand 0 "nonimmediate_operand")
    1353                 :    22964954 :        (match_test "standard_sse_constant_p (op, mode)")))
    1354                 :     2419564 : 
    1355                 :        3980 : ;; Return true if OP is a register or a zero.
    1356                 :             : (define_predicate "reg_or_0_operand"
    1357                 :        3980 :   (ior (match_operand 0 "register_operand")
    1358                 :      584430 :        (match_operand 0 "const0_operand")))
    1359                 :             : 
    1360                 :      584430 : ; Return true when OP is a nonimmediate or zero.
    1361                 :    95681482 : (define_predicate "nonimm_or_0_operand"
    1362                 :             :   (ior (match_operand 0 "nonimmediate_operand")
    1363                 :   116226872 :        (match_operand 0 "const0_operand")))
    1364                 :   123066981 : 
    1365                 :             : ; Return true when OP is a nonimmediate or zero or all ones.
    1366                 :   123066981 : (define_predicate "nonimm_or_0_or_1s_operand"
    1367                 :             :   (ior (match_operand 0 "nonimmediate_operand")
    1368                 :             :        (match_operand 0 "const0_operand")
    1369                 :             :        (match_operand 0 "int_float_vector_all_ones_operand")))
    1370                 :      100326 : 
    1371                 :             : ;; Return true for RTX codes that force SImode address.
    1372                 :      100326 : (define_predicate "SImode_address_operand"
    1373                 :             :   (match_code "subreg,zero_extend,and"))
    1374                 :             : 
    1375                 :             : ;; Return true if op is a valid address for LEA, and does not contain
    1376                 :   262915678 : ;; a segment override.  Defined as a special predicate to allow
    1377                 :             : ;; mode-less const_int operands pass to address_operand.
    1378                 :   262915678 : (define_special_predicate "address_no_seg_operand"
    1379                 :   179712998 :   (match_test "address_operand (op, VOIDmode)")
    1380                 :    65496118 : {
    1381                 :    65964225 :   struct ix86_address parts;
    1382                 :    65964225 :   int ok;
    1383                 :      468107 : 
    1384                 :    65536019 :   if (!CONST_INT_P (op)
    1385                 :    62608459 :       && mode != VOIDmode
    1386                 :    62608459 :       && GET_MODE (op) != mode)
    1387                 :      468107 :     return false;
    1388                 :      468107 : 
    1389                 :    65496054 :   ok = ix86_decompose_address (op, &parts);
    1390                 :    65496054 :   gcc_assert (ok);
    1391                 :    65496054 :   return parts.seg == ADDR_SPACE_GENERIC;
    1392                 :    65496118 : })
    1393                 :             : 
    1394                 :             : ;; Return true if op if a valid base register, displacement or
    1395                 :   114216880 : ;; sum of base register and displacement for VSIB addressing.
    1396                 :             : (define_predicate "vsib_address_operand"
    1397                 :   114256781 :   (match_test "address_operand (op, VOIDmode)")
    1398                 :       80563 : {
    1399                 :       38477 :   struct ix86_address parts;
    1400                 :       39901 :   int ok;
    1401                 :       39901 :   rtx disp;
    1402                 :             : 
    1403                 :       39901 :   ok = ix86_decompose_address (op, &parts);
    1404                 :       39901 :   gcc_assert (ok);
    1405                 :       66919 :   if (parts.index || parts.seg != ADDR_SPACE_GENERIC)
    1406                 :       27018 :     return false;
    1407                 :             : 
    1408                 :             :   /* VSIB addressing doesn't support (%rip).  */
    1409                 :       39881 :   if (parts.disp)
    1410                 :    26769821 :     {
    1411                 :        7785 :       disp = parts.disp;
    1412                 :        7785 :       if (GET_CODE (disp) == CONST)
    1413                 :             :         {
    1414                 :         151 :           disp = XEXP (disp, 0);
    1415                 :         151 :           if (GET_CODE (disp) == PLUS)
    1416                 :         151 :             disp = XEXP (disp, 0);
    1417                 :         151 :           if (GET_CODE (disp) == UNSPEC)
    1418                 :           0 :             switch (XINT (disp, 1))
    1419                 :             :               {
    1420                 :             :               case UNSPEC_GOTPCREL:
    1421                 :             :               case UNSPEC_PCREL:
    1422                 :             :               case UNSPEC_GOTNTPOFF:
    1423                 :             :                 return false;
    1424                 :             :               }
    1425                 :             :         }
    1426                 :        7785 :       if (TARGET_64BIT
    1427                 :        7785 :           && flag_pic
    1428                 :           0 :           && (SYMBOL_REF_P (disp)
    1429                 :           0 :               || LABEL_REF_P (disp)))
    1430                 :           0 :         return false;
    1431                 :             :     }
    1432                 :             : 
    1433                 :             :   return true;
    1434                 :             : })
    1435                 :             : 
    1436                 :             : (define_predicate "vsib_mem_operator"
    1437                 :       40682 :   (match_code "mem"))
    1438                 :             : 
    1439                 :       40682 : ;; Return true if the rtx is known to be at least 32 bits aligned.
    1440                 :             : (define_predicate "aligned_operand"
    1441                 :             :   (match_operand 0 "general_operand")
    1442                 :             : {
    1443                 :    26769821 :   struct ix86_address parts;
    1444                 :    26769821 :   int ok;
    1445                 :             : 
    1446                 :             :   /* Registers and immediate operands are always "aligned".  */
    1447                 :    26769821 :   if (!MEM_P (op))
    1448                 :             :     return true;
    1449                 :             : 
    1450                 :             :   /* All patterns using aligned_operand on memory operands ends up
    1451                 :             :      in promoting memory operand to 64bit and thus causing memory mismatch.  */
    1452                 :     7488834 :   if (TARGET_MEMORY_MISMATCH_STALL && !optimize_insn_for_size_p ())
    1453                 :             :     return false;
    1454                 :             : 
    1455                 :             :   /* Don't even try to do any aligned optimizations with volatiles.  */
    1456                 :      136549 :   if (MEM_VOLATILE_P (op))
    1457                 :             :     return false;
    1458                 :             : 
    1459                 :      123585 :   if (MEM_ALIGN (op) >= 32)
    1460                 :             :     return true;
    1461                 :             : 
    1462                 :       46249 :   op = XEXP (op, 0);
    1463                 :             : 
    1464                 :             :   /* Pushes and pops are only valid on the stack pointer.  */
    1465                 :       46249 :   if (GET_CODE (op) == PRE_DEC
    1466                 :       46249 :       || GET_CODE (op) == POST_INC)
    1467                 :             :     return true;
    1468                 :             : 
    1469                 :             :   /* Decode the address.  */
    1470                 :       46249 :   ok = ix86_decompose_address (op, &parts);
    1471                 :       46249 :   gcc_assert (ok);
    1472                 :             : 
    1473                 :       46249 :   if (parts.base && SUBREG_P (parts.base))
    1474                 :           0 :     parts.base = SUBREG_REG (parts.base);
    1475                 :       46249 :   if (parts.index && SUBREG_P (parts.index))
    1476                 :           0 :     parts.index = SUBREG_REG (parts.index);
    1477                 :             : 
    1478                 :             :   /* Look for some component that isn't known to be aligned.  */
    1479                 :       46249 :   if (parts.index)
    1480                 :             :     {
    1481                 :        3797 :       if (REGNO_POINTER_ALIGN (REGNO (parts.index)) * parts.scale < 32)
    1482                 :             :         return false;
    1483                 :             :     }
    1484                 :       42452 :   if (parts.base)
    1485                 :             :     {
    1486                 :       35521 :       if (REGNO_POINTER_ALIGN (REGNO (parts.base)) < 32)
    1487                 :             :         return false;
    1488                 :             :     }
    1489                 :       13773 :   if (parts.disp)
    1490                 :             :     {
    1491                 :       13773 :       if (!CONST_INT_P (parts.disp)
    1492                 :        6944 :           || (INTVAL (parts.disp) & 3))
    1493                 :             :         return false;
    1494                 :             :     }
    1495                 :             : 
    1496                 :             :   /* Didn't find one -- this must be an aligned address.  */
    1497                 :             :   return true;
    1498                 :             : })
    1499                 :             : 
    1500                 :             : ;; Return true if OP is memory operand with a displacement.
    1501                 :    27321609 : (define_predicate "memory_displacement_operand"
    1502                 :             :   (match_operand 0 "memory_operand")
    1503                 :    54091430 : {
    1504                 :    26769821 :   struct ix86_address parts;
    1505                 :           0 :   int ok;
    1506                 :             : 
    1507                 :           0 :   ok = ix86_decompose_address (XEXP (op, 0), &parts);
    1508                 :           0 :   gcc_assert (ok);
    1509                 :           0 :   return parts.disp != NULL_RTX;
    1510                 :             : })
    1511                 :             : 
    1512                 :             : ;; Return true if OP is memory operand with a displacement only.
    1513                 :           0 : (define_predicate "memory_displacement_only_operand"
    1514                 :             :   (match_operand 0 "memory_operand")
    1515                 :           0 : {
    1516                 :           0 :   struct ix86_address parts;
    1517                 :    39130118 :   int ok;
    1518                 :             : 
    1519                 :    39130118 :   if (TARGET_64BIT)
    1520                 :    39130118 :     return false;
    1521                 :             : 
    1522                 :    18792035 :   ok = ix86_decompose_address (XEXP (op, 0), &parts);
    1523                 :    18792035 :   gcc_assert (ok);
    1524                 :             : 
    1525                 :    18792035 :   if (parts.base || parts.index)
    1526                 :             :     return false;
    1527                 :             : 
    1528                 :      234221 :   return parts.disp != NULL_RTX;
    1529                 :             : })
    1530                 :             : 
    1531                 :             : ;; Return true if OP is memory operand that cannot be represented
    1532                 :    60460669 : ;; by the modRM array.
    1533                 :             : (define_predicate "long_memory_operand"
    1534                 :    99590787 :   (and (match_operand 0 "memory_operand")
    1535                 :    39130118 :        (match_test "memory_address_length (op, false)")))
    1536                 :             : 
    1537                 :             : ;; Return true if OP is a comparison operator that can be issued by fcmov.
    1538                 :             : (define_predicate "fcmov_comparison_operator"
    1539                 :       84072 :   (match_operand 0 "comparison_operator")
    1540                 :             : {
    1541                 :           0 :   machine_mode inmode = GET_MODE (XEXP (op, 0));
    1542                 :       84072 :   enum rtx_code code = GET_CODE (op);
    1543                 :             : 
    1544                 :       84072 :   if (inmode == CCFPmode)
    1545                 :        8545 :     code = ix86_fp_compare_code_to_integer (code);
    1546                 :             : 
    1547                 :             :   /* i387 supports just limited amount of conditional codes.  */
    1548                 :       84072 :   switch (code)
    1549                 :             :     {
    1550                 :        1971 :     case GEU: case LTU:
    1551                 :        1971 :       if (inmode == CCCmode || inmode == CCGZmode)
    1552                 :             :         return true;
    1553                 :             :       /* FALLTHRU */
    1554                 :        6611 :     case GTU: case LEU:
    1555                 :        6611 :       if (inmode == CCmode || inmode == CCFPmode)
    1556                 :             :         return true;
    1557                 :             :       return false;
    1558                 :             :     case ORDERED: case UNORDERED:
    1559                 :             :     case EQ: case NE:
    1560                 :             :       return true;
    1561                 :             :     default:
    1562                 :             :       return false;
    1563                 :             :     }
    1564                 :             : })
    1565                 :             : 
    1566                 :             : ;; Return true if OP is a comparison that can be used in the CMPSS/CMPPS insns.
    1567                 :       84072 : ;; The first set are supported directly; the second set can't be done with
    1568                 :             : ;; full IEEE support, i.e. NaNs.
    1569                 :      168144 : 
    1570                 :       84072 : (define_predicate "sse_comparison_operator"
    1571                 :             :   (ior (match_code "eq,ne,lt,le,unordered,unge,ungt,ordered")
    1572                 :      133643 :        (and (match_test "TARGET_AVX")
    1573                 :      133643 :             (match_code "ge,gt,uneq,unle,unlt,ltgt"))))
    1574                 :      135105 : 
    1575                 :             : (define_predicate "ix86_comparison_int_operator"
    1576                 :      135105 :   (match_code "ne,eq,ge,gt,le,lt"))
    1577                 :      194921 : 
    1578                 :             : (define_predicate "ix86_comparison_uns_operator"
    1579                 :      194921 :   (match_code "ne,eq,geu,gtu,leu,ltu"))
    1580                 :             : 
    1581                 :      194921 : (define_predicate "bt_comparison_operator"
    1582                 :      194921 :   (match_code "ne,eq"))
    1583                 :      194921 : 
    1584                 :      194921 : (define_predicate "shr_comparison_operator"
    1585                 :      194921 :   (match_code "gtu,leu"))
    1586                 :      194921 : 
    1587                 :      194921 : (define_predicate "add_comparison_operator"
    1588                 :             :   (match_code "geu,ltu"))
    1589                 :             : 
    1590                 :             : ;; Return true if OP is a valid comparison operator in valid mode.
    1591                 :      194921 : (define_predicate "ix86_comparison_operator"
    1592                 :      194921 :   (match_operand 0 "comparison_operator")
    1593                 :             : {
    1594                 :   100380914 :   machine_mode inmode = GET_MODE (XEXP (op, 0));
    1595                 :   100380914 :   enum rtx_code code = GET_CODE (op);
    1596                 :      109012 : 
    1597                 :   100380914 :   if (inmode == CCFPmode)
    1598                 :     6907167 :     return ix86_trivial_fp_comparison_operator (op, mode);
    1599                 :             : 
    1600                 :    93582759 :   switch (code)
    1601                 :      109012 :     {
    1602                 :    72532152 :     case EQ: case NE:
    1603                 :    72423140 :       if (inmode == CCGZmode)
    1604                 :           0 :         return false;
    1605                 :      109012 :       return true;
    1606                 :     4561922 :     case GE: case LT:
    1607                 :     4452910 :       if (inmode == CCmode || inmode == CCGCmode
    1608                 :     2230300 :           || inmode == CCGOCmode || inmode == CCNOmode || inmode == CCGZmode)
    1609                 :     3942190 :         return true;
    1610                 :      109012 :       return false;
    1611                 :      109012 :     case GEU: case LTU:
    1612                 :     7413841 :       if (inmode == CCCmode || inmode == CCGZmode)
    1613                 :             :         return true;
    1614                 :             :       /* FALLTHRU */
    1615                 :    72034418 :     case GTU: case LEU:
    1616                 :    10192191 :       if (inmode == CCmode)
    1617                 :    70872341 :         return true;
    1618                 :             :       return false;
    1619                 :    51297721 :     case ORDERED: case UNORDERED:
    1620                 :        3422 :       if (inmode == CCmode)
    1621                 :        3165 :         return true;
    1622                 :             :       return false;
    1623                 :     5969094 :     case GT: case LE:
    1624                 :     5969094 :       if (inmode == CCmode || inmode == CCGCmode || inmode == CCNOmode)
    1625                 :     5239990 :         return true;
    1626                 :    51294299 :       return false;
    1627                 :             :     default:
    1628                 :             :       return false;
    1629                 :             :     }
    1630                 :      745513 : })
    1631                 :             : 
    1632                 :      745513 : ;; Return true if OP is a valid comparison operator
    1633                 :   114915405 : ;; testing carry flag to be set.
    1634                 :      745513 : (define_predicate "ix86_carry_flag_operator"
    1635                 :   215296319 :   (match_code "ltu,unlt")
    1636                 :   100380914 : {
    1637                 :      851386 :   machine_mode inmode = GET_MODE (XEXP (op, 0));
    1638                 :      851386 :   enum rtx_code code = GET_CODE (op);
    1639                 :             : 
    1640                 :      851386 :   if (inmode == CCFPmode)
    1641                 :      757460 :     code = ix86_fp_compare_code_to_integer (code);
    1642                 :      839439 :   else if (inmode != CCmode && inmode != CCCmode && inmode != CCGZmode)
    1643                 :             :     return false;
    1644                 :             : 
    1645                 :      635299 :   return code == LTU;
    1646                 :             : })
    1647                 :     1317972 : 
    1648                 :             : ;; Return true if OP is a valid comparison operator
    1649                 :     5132418 : ;; testing carry flag to be unset.
    1650                 :     1317972 : (define_predicate "ix86_carry_flag_unset_operator"
    1651                 :     3814446 :   (match_code "geu,ge")
    1652                 :             : {
    1653                 :      852860 :   machine_mode inmode = GET_MODE (XEXP (op, 0));
    1654                 :      852860 :   enum rtx_code code = GET_CODE (op);
    1655                 :     2169358 : 
    1656                 :     1317972 :   if (inmode == CCFPmode)
    1657                 :          66 :     code = ix86_fp_compare_code_to_integer (code);
    1658                 :        1408 :   else if (inmode != CCmode && inmode != CCCmode && inmode != CCGZmode)
    1659                 :      851386 :     return false;
    1660                 :   101232300 : 
    1661                 :      428882 :   return code == GEU;
    1662                 :             : })
    1663                 :             : 
    1664                 :             : ;; Return true if this comparison only requires testing one flag bit.
    1665                 :     2728409 : ;; VCOMX/VUCOMX set ZF, SF, OF, differently from COMI/UCOMI.
    1666                 :             : (define_predicate "ix86_trivial_fp_comparison_operator"
    1667                 :    11961968 :   (if_then_else (match_test "TARGET_AVX10_2")
    1668                 :      656785 :                 (match_code "gt,ge,unlt,unle,eq,uneq,ne,ltgt,ordered,unordered")
    1669                 :        1474 :                 (match_code "gt,ge,unlt,unle,uneq,ltgt,ordered,unordered")))
    1670                 :        1474 : 
    1671                 :        1474 : (define_predicate "ix86_trivial_fp_comparison_operator_xf"
    1672                 :     1358209 :   (match_code "gt,ge,unlt,unle,uneq,ltgt,ordered,unordered"))
    1673                 :             : 
    1674                 :     1358209 : ;; Return true if we know how to do this comparison.  Others require
    1675                 :        1474 : ;; testing more than one flag bit, and we let the generic middle-end
    1676                 :      411840 : ;; code do that.
    1677                 :      411461 : (define_predicate "ix86_fp_comparison_operator"
    1678                 :     2847244 :   (if_then_else (match_test "ix86_fp_comparison_strategy (GET_CODE (op))
    1679                 :     2436878 :                              == IX86_FPCMP_ARITH")
    1680                 :      410366 :                (match_operand 0 "comparison_operator")
    1681                 :     9645399 :                (match_operand 0 "ix86_trivial_fp_comparison_operator")))
    1682                 :      410366 : 
    1683                 :     9235033 : (define_predicate "ix86_fp_comparison_operator_xf"
    1684                 :     1768575 :   (if_then_else (match_test "ix86_fp_comparison_strategy (GET_CODE (op))
    1685                 :     1358209 :                              == IX86_FPCMP_ARITH")
    1686                 :             :                (match_operand 0 "comparison_operator")
    1687                 :             :                (match_operand 0 "ix86_trivial_fp_comparison_operator_xf")))
    1688                 :      410366 : 
    1689                 :      410366 : ;; Return true if we can perform this comparison on TImode operands.
    1690                 :             : (define_predicate "ix86_timode_comparison_operator"
    1691                 :      446364 :   (if_then_else (match_test "TARGET_64BIT")
    1692                 :             :                 (match_operand 0 "ordered_comparison_operator")
    1693                 :     2436878 :                 (match_operand 0 "bt_comparison_operator")))
    1694                 :             : 
    1695                 :     2436878 : ;; Return true if this is a valid second operand for a TImode comparison.
    1696                 :             : (define_predicate "ix86_timode_comparison_operand"
    1697                 :      163342 :   (if_then_else (match_test "TARGET_64BIT")
    1698                 :             :                 (match_operand 0 "x86_64_general_operand")
    1699                 :             :                 (match_operand 0 "nonimmediate_operand")))
    1700                 :             : 
    1701                 :     1968572 : ;; Nearly general operand, but accept any const_double, since we wish
    1702                 :             : ;; to be able to drop them into memory rather than have them get pulled
    1703                 :      507658 : ;; into registers.
    1704                 :     2476230 : (define_predicate "cmp_fp_expander_operand"
    1705                 :             :   (ior (match_code "const_double")
    1706                 :             :        (match_operand 0 "general_operand")))
    1707                 :             : 
    1708                 :     4921345 : ;; Return true if this is a valid binary floating-point operation.
    1709                 :             : (define_predicate "binary_fp_operator"
    1710                 :     4921345 :   (match_code "plus,minus,mult,div"))
    1711                 :             : 
    1712                 :     4913448 : ;; Return true if this is a multiply operation.
    1713                 :     4913448 : (define_predicate "mult_operator"
    1714                 :     4913448 :   (match_code "mult"))
    1715                 :     4913448 : 
    1716                 :     4913448 : ;; Return true if this is a division operation.
    1717                 :             : (define_predicate "div_operator"
    1718                 :             :   (match_code "div"))
    1719                 :             : 
    1720                 :     4913448 : ;; Return true if this is an and, ior or xor operation.
    1721                 :     4913448 : (define_predicate "logic_operator"
    1722                 :             :   (match_code "and,ior,xor"))
    1723                 :             : 
    1724                 :             : ;; Return true if this is an and operation.
    1725                 :    17166850 : (define_predicate "and_operator"
    1726                 :             :   (match_code "and"))
    1727                 :    17166850 : 
    1728                 :     3517826 : ;; Return true if this is a plus, minus, and, ior or xor operation.
    1729                 :             : (define_predicate "plusminuslogic_operator"
    1730                 :             :   (match_code "plus,minus,and,ior,xor"))
    1731                 :             : 
    1732                 :     2610799 : ;; Return true for ARITHMETIC_P.
    1733                 :             : (define_predicate "arith_or_logical_operator"
    1734                 :     2610799 :   (match_code "plus,mult,and,ior,xor,smin,smax,umin,umax,compare,minus,div,
    1735                 :      931794 :                mod,udiv,umod,ashift,rotate,ashiftrt,lshiftrt,rotatert"))
    1736                 :             : 
    1737                 :             : ;; Return true for COMMUTATIVE_P.
    1738                 :             : (define_predicate "commutative_operator"
    1739                 :           0 :   (match_code "plus,mult,and,ior,xor,smin,smax,umin,umax"))
    1740                 :             : 
    1741                 :           0 : ;; Return true if OP is a binary operator that can be promoted to wider mode.
    1742                 :             : (define_predicate "promotable_binary_operator"
    1743                 :           0 :   (ior (match_code "plus,minus,and,ior,xor,ashift")
    1744                 :           0 :        (and (match_code "mult")
    1745                 :    25279391 :             (match_test "TARGET_TUNE_PROMOTE_HIMODE_IMUL"))))
    1746                 :           0 : 
    1747                 :             : (define_predicate "compare_operator"
    1748                 :             :   (match_code "compare"))
    1749                 :             : 
    1750                 :     7795720 : (define_predicate "extract_high_operator"
    1751                 :           0 :   (match_code "zero_extract,sign_extract,ashiftrt,lshiftrt")
    1752                 :     7795720 : {
    1753                 :           0 :   return (const8_operand (XEXP (op, 1), VOIDmode)
    1754                 :      153561 :           && (BINARY_P (op) || const8_operand (XEXP (op, 2), VOIDmode)));
    1755                 :         100 : })
    1756                 :             : 
    1757                 :      153661 : ;; Return true if OP is a memory operand, aligned to
    1758                 :           0 : ;; less than its natural alignment.
    1759                 :             : (define_predicate "misaligned_operand"
    1760                 :      153561 :   (and (match_code "mem")
    1761                 :     6113393 :        (match_test "MEM_ALIGN (op) < GET_MODE_BITSIZE (mode)")))
    1762                 :     1509194 : 
    1763                 :      153561 : ;; Return true if OP is a parallel for an mov{d,q,dqa,ps,pd} vec_select,
    1764                 :      526349 : ;; where one of the two operands of the vec_concat is const0_operand.
    1765                 :      153561 : (define_predicate "movq_parallel"
    1766                 :     1905542 :   (match_code "parallel")
    1767                 :      522344 : {
    1768                 :     1751981 :   unsigned nelt = XVECLEN (op, 0);
    1769                 :     1751981 :   unsigned nelt2 = nelt >> 1;
    1770                 :     1905542 :   unsigned i;
    1771                 :      153561 : 
    1772                 :     1287982 :   if (nelt < 2)
    1773                 :             :     return false;
    1774                 :             : 
    1775                 :      522344 :   /* Validate that all of the elements are constants,
    1776                 :      522344 :      lower halves of permute are lower halves of the first operand,
    1777                 :             :      upper halves of permute come from any of the second operand.  */
    1778                 :    15006485 :   for (i = 0; i < nelt; ++i)
    1779                 :             :     {
    1780                 :     6262223 :       rtx er = XVECEXP (op, 0, i);
    1781                 :     1991238 :       unsigned HOST_WIDE_INT ei;
    1782                 :     4270985 : 
    1783                 :     1991238 :       if (!CONST_INT_P (er))
    1784                 :     4270985 :         return false;
    1785                 :     6262223 :       ei = INTVAL (er);
    1786                 :     1991238 :       if (i < nelt2 && ei != i)
    1787                 :     4270985 :         return false;
    1788                 :      859844 :       if (i >= nelt2 && (ei < nelt || ei >= nelt << 1))
    1789                 :     4270985 :         return false;
    1790                 :     4270985 :     }
    1791                 :     4270985 : 
    1792                 :     4270985 :   return true;
    1793                 :     4270985 : })
    1794                 :     4270985 : 
    1795                 :     4270985 : ;; Return true if OP is a vzeroall operation, known to be a PARALLEL.
    1796                 :     5500622 : (define_predicate "vzeroall_operation"
    1797                 :     4270985 :   (match_code "parallel")
    1798                 :     6730259 : {
    1799                 :     1229656 :   unsigned i, nregs = TARGET_64BIT ? 16 : 8;
    1800                 :           0 : 
    1801                 :        4525 :   if ((unsigned) XVECLEN (op, 0) != 1 + nregs)
    1802                 :     4270985 :     return false;
    1803                 :     4270985 : 
    1804                 :       81298 :   for (i = 0; i < nregs; i++)
    1805                 :             :     {
    1806                 :       72248 :       rtx elt = XVECEXP (op, 0, i+1);
    1807                 :             : 
    1808                 :     4343233 :       if (GET_CODE (elt) != SET
    1809                 :     4343233 :           || GET_CODE (SET_DEST (elt)) != REG
    1810                 :       72248 :           || GET_MODE (SET_DEST (elt)) != V8SImode
    1811                 :       72248 :           || REGNO (SET_DEST (elt)) != GET_SSE_REGNO (i)
    1812                 :      144496 :           || SET_SRC (elt) != CONST0_RTX (V8SImode))
    1813                 :      932760 :         return false;
    1814                 :             :     }
    1815                 :      932760 :   return true;
    1816                 :             : })
    1817                 :      327153 : 
    1818                 :      327153 : ;; return true if OP is a vzeroall pattern.
    1819                 :      331678 : (define_predicate "vzeroall_pattern"
    1820                 :      327153 :   (and (match_code "parallel")
    1821                 :      336203 :        (match_code "unspec_volatile" "a")
    1822                 :        4656 :        (match_test "XINT (XVECEXP (op, 0, 0), 1) == UNSPECV_VZEROALL")))
    1823                 :           0 : 
    1824                 :      327153 : ;; return true if OP is a vzeroupper pattern.
    1825                 :      327153 : (define_predicate "vzeroupper_pattern"
    1826                 :      327153 :   (and (match_code "parallel")
    1827                 :   252418188 :        (match_code "unspec" "b")
    1828                 :      850767 :        (match_test "XINT (XVECEXP (op, 0, 1), 1) == UNSPEC_CALLEE_ABI")
    1829                 :   252418188 :        (match_test "INTVAL (XVECEXP (XVECEXP (op, 0, 1), 0, 0)) == ABI_VZEROUPPER")))
    1830                 :           0 : 
    1831                 :      327153 : ;; Return true if OP is an addsub vec_merge operation
    1832                 :             : (define_predicate "addsub_vm_operator"
    1833                 :             :   (match_code "vec_merge")
    1834                 :        8614 : {
    1835                 :    25288005 :   rtx op0, op1;
    1836                 :        8614 :   int swapped;
    1837                 :    25279391 :   HOST_WIDE_INT mask;
    1838                 :        8614 :   int nunits, elt;
    1839                 :             : 
    1840                 :        8614 :   op0 = XEXP (op, 0);
    1841                 :        8614 :   op1 = XEXP (op, 1);
    1842                 :             : 
    1843                 :             :   /* Sanity check.  */
    1844                 :        8614 :   if (GET_CODE (op0) == MINUS && GET_CODE (op1) == PLUS)
    1845                 :             :     swapped = 0;
    1846                 :        4415 :   else if (GET_CODE (op0) == PLUS && GET_CODE (op1) == MINUS)
    1847                 :             :     swapped = 1;
    1848                 :             :   else
    1849                 :           0 :     gcc_unreachable ();
    1850                 :             : 
    1851                 :        8614 :   mask = INTVAL (XEXP (op, 2));
    1852                 :        8614 :   nunits = GET_MODE_NUNITS (mode);
    1853                 :             : 
    1854                 :       35036 :   for (elt = 0; elt < nunits; elt++)
    1855                 :             :     {
    1856                 :             :       /* bit clear: take from op0, set: take from op1  */
    1857                 :       26635 :       int bit = !(mask & (HOST_WIDE_INT_1U << elt));
    1858                 :             : 
    1859                 :       26635 :       if (bit != ((elt & 1) ^ swapped))
    1860                 :             :         return false;
    1861                 :             :     }
    1862                 :             : 
    1863                 :             :   return true;
    1864                 :             : })
    1865                 :             : 
    1866                 :             : ;; Return true if OP is an addsub vec_select/vec_concat operation
    1867                 :        8614 : (define_predicate "addsub_vs_operator"
    1868                 :             :   (and (match_code "vec_select")
    1869                 :        8614 :        (match_code "vec_concat" "0"))
    1870                 :       17015 : {
    1871                 :        8401 :   rtx op0, op1;
    1872                 :           0 :   bool swapped;
    1873                 :           0 :   int nunits, elt;
    1874                 :             : 
    1875                 :           0 :   op0 = XEXP (XEXP (op, 0), 0);
    1876                 :           0 :   op1 = XEXP (XEXP (op, 0), 1);
    1877                 :             : 
    1878                 :             :   /* Sanity check.  */
    1879                 :           0 :   if (GET_CODE (op0) == MINUS && GET_CODE (op1) == PLUS)
    1880                 :             :     swapped = false;
    1881                 :           0 :   else if (GET_CODE (op0) == PLUS && GET_CODE (op1) == MINUS)
    1882                 :             :     swapped = true;
    1883                 :             :   else
    1884                 :           0 :     gcc_unreachable ();
    1885                 :             : 
    1886                 :           0 :   nunits = GET_MODE_NUNITS (mode);
    1887                 :           0 :   if (XVECLEN (XEXP (op, 1), 0) != nunits)
    1888                 :             :     return false;
    1889                 :             : 
    1890                 :             :   /* We already checked that permutation is suitable for addsub,
    1891                 :             :      so only look at the first element of the parallel.  */
    1892                 :           0 :   elt = INTVAL (XVECEXP (XEXP (op, 1), 0, 0));
    1893                 :             : 
    1894                 :           0 :   return elt == (swapped ? nunits : 0);
    1895                 :             : })
    1896                 :             : 
    1897                 :             : ;; Return true if OP is a parallel for an addsub vec_select.
    1898                 :           0 : (define_predicate "addsub_vs_parallel"
    1899                 :             :   (and (match_code "parallel")
    1900                 :           0 :        (match_code "const_int" "a"))
    1901                 :           0 : {
    1902                 :           0 :   int nelt = XVECLEN (op, 0);
    1903                 :         556 :   int elt, i;
    1904                 :             :   
    1905                 :         556 :   if (nelt < 2)
    1906                 :         556 :     return false;
    1907                 :             : 
    1908                 :             :   /* Check that the permutation is suitable for addsub.
    1909                 :             :      For example, { 0 9 2 11 4 13 6 15 } or { 8 1 10 3 12 5 14 7 }.  */
    1910                 :         556 :   elt = INTVAL (XVECEXP (op, 0, 0));
    1911                 :         556 :   if (elt == 0)
    1912                 :             :     {
    1913                 :         452 :       for (i = 1; i < nelt; ++i)
    1914                 :         452 :         if (INTVAL (XVECEXP (op, 0, i)) != (i + (i & 1) * nelt))
    1915                 :             :           return false;
    1916                 :             :     }
    1917                 :         104 :   else if (elt == nelt)
    1918                 :             :     {
    1919                 :           0 :       for (i = 1; i < nelt; ++i)
    1920                 :           0 :         if (INTVAL (XVECEXP (op, 0, i)) != (elt + i - (i & 1) * nelt))
    1921                 :             :           return false;
    1922                 :             :     }
    1923                 :             :   else
    1924                 :             :     return false;
    1925                 :             : 
    1926                 :             :   return true;
    1927                 :             : })
    1928                 :             : 
    1929                 :             : ;; Return true if OP is a constant pool in perm{w,d,b} which constains index
    1930                 :         556 : ;; match pmov{dw,wb,qd}.
    1931                 :             : (define_predicate "permvar_truncate_operand"
    1932                 :         556 :  (match_code "mem")
    1933                 :        1112 : {
    1934                 :           0 :   int nelt = GET_MODE_NUNITS (mode);
    1935                 :          16 :   int perm[128];
    1936                 :          16 :   int id;
    1937                 :             : 
    1938                 :          32 :   if (!INTEGRAL_MODE_P (mode) || !VECTOR_MODE_P (mode))
    1939                 :             :     return false;
    1940                 :             : 
    1941                 :          16 :   if (nelt < 2)
    1942                 :             :     return false;
    1943                 :             : 
    1944                 :          16 :   if (!ix86_extract_perm_from_pool_constant (&perm[0], op))
    1945                 :             :     return false;
    1946                 :             : 
    1947                 :          16 :   id = exact_log2 (nelt);
    1948                 :             : 
    1949                 :             :   /* Check that the permutation is suitable for pmovz{bw,wd,dq}.
    1950                 :             :      For example V16HImode to V8HImode
    1951                 :             :      { 0 2 4 6 8 10 12 14 * * * * * * * * }.  */
    1952                 :         232 :   for (int i = 0; i != nelt / 2; i++)
    1953                 :         216 :     if ((perm[i] & ((1 << id) - 1)) != i * 2)
    1954                 :             :       return false;
    1955                 :             : 
    1956                 :             :   return true;
    1957                 :             : })
    1958                 :             : 
    1959                 :             : ;; Return true if OP is a constant pool in shufb which constains index
    1960                 :          33 : ;; match pmovdw.
    1961                 :             : (define_predicate "pshufb_truncv4siv4hi_operand"
    1962                 :          16 :  (match_code "mem")
    1963                 :          49 : {
    1964                 :          16 :   int perm[128];
    1965                 :             : 
    1966                 :           8 :   if (mode != E_V16QImode)
    1967                 :             :     return false;
    1968                 :           8 : 
    1969                 :           8 :   if (!ix86_extract_perm_from_pool_constant (&perm[0], op))
    1970                 :             :     return false;
    1971                 :             : 
    1972                 :             :   /* Check that the permutation is suitable for pmovdw.
    1973                 :             :      For example V4SImode to V4HImode
    1974                 :             :      { 0 1 4 5 8 9 12 13 * * * * * * * * }.
    1975                 :             :      index = i % 2 + (i / 2) * 4.  */
    1976                 :          58 :   for (int i = 0; i != 8; i++)
    1977                 :             :     {
    1978                 :             :       /* if (SRC2[(i * 8)+7] = 1) then DEST[(i*8)+7..(i*8)+0] := 0;  */
    1979                 :          52 :       if (perm[i] & 128)
    1980                 :             :         return false;
    1981                 :             : 
    1982                 :          52 :       if ((perm[i] & 15) != ((i & 1) + (i & 0xFE) * 2))
    1983                 :             :         return false;
    1984                 :             :      }
    1985                 :             : 
    1986                 :             :   return true;
    1987                 :             : })
    1988                 :             : 
    1989                 :             : ;; Return true if OP is a constant pool in shufb which constains index
    1990                 :          11 : ;; match pmovdw.
    1991                 :             : (define_predicate "pshufb_truncv8hiv8qi_operand"
    1992                 :           8 :  (match_code "mem")
    1993                 :          17 : {
    1994                 :           6 :   int perm[128];
    1995                 :             : 
    1996                 :          11 :   if (mode != E_V16QImode)
    1997                 :             :     return false;
    1998                 :          11 : 
    1999                 :          11 :   if (!ix86_extract_perm_from_pool_constant (&perm[0], op))
    2000                 :             :     return false;
    2001                 :             : 
    2002                 :             :   /* Check that the permutation is suitable for pmovwb.
    2003                 :             :      For example V16QImode to V8QImode
    2004                 :             :      { 0 2 4 6 8 10 12 14 * * * * * * * * }.
    2005                 :             :      index = i % 2 + (i / 2) * 4.  */
    2006                 :          57 :   for (int i = 0; i != 8; i++)
    2007                 :             :     {
    2008                 :             :       /* if (SRC2[(i * 8)+7] = 1) then DEST[(i*8)+7..(i*8)+0] := 0;  */
    2009                 :          52 :       if (perm[i] & 128)
    2010                 :             :         return false;
    2011                 :             : 
    2012                 :          52 :       if ((perm[i] & 15) != i * 2)
    2013                 :             :          return false;
    2014                 :             :     }
    2015                 :             : 
    2016                 :             :   return true;
    2017                 :             : })
    2018                 :             : 
    2019                 :             : ;; Return true if OP is a parallel for an pmovz{bw,wd,dq} vec_select,
    2020                 :          14 : ;; where one of the two operands of the vec_concat is const0_operand.
    2021                 :             : (define_predicate "pmovzx_parallel"
    2022                 :          11 :   (and (match_code "parallel")
    2023                 :          19 :        (match_code "const_int" "a"))
    2024                 :           5 : {
    2025                 :     1295415 :   int nelt = XVECLEN (op, 0);
    2026                 :     1295415 :   int elt, i;
    2027                 :             : 
    2028                 :     1295415 :   if (nelt < 2)
    2029                 :             :     return false;
    2030                 :             : 
    2031                 :             :   /* Check that the permutation is suitable for pmovz{bw,wd,dq}.
    2032                 :             :      For example { 0 16 1 17 2 18 3 19 4 20 5 21 6 22 7 23 }.  */
    2033                 :     1295415 :   elt = INTVAL (XVECEXP (op, 0, 0));
    2034                 :     1295415 :   if (elt == 0)
    2035                 :             :     {
    2036                 :     2952311 :       for (i = 1; i < nelt; ++i)
    2037                 :     2536652 :         if ((i & 1) != 0)
    2038                 :             :           {
    2039                 :     1604139 :             if (INTVAL (XVECEXP (op, 0, i)) < nelt)
    2040                 :             :               return false;
    2041                 :             :           }
    2042                 :      932513 :         else if (INTVAL (XVECEXP (op, 0, i)) != i / 2)
    2043                 :             :           return false;
    2044                 :             :     }
    2045                 :             :   else
    2046                 :             :     return false;
    2047                 :             : 
    2048                 :             :   return true;
    2049                 :             : })
    2050                 :             : 
    2051                 :             : ;; Return true if OP is a const vector with duplicate value.
    2052                 :     1295415 : (define_predicate "const_vector_duplicate_operand"
    2053                 :             :   (match_code "const_vector")
    2054                 :     1295415 : {
    2055                 :     2590830 :   rtx elt = XVECEXP (op, 0, 0);
    2056                 :           0 :   int i, nelt = XVECLEN (op, 0);
    2057                 :             : 
    2058                 :          96 :   for (i = 1; i < nelt; ++i)
    2059                 :          93 :     if (!rtx_equal_p (elt, XVECEXP (op, 0, i)))
    2060                 :           3 :       return false;
    2061                 :             :   return true;
    2062                 :             : })
    2063                 :             : 
    2064                 :             : ;; Return true if OP is a parallel for a vbroadcast permute.
    2065                 :           3 : (define_predicate "avx_vbroadcast_operand"
    2066                 :             :   (and (match_code "parallel")
    2067                 :           3 :        (match_code "const_int" "a"))
    2068                 :           6 : {
    2069                 :           3 :   rtx elt = XVECEXP (op, 0, 0);
    2070                 :      428510 :   int i, nelt = XVECLEN (op, 0);
    2071                 :             : 
    2072                 :             :   /* Don't bother checking there are the right number of operands,
    2073                 :      428510 :      merely that they're all identical.  */
    2074                 :      516169 :   for (i = 1; i < nelt; ++i)
    2075                 :      286331 :     if (XVECEXP (op, 0, i) != elt)
    2076                 :             :       return false;
    2077                 :             :   return true;
    2078                 :             : })
    2079                 :             : 
    2080                 :             : ;; Return true if OP is a parallel for a vbroadcastf128 permute.
    2081                 :      428510 : (define_predicate "avx_vbroadcast128_operand"
    2082                 :             :   (and (match_code "parallel")
    2083                 :      428510 :        (match_code "const_int" "a"))
    2084                 :      857020 : {
    2085                 :           0 :   int i, nelt = XVECLEN (op, 0);
    2086                 :     1219217 :   int half = nelt / 2;
    2087                 :             : 
    2088                 :     1931629 :   for (i = 0; i < nelt; ++i)
    2089                 :     1219217 :     {
    2090                 :     1931496 :       int index = INTVAL (XVECEXP (op, 0, i));
    2091                 :     1931496 :       if ((i < half && index != i)
    2092                 :      810098 :           || (i >= half && index != (i - half)))
    2093                 :             :         return false;
    2094                 :             :     }
    2095                 :             : 
    2096                 :             :   return true;
    2097                 :             : })
    2098                 :             : 
    2099                 :             : ;; Return true if OP is a parallel for a palignr permute.
    2100                 :     1219217 : (define_predicate "palignr_operand"
    2101                 :             :   (and (match_code "parallel")
    2102                 :     1219217 :        (match_code "const_int" "a"))
    2103                 :     2438434 : {
    2104                 :           0 :   int elt = INTVAL (XVECEXP (op, 0, 0));
    2105                 :       26340 :   int i, nelt = XVECLEN (op, 0);
    2106                 :             : 
    2107                 :             :   /* Check that an order in the permutation is suitable for palignr.
    2108                 :       26340 :      For example, {5 6 7 0 1 2 3 4} is "palignr 5, xmm, xmm".  */
    2109                 :       59376 :   for (i = 1; i < nelt; ++i)
    2110                 :       55741 :     if (INTVAL (XVECEXP (op, 0, i)) != ((elt + i) % nelt))
    2111                 :             :       return false;
    2112                 :             :   return true;
    2113                 :             : })
    2114                 :             : 
    2115                 :             : ;; Return true if OP is a proper third operand to vpblendw256.
    2116                 :       26340 : (define_predicate "avx2_pblendw_operand"
    2117                 :             :   (match_code "const_int")
    2118                 :       26340 : {
    2119                 :       52680 :   HOST_WIDE_INT val = INTVAL (op);
    2120                 :           0 :   HOST_WIDE_INT low = val & 0xff;
    2121                 :        6696 :   return val == ((low << 8) | low);
    2122                 :             : })
    2123                 :             : 
    2124                 :        6696 : ;; Return true if OP is vector_operand or CONST_VECTOR.
    2125                 :        6696 : (define_predicate "general_vector_operand"
    2126                 :             :   (ior (match_operand 0 "vector_operand")
    2127                 :        6696 :        (match_code "const_vector")))
    2128                 :        6696 : 
    2129                 :             : ;; Return true if OP is either -1 constant or stored in register.
    2130                 :             : (define_predicate "register_or_constm1_operand"
    2131                 :             :   (ior (match_operand 0 "register_operand")
    2132                 :       12196 :        (and (match_code "const_int")
    2133                 :           0 :             (match_test "op == constm1_rtx"))))
    2134                 :       12196 : 
    2135                 :        2311 : ;; Return true if the vector ends with between 12 and 18 register saves using
    2136                 :             : ;; RAX as the base address.
    2137                 :             : (define_predicate "save_multiple"
    2138                 :      217171 :   (match_code "parallel")
    2139                 :        1324 : {
    2140                 :      217171 :   const unsigned len = XVECLEN (op, 0);
    2141                 :        1324 :   unsigned i;
    2142                 :             : 
    2143                 :             :   /* Starting from end of vector, count register saves.  */
    2144                 :      310004 :   for (i = 0; i < len; ++i)
    2145                 :             :     {
    2146                 :      310004 :       rtx src, dest, addr;
    2147                 :      310004 :       rtx e = XVECEXP (op, 0, len - 1 - i);
    2148                 :             : 
    2149                 :      310004 :       if (GET_CODE (e) != SET)
    2150                 :             :         break;
    2151                 :             : 
    2152                 :      302959 :       src  = SET_SRC (e);
    2153                 :      302959 :       dest = SET_DEST (e);
    2154                 :             : 
    2155                 :      302959 :       if (!REG_P (src) || !MEM_P (dest))
    2156                 :             :         break;
    2157                 :             : 
    2158                 :       92833 :       addr = XEXP (dest, 0);
    2159                 :             : 
    2160                 :             :       /* Good if dest address is in RAX.  */
    2161                 :       92833 :       if (REG_P (addr) && REGNO (addr) == AX_REG)
    2162                 :        4202 :         continue;
    2163                 :             : 
    2164                 :             :       /* Good if dest address is offset of RAX.  */
    2165                 :      177262 :       if (GET_CODE (addr) == PLUS
    2166                 :       88631 :           && REG_P (XEXP (addr, 0))
    2167                 :      177262 :           && REGNO (XEXP (addr, 0)) == AX_REG)
    2168                 :       88631 :         continue;
    2169                 :             : 
    2170                 :             :       break;
    2171                 :             :     }
    2172                 :      217171 :   return (i >= 12 && i <= 18);
    2173                 :             : })
    2174                 :             : 
    2175                 :             : 
    2176                 :      217171 : ;; Return true if the vector ends with between 12 and 18 register loads using
    2177                 :             : ;; RSI as the base address.
    2178                 :      434342 : (define_predicate "restore_multiple"
    2179                 :      217171 :   (match_code "parallel")
    2180                 :           0 : {
    2181                 :     6934258 :   const unsigned len = XVECLEN (op, 0);
    2182                 :     6934258 :   unsigned i;
    2183                 :             : 
    2184                 :     6934258 :   /* Starting from end of vector, count register restores.  */
    2185                 :     7040836 :   for (i = 0; i < len; ++i)
    2186                 :             :     {
    2187                 :     7040836 :       rtx src, dest, addr;
    2188                 :     7040836 :       rtx e = XVECEXP (op, 0, len - 1 - i);
    2189                 :             : 
    2190                 :     7040836 :       if (GET_CODE (e) != SET)
    2191                 :             :         break;
    2192                 :             : 
    2193                 :     3957091 :       src  = SET_SRC (e);
    2194                 :     3957091 :       dest = SET_DEST (e);
    2195                 :             : 
    2196                 :     3957091 :       if (!MEM_P (src) || !REG_P (dest))
    2197                 :             :         break;
    2198                 :             : 
    2199                 :     1175764 :       addr = XEXP (src, 0);
    2200                 :             : 
    2201                 :             :       /* Good if src address is in RSI.  */
    2202                 :     1175764 :       if (REG_P (addr) && REGNO (addr) == SI_REG)
    2203                 :        5137 :         continue;
    2204                 :             : 
    2205                 :             :       /* Good if src address is offset of RSI.  */
    2206                 :     1272068 :       if (GET_CODE (addr) == PLUS
    2207                 :      798694 :           && REG_P (XEXP (addr, 0))
    2208                 :     1893579 :           && REGNO (XEXP (addr, 0)) == SI_REG)
    2209                 :      101441 :         continue;
    2210                 :             : 
    2211                 :             :       break;
    2212                 :             :     }
    2213                 :     6934258 :   return (i >= 12 && i <= 18);
    2214                 :             : })
    2215                 :             : 
    2216                 :             : ;; Keylocker specific predicates
    2217                 :     6934258 : (define_predicate "encodekey128_operation"
    2218                 :             :   (match_code "parallel")
    2219                 :    13868516 : {
    2220                 :     6934258 :   unsigned i;
    2221                 :           0 :   rtx elt;
    2222                 :             : 
    2223                 :         107 :   if (XVECLEN (op, 0) != 8)
    2224                 :             :     return false;
    2225                 :         107 : 
    2226                 :         388 :   for(i = 0; i < 3; i++)
    2227                 :             :     {
    2228                 :         291 :       elt = XVECEXP (op, 0, i + 1);
    2229                 :         291 :       if (GET_CODE (elt) != SET
    2230                 :         291 :           || GET_CODE (SET_DEST (elt)) != REG
    2231                 :         291 :           || GET_MODE (SET_DEST (elt)) != V2DImode
    2232                 :         291 :           || REGNO (SET_DEST (elt)) != GET_SSE_REGNO (i)
    2233                 :         291 :           || GET_CODE (SET_SRC (elt)) != UNSPEC_VOLATILE
    2234                 :         291 :           || GET_MODE (SET_SRC (elt)) != V2DImode
    2235                 :         291 :           || XVECLEN(SET_SRC (elt), 0) != 1
    2236                 :         582 :           || XVECEXP(SET_SRC (elt), 0, 0) != const0_rtx)
    2237                 :             :         return false;
    2238                 :             :     }
    2239                 :             : 
    2240                 :         388 :   for(i = 4; i < 7; i++)
    2241                 :             :     {
    2242                 :         291 :       elt = XVECEXP (op, 0, i);
    2243                 :         291 :       if (GET_CODE (elt) != CLOBBER
    2244                 :         291 :           || GET_MODE (elt) != VOIDmode
    2245                 :         291 :           || GET_CODE (XEXP (elt, 0)) != REG
    2246                 :         291 :           || GET_MODE (XEXP (elt, 0)) != V2DImode
    2247                 :         582 :           || REGNO (XEXP (elt, 0)) != GET_SSE_REGNO (i))
    2248                 :             :         return false;
    2249                 :             :     }
    2250                 :             : 
    2251                 :          97 :   elt = XVECEXP (op, 0, 7);
    2252                 :          97 :   if (GET_CODE (elt) != CLOBBER
    2253                 :          97 :       || GET_MODE (elt) != VOIDmode
    2254                 :          97 :       || GET_CODE (XEXP (elt, 0)) != REG
    2255                 :          97 :       || GET_MODE (XEXP (elt, 0)) != CCmode
    2256                 :         194 :       || REGNO (XEXP (elt, 0)) != FLAGS_REG)
    2257                 :             :     return false;
    2258                 :             :   return true;
    2259                 :             : })
    2260                 :             : 
    2261                 :             : (define_predicate "encodekey256_operation"
    2262                 :         107 :   (match_code "parallel")
    2263                 :             : {
    2264                 :         334 :   unsigned i;
    2265                 :         107 :   rtx elt;
    2266                 :           0 : 
    2267                 :         120 :   if (XVECLEN (op, 0) != 9)
    2268                 :             :     return false;
    2269                 :             : 
    2270                 :         120 :   elt = SET_SRC (XVECEXP (op, 0, 0));
    2271                 :         111 :   elt = XVECEXP (elt, 0, 2);
    2272                 :         111 :   if (!REG_P (elt)
    2273                 :         111 :       || REGNO(elt) != GET_SSE_REGNO (1))
    2274                 :             :     return false;
    2275                 :             : 
    2276                 :         555 :   for(i = 0; i < 4; i++)
    2277                 :             :     {
    2278                 :         444 :       elt = XVECEXP (op, 0, i + 1);
    2279                 :         444 :       if (GET_CODE (elt) != SET
    2280                 :         444 :           || GET_CODE (SET_DEST (elt)) != REG
    2281                 :         444 :           || GET_MODE (SET_DEST (elt)) != V2DImode
    2282                 :         444 :           || REGNO (SET_DEST (elt)) != GET_SSE_REGNO (i)
    2283                 :         444 :           || GET_CODE (SET_SRC (elt)) != UNSPEC_VOLATILE
    2284                 :         444 :           || GET_MODE (SET_SRC (elt)) != V2DImode
    2285                 :         444 :           || XVECLEN(SET_SRC (elt), 0) != 1
    2286                 :         888 :           || XVECEXP(SET_SRC (elt), 0, 0) != const0_rtx)
    2287                 :             :         return false;
    2288                 :             :     }
    2289                 :             : 
    2290                 :         444 :   for(i = 4; i < 7; i++)
    2291                 :             :     {
    2292                 :         333 :       elt = XVECEXP (op, 0, i + 1);
    2293                 :         333 :       if (GET_CODE (elt) != CLOBBER
    2294                 :         333 :           || GET_MODE (elt) != VOIDmode
    2295                 :         333 :           || GET_CODE (XEXP (elt, 0)) != REG
    2296                 :         333 :           || GET_MODE (XEXP (elt, 0)) != V2DImode
    2297                 :         666 :           || REGNO (XEXP (elt, 0)) != GET_SSE_REGNO (i))
    2298                 :             :         return false;
    2299                 :             :     }
    2300                 :             : 
    2301                 :         111 :   elt = XVECEXP (op, 0, 8);
    2302                 :         111 :   if (GET_CODE (elt) != CLOBBER
    2303                 :         111 :       || GET_MODE (elt) != VOIDmode
    2304                 :         111 :       || GET_CODE (XEXP (elt, 0)) != REG
    2305                 :         111 :       || GET_MODE (XEXP (elt, 0)) != CCmode
    2306                 :         222 :       || REGNO (XEXP (elt, 0)) != FLAGS_REG)
    2307                 :             :     return false;
    2308                 :             :   return true;
    2309                 :             : })
    2310                 :             : 
    2311                 :             : 
    2312                 :         120 : (define_predicate "aeswidekl_operation"
    2313                 :             :   (match_code "parallel")
    2314                 :         240 : {
    2315                 :         120 :   unsigned i;
    2316                 :           0 :   rtx elt;
    2317                 :             : 
    2318                 :        5796 :   for (i = 0; i < 8; i++)
    2319                 :             :     {
    2320                 :         660 :       elt = XVECEXP (op, 0, i + 1);
    2321                 :        5168 :       if (GET_CODE (elt) != SET
    2322                 :        5168 :           || GET_CODE (SET_DEST (elt)) != REG
    2323                 :        5168 :           || GET_MODE (SET_DEST (elt)) != V2DImode
    2324                 :        5168 :           || REGNO (SET_DEST (elt)) != GET_SSE_REGNO (i)
    2325                 :        5168 :           || GET_CODE (SET_SRC (elt)) != UNSPEC_VOLATILE
    2326                 :        5168 :           || GET_MODE (SET_SRC (elt)) != V2DImode
    2327                 :        5168 :           || XVECLEN (SET_SRC (elt), 0) != 1
    2328                 :        5168 :           || !REG_P (XVECEXP (SET_SRC (elt), 0, 0))
    2329                 :       10304 :           || REGNO (XVECEXP (SET_SRC (elt), 0, 0)) != GET_SSE_REGNO (i))
    2330                 :             :         return false;
    2331                 :             :     }
    2332                 :             :   return true;
    2333                 :             : })
    2334                 :             : 
    2335                 :             : ;; Return true if OP is a memory operand that can be also used in APX
    2336                 :         660 : ;; EVEX-encoded patterns (i.e. APX NDD/NF) with immediate operand.  With
    2337                 :             : ;; non-default address space, segment register or address size prefix,
    2338                 :        1320 : ;; APX EVEX-encoded instruction length can exceed the 15 byte size limit.
    2339                 :         660 : (define_predicate "apx_evex_memory_operand"
    2340                 :           0 :   (match_operand 0 "memory_operand")
    2341                 :             : {
    2342                 :             :   /* OK if immediate operand size < 4 bytes.  */
    2343                 :        1689 :   if (GET_MODE_SIZE (mode) < 4)
    2344                 :        1689 :     return true;
    2345                 :             : 
    2346                 :        1530 :   bool default_addr = ADDR_SPACE_GENERIC_P (MEM_ADDR_SPACE (op));
    2347                 :        1698 :   bool address_size_prefix = TARGET_X32 && Pmode == SImode;
    2348                 :             : 
    2349                 :        1530 :   struct ix86_address parts;
    2350                 :        1530 :   int ok;
    2351                 :             : 
    2352                 :        1530 :   op = XEXP (op, 0);
    2353                 :        1530 :   ok = ix86_decompose_address (op, &parts);
    2354                 :        1530 :   gcc_assert (ok);
    2355                 :             : 
    2356                 :        1530 :   if (default_addr)
    2357                 :             :     {
    2358                 :             :       /* Default address space.  */
    2359                 :             : 
    2360                 :             :       /* Not OK with address size prefix, index register and disp.  */
    2361                 :         694 :       if (address_size_prefix
    2362                 :         168 :           && parts.index
    2363                 :          42 :           && parts.disp
    2364                 :          42 :           && parts.disp != const0_rtx)
    2365                 :             :         return false;
    2366                 :             :     }
    2367                 :             :   else
    2368                 :             :     {
    2369                 :             :       /* Non-default address space.  */
    2370                 :             : 
    2371                 :             :       /* Not OK without base register.  */
    2372                 :         836 :       if (!parts.base)
    2373                 :             :         return false;
    2374                 :             : 
    2375                 :             :       /* Not OK with disp and address size prefix.  */
    2376                 :         668 :       if (address_size_prefix && parts.disp)
    2377                 :             :         return false;
    2378                 :             :     }
    2379                 :             : 
    2380                 :             :   return true;
    2381                 :             : })
    2382                 :             : 
    2383                 :             : ;; Return true if OP is a memory operand which can be used in APX EVEX-encoded
    2384                 :        1900 : ;; ADD patterns (i.e. APX NDD/NF) for with register source operand.
    2385                 :             : ;; UNSPEC_GOTNTPOFF memory operand is allowed with APX EVEX-encoded ADD only if
    2386                 :        3589 : ;; R_X86_64_CODE_6_GOTTPOFF works.
    2387                 :        1689 : (define_predicate "apx_evex_add_memory_operand"
    2388                 :             :   (match_operand 0 "memory_operand")
    2389                 :             : {
    2390                 :             :   /* OK if "add %reg1, name@gottpoff(%rip), %reg2" or
    2391                 :             :    "{nf} add name@gottpoff(%rip), %reg1" are supported.  */
    2392                 :             :   if (HAVE_AS_R_X86_64_CODE_6_GOTTPOFF)
    2393                 :             :     return true;
    2394                 :             : 
    2395                 :             :   op = XEXP (op, 0);
    2396                 :             : 
    2397                 :             :   /* Disallow APX EVEX-encoded ADD with UNSPEC_GOTNTPOFF.  */
    2398                 :             :   if (GET_CODE (op) == CONST
    2399                 :             :       && GET_CODE (XEXP (op, 0)) == UNSPEC
    2400                 :             :       && XINT (XEXP (op, 0), 1) == UNSPEC_GOTNTPOFF)
    2401                 :             :     return false;
    2402                 :             : 
    2403                 :             :   return true;
    2404                 :             : })
    2405                 :             : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
    2406                 :             : /* (content generated from line coverage data) */
    2407                 :        1021 : /* ... */
    2408                 :             : /* ... */
    2409                 :        1021 : /* ... */
    2410                 :        1021 : /* ... */
    2411                 :             : /* ... */
    2412                 :             : /* ... */
    2413                 :             : /* ... */
    2414                 :   989341268 : /* ... */
    2415                 :             : /* ... */
    2416                 :   989341268 : /* ... */
    2417                 :             : /* ... */
    2418                 :             : /* ... */
    2419                 :             : /* ... */
    2420                 :           0 : /* ... */
    2421                 :           0 : /* ... */
    2422                 :           0 : /* ... */
    2423                 :           0 : /* ... */
    2424                 :           0 : /* ... */
    2425                 :           0 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
    2426                 :   583943351 : /* (content generated from line coverage data) */
    2427                 :   583943351 : /* ... */
    2428                 :             : /* ... */
    2429                 :             : /* ... */
    2430                 :     7527363 : /* ... */
    2431                 :             : /* ... */
    2432                 :   135430134 : /* ... */
    2433                 :             : /* ... */
    2434                 :      145124 : /* ... */
    2435                 :             : /* ... */
    2436                 :     1566738 : /* ... */
    2437                 :             : /* ... */
    2438                 :     1403513 : /* ... */
    2439                 :             : /* ... */
    2440                 :    55786479 : /* ... */
    2441                 :             : /* ... */
    2442                 :    50861850 : /* ... */
    2443                 :             : /* ... */
    2444                 :    99466867 : /* ... */
    2445                 :             : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
    2446                 :    39436765 : /* (content generated from line coverage data) */
    2447                 :             : /* ... */
    2448                 :   118280943 : /* ... */
    2449                 :             : /* ... */
    2450                 :    74036769 : /* ... */
    2451                 :             : /* ... */
    2452                 :         806 : /* ... */
    2453                 :             : /* ... */
    2454                 :           0 : /* ... */
    2455                 :           0 : /* ... */
    2456                 :           0 : /* ... */
    2457                 :           0 : /* ... */
    2458                 :           0 : /* ... */
    2459                 :           0 : /* ... */
    2460                 :           0 : /* ... */
    2461                 :           0 : /* ... */
    2462                 :           0 : /* ... */
    2463                 :           0 : /* ... */
    2464                 :           0 : /* ... */
    2465                 :           0 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
    2466                 :           0 : /* (content generated from line coverage data) */
    2467                 :           0 : /* ... */
    2468                 :           0 : /* ... */
    2469                 :           0 : /* ... */
    2470                 :           0 : /* ... */
    2471                 :           0 : /* ... */
    2472                 :           0 : /* ... */
    2473                 :           0 : /* ... */
    2474                 :           0 : /* ... */
    2475                 :           0 : /* ... */
    2476                 :           0 : /* ... */
    2477                 :           0 : /* ... */
    2478                 :           0 : /* ... */
    2479                 :           0 : /* ... */
    2480                 :           0 : /* ... */
    2481                 :           0 : /* ... */
    2482                 :           0 : /* ... */
    2483                 :           0 : /* ... */
    2484                 :    40015465 : /* ... */
    2485                 :    40015465 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
    2486                 :             : /* (content generated from line coverage data) */
    2487                 :       22646 : /* ... */
    2488                 :             : /* ... */
    2489                 :             : /* ... */
    2490                 :           0 : /* ... */
    2491                 :           0 : /* ... */
    2492                 :           0 : /* ... */
    2493                 :           0 : /* ... */
    2494                 :     3412938 : /* ... */
    2495                 :     3412938 : /* ... */
    2496                 :             : /* ... */
    2497                 :             : /* ... */
    2498                 :        4772 : /* ... */
    2499                 :             : /* ... */
    2500                 :      342652 : /* ... */
    2501                 :             : /* ... */
    2502                 :     2722445 : /* ... */
    2503                 :             : /* ... */
    2504                 :      269308 : /* ... */
    2505                 :             : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
    2506                 :        1418 : /* (content generated from line coverage data) */
    2507                 :             : /* ... */
    2508                 :         236 : /* ... */
    2509                 :             : /* ... */
    2510                 :        4822 : /* ... */
    2511                 :             : /* ... */
    2512                 :           0 : /* ... */
    2513                 :           0 : /* ... */
    2514                 :   353684241 : /* ... */
    2515                 :   353684241 : /* ... */
    2516                 :             : /* ... */
    2517                 :             : /* ... */
    2518                 :     9474680 : /* ... */
    2519                 :             : /* ... */
    2520                 :     1356582 : /* ... */
    2521                 :             : /* ... */
    2522                 :     1553919 : /* ... */
    2523                 :             : /* ... */
    2524                 :       19171 : /* ... */
    2525                 :             : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
    2526                 :   194664458 : /* (content generated from line coverage data) */
    2527                 :             : /* ... */
    2528                 :     1082832 : /* ... */
    2529                 :             : /* ... */
    2530                 :   140916851 : /* ... */
    2531                 :             : /* ... */
    2532                 :     3131439 : /* ... */
    2533                 :             : /* ... */
    2534                 :      384367 : /* ... */
    2535                 :             : /* ... */
    2536                 :     1075579 : /* ... */
    2537                 :             : /* ... */
    2538                 :           0 : /* ... */
    2539                 :           0 : /* ... */
    2540                 :           0 : /* ... */
    2541                 :           0 : /* ... */
    2542                 :           0 : /* ... */
    2543                 :           0 : /* ... */
    2544                 :           0 : /* ... */
    2545                 :           0 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
    2546                 :           0 : /* (content generated from line coverage data) */
    2547                 :           0 : /* ... */
    2548                 :           0 : /* ... */
    2549                 :           0 : /* ... */
    2550                 :           0 : /* ... */
    2551                 :           0 : /* ... */
    2552                 :           0 : /* ... */
    2553                 :           0 : /* ... */
    2554                 :     8285273 : /* ... */
    2555                 :     8285273 : /* ... */
    2556                 :             : /* ... */
    2557                 :             : /* ... */
    2558                 :     1084904 : /* ... */
    2559                 :             : /* ... */
    2560                 :           0 : /* ... */
    2561                 :             : /* ... */
    2562                 :           0 : /* ... */
    2563                 :             : /* ... */
    2564                 :           0 : /* ... */
    2565                 :             : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
    2566                 :           0 : /* (content generated from line coverage data) */
    2567                 :             : /* ... */
    2568                 :           0 : /* ... */
    2569                 :             : /* ... */
    2570                 :      213192 : /* ... */
    2571                 :             : /* ... */
    2572                 :        8563 : /* ... */
    2573                 :             : /* ... */
    2574                 :     6064962 : /* ... */
    2575                 :             : /* ... */
    2576                 :      153803 : /* ... */
    2577                 :             : /* ... */
    2578                 :      265633 : /* ... */
    2579                 :             : /* ... */
    2580                 :        3661 : /* ... */
    2581                 :             : /* ... */
    2582                 :           0 : /* ... */
    2583                 :             : /* ... */
    2584                 :           0 : /* ... */
    2585                 :           0 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
    2586                 :           0 : /* (content generated from line coverage data) */
    2587                 :           0 : /* ... */
    2588                 :           0 : /* ... */
    2589                 :           0 : /* ... */
    2590                 :           0 : /* ... */
    2591                 :           0 : /* ... */
    2592                 :           0 : /* ... */
    2593                 :           0 : /* ... */
    2594                 :           0 : /* ... */
    2595                 :           0 : /* ... */
    2596                 :           0 : /* ... */
    2597                 :           0 : /* ... */
    2598                 :           0 : /* ... */
    2599                 :           0 : /* ... */
    2600                 :           0 : /* ... */
    2601                 :           0 : /* ... */
    2602                 :           0 : /* ... */
    2603                 :           0 : /* ... */
    2604                 :           0 : /* ... */
    2605                 :           0 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
    2606                 :           0 : /* (content generated from line coverage data) */
    2607                 :           0 : /* ... */
    2608                 :           0 : /* ... */
    2609                 :           0 : /* ... */
    2610                 :           0 : /* ... */
    2611                 :           0 : /* ... */
    2612                 :             : /* ... */
    2613                 :             : /* ... */
    2614                 :        1337 : /* ... */
    2615                 :             : /* ... */
    2616                 :             : /* ... */
    2617                 :             : /* ... */
    2618                 :             : /* ... */
    2619                 :             : /* ... */
    2620                 :             : /* ... */
    2621                 :             : /* ... */
    2622                 :             : /* ... */
    2623                 :             : /* ... */
    2624                 :             : /* ... */
    2625                 :             : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
    2626                 :             : /* (content generated from line coverage data) */
    2627                 :             : /* ... */
    2628                 :             : /* ... */
    2629                 :             : /* ... */
    2630                 :             : /* ... */
    2631                 :             : /* ... */
    2632                 :             : /* ... */
    2633                 :             : /* ... */
    2634                 :             : /* ... */
    2635                 :             : /* ... */
    2636                 :             : /* ... */
    2637                 :             : /* ... */
    2638                 :             : /* ... */
    2639                 :             : /* ... */
    2640                 :             : /* ... */
    2641                 :             : /* ... */
    2642                 :             : /* ... */
    2643                 :             : /* ... */
    2644                 :             : /* ... */
    2645                 :             : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
    2646                 :             : /* (content generated from line coverage data) */
    2647                 :             : /* ... */
    2648                 :             : /* ... */
    2649                 :             : /* ... */
    2650                 :             : /* ... */
    2651                 :             : /* ... */
    2652                 :             : /* ... */
    2653                 :             : /* ... */
    2654                 :             : /* ... */
    2655                 :             : /* ... */
    2656                 :             : /* ... */
    2657                 :             : /* ... */
    2658                 :             : /* ... */
    2659                 :             : /* ... */
    2660                 :             : /* ... */
    2661                 :             : /* ... */
    2662                 :             : /* ... */
    2663                 :             : /* ... */
    2664                 :             : /* ... */
    2665                 :             : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
    2666                 :             : /* (content generated from line coverage data) */
    2667                 :             : /* ... */
    2668                 :             : /* ... */
    2669                 :             : /* ... */
    2670                 :             : /* ... */
    2671                 :             : /* ... */
    2672                 :             : /* ... */
    2673                 :             : /* ... */
    2674                 :             : /* ... */
    2675                 :             : /* ... */
    2676                 :             : /* ... */
    2677                 :             : /* ... */
    2678                 :             : /* ... */
    2679                 :             : /* ... */
    2680                 :             : /* ... */
    2681                 :             : /* ... */
    2682                 :             : /* ... */
    2683                 :             : /* ... */
    2684                 :             : /* ... */
    2685                 :             : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
    2686                 :             : /* (content generated from line coverage data) */
    2687                 :             : /* ... */
    2688                 :             : /* ... */
    2689                 :             : /* ... */
    2690                 :             : /* ... */
    2691                 :             : /* ... */
    2692                 :             : /* ... */
    2693                 :             : /* ... */
    2694                 :             : /* ... */
    2695                 :             : /* ... */
    2696                 :             : /* ... */
    2697                 :             : /* ... */
    2698                 :             : /* ... */
    2699                 :             : /* ... */
    2700                 :             : /* ... */
    2701                 :             : /* ... */
    2702                 :             : /* ... */
    2703                 :             : /* ... */
    2704                 :             : /* ... */
    2705                 :             : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
    2706                 :             : /* (content generated from line coverage data) */
    2707                 :             : /* ... */
    2708                 :             : /* ... */
    2709                 :             : /* ... */
    2710                 :             : /* ... */
    2711                 :             : /* ... */
    2712                 :             : /* ... */
    2713                 :             : /* ... */
    2714                 :             : /* ... */
    2715                 :             : /* ... */
    2716                 :             : /* ... */
    2717                 :             : /* ... */
    2718                 :             : /* ... */
    2719                 :             : /* ... */
    2720                 :             : /* ... */
    2721                 :             : /* ... */
    2722                 :             : /* ... */
    2723                 :             : /* ... */
    2724                 :             : /* ... */
    2725                 :             : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
    2726                 :             : /* (content generated from line coverage data) */
    2727                 :             : /* ... */
    2728                 :             : /* ... */
    2729                 :             : /* ... */
    2730                 :             : /* ... */
    2731                 :             : /* ... */
    2732                 :             : /* ... */
    2733                 :             : /* ... */
    2734                 :             : /* ... */
    2735                 :             : /* ... */
    2736                 :             : /* ... */
    2737                 :             : /* ... */
    2738                 :             : /* ... */
    2739                 :             : /* ... */
    2740                 :             : /* ... */
    2741                 :             : /* ... */
    2742                 :             : /* ... */
    2743                 :             : /* ... */
    2744                 :             : /* ... */
    2745                 :             : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
    2746                 :             : /* (content generated from line coverage data) */
    2747                 :             : /* ... */
    2748                 :             : /* ... */
    2749                 :             : /* ... */
    2750                 :             : /* ... */
    2751                 :             : /* ... */
    2752                 :             : /* ... */
    2753                 :             : /* ... */
    2754                 :             : /* ... */
    2755                 :             : /* ... */
    2756                 :             : /* ... */
    2757                 :             : /* ... */
    2758                 :             : /* ... */
    2759                 :             : /* ... */
    2760                 :             : /* ... */
    2761                 :             : /* ... */
    2762                 :             : /* ... */
    2763                 :             : /* ... */
    2764                 :             : /* ... */
    2765                 :             : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
    2766                 :             : /* (content generated from line coverage data) */
    2767                 :             : /* ... */
    2768                 :             : /* ... */
    2769                 :             : /* ... */
    2770                 :             : /* ... */
    2771                 :             : /* ... */
    2772                 :             : /* ... */
    2773                 :             : /* ... */
    2774                 :             : /* ... */
    2775                 :             : /* ... */
    2776                 :             : /* ... */
    2777                 :             : /* ... */
    2778                 :             : /* ... */
    2779                 :             : /* ... */
    2780                 :             : /* ... */
    2781                 :             : /* ... */
    2782                 :             : /* ... */
    2783                 :             : /* ... */
    2784                 :             : /* ... */
    2785                 :             : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
    2786                 :             : /* (content generated from line coverage data) */
    2787                 :             : /* ... */
    2788                 :             : /* ... */
    2789                 :             : /* ... */
    2790                 :             : /* ... */
    2791                 :             : /* ... */
    2792                 :             : /* ... */
    2793                 :             : /* ... */
    2794                 :             : /* ... */
    2795                 :             : /* ... */
    2796                 :             : /* ... */
    2797                 :             : /* ... */
    2798                 :             : /* ... */
    2799                 :             : /* ... */
    2800                 :             : /* ... */
    2801                 :             : /* ... */
    2802                 :             : /* ... */
    2803                 :             : /* ... */
    2804                 :             : /* ... */
    2805                 :             : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
    2806                 :             : /* (content generated from line coverage data) */
    2807                 :             : /* ... */
    2808                 :             : /* ... */
    2809                 :             : /* ... */
    2810                 :             : /* ... */
    2811                 :             : /* ... */
    2812                 :             : /* ... */
    2813                 :             : /* ... */
    2814                 :             : /* ... */
    2815                 :             : /* ... */
    2816                 :             : /* ... */
    2817                 :             : /* ... */
    2818                 :             : /* ... */
    2819                 :             : /* ... */
    2820                 :             : /* ... */
    2821                 :             : /* ... */
    2822                 :             : /* ... */
    2823                 :             : /* ... */
    2824                 :             : /* ... */
    2825                 :             : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
    2826                 :             : /* (content generated from line coverage data) */
    2827                 :             : /* ... */
    2828                 :             : /* ... */
    2829                 :             : /* ... */
    2830                 :             : /* ... */
    2831                 :             : /* ... */
    2832                 :             : /* ... */
    2833                 :             : /* ... */
    2834                 :             : /* ... */
    2835                 :             : /* ... */
    2836                 :             : /* ... */
    2837                 :             : /* ... */
    2838                 :             : /* ... */
    2839                 :             : /* ... */
    2840                 :             : /* ... */
    2841                 :             : /* ... */
    2842                 :             : /* ... */
    2843                 :             : /* ... */
    2844                 :             : /* ... */
    2845                 :             : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
    2846                 :             : /* (content generated from line coverage data) */
    2847                 :             : /* ... */
    2848                 :             : /* ... */
    2849                 :             : /* ... */
    2850                 :             : /* ... */
    2851                 :             : /* ... */
    2852                 :             : /* ... */
    2853                 :             : /* ... */
    2854                 :             : /* ... */
    2855                 :             : /* ... */
    2856                 :             : /* ... */
    2857                 :             : /* ... */
    2858                 :             : /* ... */
    2859                 :             : /* ... */
    2860                 :             : /* ... */
    2861                 :             : /* ... */
    2862                 :             : /* ... */
    2863                 :             : /* ... */
    2864                 :             : /* ... */
    2865                 :             : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
    2866                 :             : /* (content generated from line coverage data) */
    2867                 :             : /* ... */
    2868                 :             : /* ... */
    2869                 :             : /* ... */
    2870                 :             : /* ... */
    2871                 :             : /* ... */
    2872                 :             : /* ... */
    2873                 :             : /* ... */
    2874                 :             : /* ... */
    2875                 :             : /* ... */
    2876                 :             : /* ... */
    2877                 :  7272160937 : /* ... */
    2878                 :             : /* ... */
    2879                 :  7272160937 : /* ... */
    2880                 :             : /* ... */
    2881                 :             : /* ... */
    2882                 :             : /* ... */
    2883                 :   143860191 : /* ... */
    2884                 :             : /* ... */
    2885                 :    53345863 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
    2886                 :    21704697 : /* (content generated from line coverage data) */
    2887                 :             : /* ... */
    2888                 :    23524828 : /* ... */
    2889                 :     9021417 : /* ... */
    2890                 :      690753 : /* ... */
    2891                 :      825860 : /* ... */
    2892                 :      710238 : /* ... */
    2893                 :     1425515 : /* ... */
    2894                 :   215995713 : /* ... */
    2895                 :       81884 : /* ... */
    2896                 :        8655 : /* ... */
    2897                 :      853407 : /* ... */
    2898                 :    43772971 : /* ... */
    2899                 :   661003974 : /* ... */
    2900                 :   237406207 : /* ... */
    2901                 :  1486103355 : /* ... */
    2902                 :       13721 : /* ... */
    2903                 :     9474680 : /* ... */
    2904                 :     1356582 : /* ... */
    2905                 :           0 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
    2906                 :     1553919 : /* (content generated from line coverage data) */
    2907                 :       14447 : /* ... */
    2908                 :   184210034 : /* ... */
    2909                 :      308727 : /* ... */
    2910                 :   140762606 : /* ... */
    2911                 :     2842913 : /* ... */
    2912                 :      341317 : /* ... */
    2913                 :             : /* ... */
    2914                 :       80886 : /* ... */
    2915                 :     6064962 : /* ... */
    2916                 :             : /* ... */
    2917                 :             : /* ... */
    2918                 :             : /* ... */
    2919                 :             : /* ... */
    2920                 :             : /* ... */
    2921                 :             : /* ... */
    2922                 :             : /* ... */
    2923                 :             : /* ... */
    2924                 :             : /* ... */
    2925                 :             : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
    2926                 :             : /* (content generated from line coverage data) */
    2927                 :             : /* ... */
    2928                 :             : /* ... */
    2929                 :             : /* ... */
    2930                 :             : /* ... */
    2931                 :             : /* ... */
    2932                 :             : /* ... */
    2933                 :             : /* ... */
    2934                 :             : /* ... */
    2935                 :             : /* ... */
    2936                 :             : /* ... */
    2937                 :             : /* ... */
    2938                 :             : /* ... */
    2939                 :             : /* ... */
    2940                 :             : /* ... */
    2941                 :             : /* ... */
    2942                 :             : /* ... */
    2943                 :             : /* ... */
    2944                 :             : /* ... */
    2945                 :             : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
    2946                 :             : /* (content generated from line coverage data) */
    2947                 :             : /* ... */
    2948                 :             : /* ... */
    2949                 :             : /* ... */
    2950                 :             : /* ... */
    2951                 :             : /* ... */
    2952                 :             : /* ... */
    2953                 :             : /* ... */
    2954                 :             : /* ... */
    2955                 :             : /* ... */
    2956                 :             : /* ... */
    2957                 :             : /* ... */
    2958                 :             : /* ... */
    2959                 :             : /* ... */
    2960                 :             : /* ... */
    2961                 :             : /* ... */
    2962                 :             : /* ... */
    2963                 :             : /* ... */
    2964                 :             : /* ... */
    2965                 :             : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
    2966                 :             : /* (content generated from line coverage data) */
    2967                 :             : /* ... */
    2968                 :             : /* ... */
    2969                 :             : /* ... */
    2970                 :             : /* ... */
    2971                 :             : /* ... */
    2972                 :             : /* ... */
    2973                 :             : /* ... */
    2974                 :             : /* ... */
    2975                 :             : /* ... */
    2976                 :             : /* ... */
    2977                 :             : /* ... */
    2978                 :             : /* ... */
    2979                 :             : /* ... */
    2980                 :             : /* ... */
    2981                 :             : /* ... */
    2982                 :             : /* ... */
    2983                 :     7126994 : /* ... */
    2984                 :             : /* ... */
    2985                 :     7126994 : /* /home/worker/buildworker/tiber-lcov/build/gcc/config/i386/predicates.md not long enough */
    2986                 :             : /* (content generated from line coverage data) */
    2987                 :     1395530 : /* ... */
    2988                 :     1395530 : /* ... */
        

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.