Home | History | Annotate | Download | only in baseResults
      1 spv.loopsArtificial.frag
      2 // Module Version 10000
      3 // Generated by (magic number): 80007
      4 // Id's are bound by 158
      5 
      6                               Capability Shader
      7                1:             ExtInstImport  "GLSL.std.450"
      8                               MemoryModel Logical GLSL450
      9                               EntryPoint Fragment 4  "main" 11 17 27 80 140 142 143 144 145 146 147 148 149 150 151 152 153 154 157
     10                               ExecutionMode 4 OriginUpperLeft
     11                               Source GLSL 140
     12                               Name 4  "main"
     13                               Name 9  "color"
     14                               Name 11  "BaseColor"
     15                               Name 17  "bigColor4"
     16                               Name 27  "d4"
     17                               Name 80  "d13"
     18                               Name 140  "gl_FragColor"
     19                               Name 142  "bigColor"
     20                               Name 143  "bigColor1_1"
     21                               Name 144  "bigColor1_2"
     22                               Name 145  "bigColor1_3"
     23                               Name 146  "bigColor2"
     24                               Name 147  "bigColor3"
     25                               Name 148  "bigColor5"
     26                               Name 149  "bigColor6"
     27                               Name 150  "bigColor7"
     28                               Name 151  "bigColor8"
     29                               Name 152  "d"
     30                               Name 153  "d2"
     31                               Name 154  "d3"
     32                               Name 157  "Count"
     33                               Decorate 140(gl_FragColor) Location 0
     34                               Decorate 157(Count) Flat
     35                2:             TypeVoid
     36                3:             TypeFunction 2
     37                6:             TypeFloat 32
     38                7:             TypeVector 6(float) 4
     39                8:             TypePointer Function 7(fvec4)
     40               10:             TypePointer Input 7(fvec4)
     41    11(BaseColor):     10(ptr) Variable Input
     42    17(bigColor4):     10(ptr) Variable Input
     43               21:             TypeInt 32 0
     44               22:     21(int) Constant 0
     45               23:             TypePointer Function 6(float)
     46               26:             TypePointer Input 6(float)
     47           27(d4):     26(ptr) Variable Input
     48               29:             TypeBool
     49               33:    6(float) Constant 1073741824
     50               34:     21(int) Constant 2
     51               47:    6(float) Constant 1065353216
     52               50:     21(int) Constant 1
     53               77:     21(int) Constant 3
     54          80(d13):     26(ptr) Variable Input
     55              139:             TypePointer Output 7(fvec4)
     56 140(gl_FragColor):    139(ptr) Variable Output
     57    142(bigColor):     10(ptr) Variable Input
     58 143(bigColor1_1):     10(ptr) Variable Input
     59 144(bigColor1_2):     10(ptr) Variable Input
     60 145(bigColor1_3):     10(ptr) Variable Input
     61   146(bigColor2):     10(ptr) Variable Input
     62   147(bigColor3):     10(ptr) Variable Input
     63   148(bigColor5):     10(ptr) Variable Input
     64   149(bigColor6):     10(ptr) Variable Input
     65   150(bigColor7):     10(ptr) Variable Input
     66   151(bigColor8):     10(ptr) Variable Input
     67           152(d):     26(ptr) Variable Input
     68          153(d2):     26(ptr) Variable Input
     69          154(d3):     26(ptr) Variable Input
     70              155:             TypeInt 32 1
     71              156:             TypePointer Input 155(int)
     72       157(Count):    156(ptr) Variable Input
     73          4(main):           2 Function None 3
     74                5:             Label
     75         9(color):      8(ptr) Variable Function
     76               12:    7(fvec4) Load 11(BaseColor)
     77                               Store 9(color) 12
     78                               Branch 13
     79               13:             Label
     80                               LoopMerge 15 16 None
     81                               Branch 14
     82               14:             Label
     83               18:    7(fvec4) Load 17(bigColor4)
     84               19:    7(fvec4) Load 9(color)
     85               20:    7(fvec4) FAdd 19 18
     86                               Store 9(color) 20
     87               24:     23(ptr) AccessChain 9(color) 22
     88               25:    6(float) Load 24
     89               28:    6(float) Load 27(d4)
     90               30:    29(bool) FOrdLessThan 25 28
     91                               SelectionMerge 32 None
     92                               BranchConditional 30 31 32
     93               31:               Label
     94               35:     23(ptr)   AccessChain 9(color) 34
     95               36:    6(float)   Load 35
     96               37:    6(float)   FAdd 36 33
     97               38:     23(ptr)   AccessChain 9(color) 34
     98                                 Store 38 37
     99               39:     23(ptr)   AccessChain 9(color) 34
    100               40:    6(float)   Load 39
    101               41:    6(float)   Load 27(d4)
    102               42:    29(bool)   FOrdLessThan 40 41
    103                                 SelectionMerge 44 None
    104                                 BranchConditional 42 43 44
    105               43:                 Label
    106               45:     23(ptr)     AccessChain 9(color) 22
    107               46:    6(float)     Load 45
    108               48:    6(float)     FAdd 46 47
    109                                   Store 45 48
    110                                   Branch 16
    111               44:               Label
    112                                 Branch 32
    113               32:             Label
    114               51:     23(ptr) AccessChain 9(color) 50
    115               52:    6(float) Load 51
    116               53:    6(float) Load 27(d4)
    117               54:    29(bool) FOrdLessThan 52 53
    118                               SelectionMerge 56 None
    119                               BranchConditional 54 55 62
    120               55:               Label
    121               57:    6(float)   Load 27(d4)
    122               58:     23(ptr)   AccessChain 9(color) 50
    123               59:    6(float)   Load 58
    124               60:    6(float)   FAdd 59 57
    125               61:     23(ptr)   AccessChain 9(color) 50
    126                                 Store 61 60
    127                                 Branch 56
    128               62:               Label
    129               63:    6(float)   Load 27(d4)
    130               64:     23(ptr)   AccessChain 9(color) 22
    131               65:    6(float)   Load 64
    132               66:    6(float)   FAdd 65 63
    133               67:     23(ptr)   AccessChain 9(color) 22
    134                                 Store 67 66
    135                                 Branch 56
    136               56:             Label
    137                               Branch 16
    138               16:             Label
    139               68:     23(ptr) AccessChain 9(color) 34
    140               69:    6(float) Load 68
    141               70:    6(float) Load 27(d4)
    142               71:    29(bool) FOrdLessThan 69 70
    143                               BranchConditional 71 13 15
    144               15:             Label
    145                               Branch 72
    146               72:             Label
    147                               LoopMerge 74 75 None
    148                               Branch 76
    149               76:             Label
    150               78:     23(ptr) AccessChain 9(color) 77
    151               79:    6(float) Load 78
    152               81:    6(float) Load 80(d13)
    153               82:    29(bool) FOrdLessThan 79 81
    154                               BranchConditional 82 73 74
    155               73:               Label
    156               83:     23(ptr)   AccessChain 9(color) 34
    157               84:    6(float)   Load 83
    158               85:    6(float)   Load 80(d13)
    159               86:    29(bool)   FOrdLessThan 84 85
    160                                 SelectionMerge 88 None
    161                                 BranchConditional 86 87 92
    162               87:                 Label
    163               89:    7(fvec4)     Load 9(color)
    164               90:    7(fvec4)     CompositeConstruct 47 47 47 47
    165               91:    7(fvec4)     FAdd 89 90
    166                                   Store 9(color) 91
    167                                   Branch 88
    168               92:                 Label
    169               93:    7(fvec4)     Load 9(color)
    170               94:    7(fvec4)     CompositeConstruct 47 47 47 47
    171               95:    7(fvec4)     FSub 93 94
    172                                   Store 9(color) 95
    173                                   Branch 88
    174               88:               Label
    175               96:    7(fvec4)   Load 17(bigColor4)
    176               97:    7(fvec4)   Load 9(color)
    177               98:    7(fvec4)   FAdd 97 96
    178                                 Store 9(color) 98
    179               99:     23(ptr)   AccessChain 9(color) 22
    180              100:    6(float)   Load 99
    181              101:    6(float)   Load 27(d4)
    182              102:    29(bool)   FOrdLessThan 100 101
    183                                 SelectionMerge 104 None
    184                                 BranchConditional 102 103 104
    185              103:                 Label
    186              105:     23(ptr)     AccessChain 9(color) 34
    187              106:    6(float)     Load 105
    188              107:    6(float)     FAdd 106 33
    189              108:     23(ptr)     AccessChain 9(color) 34
    190                                   Store 108 107
    191              109:     23(ptr)     AccessChain 9(color) 34
    192              110:    6(float)     Load 109
    193              111:    6(float)     Load 27(d4)
    194              112:    29(bool)     FOrdLessThan 110 111
    195                                   SelectionMerge 114 None
    196                                   BranchConditional 112 113 114
    197              113:                   Label
    198              115:     23(ptr)       AccessChain 9(color) 22
    199              116:    6(float)       Load 115
    200              117:    6(float)       FAdd 116 47
    201                                     Store 115 117
    202                                     Branch 75
    203              114:                 Label
    204                                   Branch 104
    205              104:               Label
    206              119:     23(ptr)   AccessChain 9(color) 50
    207              120:    6(float)   Load 119
    208              121:    6(float)   Load 27(d4)
    209              122:    29(bool)   FOrdLessThan 120 121
    210                                 SelectionMerge 124 None
    211                                 BranchConditional 122 123 130
    212              123:                 Label
    213              125:    6(float)     Load 27(d4)
    214              126:     23(ptr)     AccessChain 9(color) 50
    215              127:    6(float)     Load 126
    216              128:    6(float)     FAdd 127 125
    217              129:     23(ptr)     AccessChain 9(color) 50
    218                                   Store 129 128
    219                                   Branch 124
    220              130:                 Label
    221              131:    6(float)     Load 27(d4)
    222              132:     23(ptr)     AccessChain 9(color) 22
    223              133:    6(float)     Load 132
    224              134:    6(float)     FAdd 133 131
    225              135:     23(ptr)     AccessChain 9(color) 22
    226                                   Store 135 134
    227                                   Branch 124
    228              124:               Label
    229                                 Branch 75
    230               75:               Label
    231                                 Branch 72
    232               74:             Label
    233              136:    7(fvec4) Load 9(color)
    234              137:    7(fvec4) CompositeConstruct 47 47 47 47
    235              138:    7(fvec4) FAdd 136 137
    236                               Store 9(color) 138
    237              141:    7(fvec4) Load 9(color)
    238                               Store 140(gl_FragColor) 141
    239                               Return
    240                               FunctionEnd
    241