Don't remove SPIR-V blocks before codegen.
[platform/upstream/glslang.git] / Test / baseResults / spv.shortCircuit.frag.out
1 spv.shortCircuit.frag
2 Warning, version 400 is not yet complete; most version-specific features are present, but some are missing.
3
4
5 Linked fragment stage:
6
7
8 // Module Version 10000
9 // Generated by (magic number): 80001
10 // Id's are bound by 144
11
12                               Capability Shader
13                1:             ExtInstImport  "GLSL.std.450"
14                               MemoryModel Logical GLSL450
15                               EntryPoint Fragment 4  "main" 12 24
16                               ExecutionMode 4 OriginLowerLeft
17                               Source GLSL 400
18                               Name 4  "main"
19                               Name 8  "foo("
20                               Name 12  "of1"
21                               Name 24  "of4"
22                               Name 27  "ub"
23                               Name 31  "ui"
24                               Name 41  "uba"
25                               Name 110  "uf"
26                               Name 137  "uiv4"
27                               Name 139  "uv4"
28                               Name 142  "ub41"
29                               Name 143  "ub42"
30                2:             TypeVoid
31                3:             TypeFunction 2
32                6:             TypeBool
33                7:             TypeFunction 6(bool)
34               10:             TypeFloat 32
35               11:             TypePointer Output 10(float)
36          12(of1):     11(ptr) Variable Output
37               14:   10(float) Constant 1065353216
38               17:   10(float) Constant 1092616192
39               21:   10(float) Constant 0
40               22:             TypeVector 10(float) 4
41               23:             TypePointer Output 22(fvec4)
42          24(of4):     23(ptr) Variable Output
43               25:   22(fvec4) ConstantComposite 21 21 21 21
44               26:             TypePointer UniformConstant 6(bool)
45           27(ub):     26(ptr) Variable UniformConstant
46               29:             TypeInt 32 1
47               30:             TypePointer UniformConstant 29(int)
48           31(ui):     30(ptr) Variable UniformConstant
49               33:     29(int) Constant 2
50          41(uba):     26(ptr) Variable UniformConstant
51              109:             TypePointer UniformConstant 10(float)
52          110(uf):    109(ptr) Variable UniformConstant
53              113:   10(float) Constant 1082130432
54              135:             TypeVector 29(int) 4
55              136:             TypePointer UniformConstant 135(ivec4)
56        137(uiv4):    136(ptr) Variable UniformConstant
57              138:             TypePointer UniformConstant 22(fvec4)
58         139(uv4):    138(ptr) Variable UniformConstant
59              140:             TypeVector 6(bool) 4
60              141:             TypePointer UniformConstant 140(bvec4)
61        142(ub41):    141(ptr) Variable UniformConstant
62        143(ub42):    141(ptr) Variable UniformConstant
63          4(main):           2 Function None 3
64                5:             Label
65                               Store 12(of1) 21
66                               Store 24(of4) 25
67               28:     6(bool) Load 27(ub)
68               32:     29(int) Load 31(ui)
69               34:     6(bool) SGreaterThan 32 33
70               35:     6(bool) LogicalOr 28 34
71                               SelectionMerge 37 None
72                               BranchConditional 35 36 37
73               36:               Label
74               38:   10(float)   Load 12(of1)
75               39:   10(float)   FAdd 38 14
76                                 Store 12(of1) 39
77                                 Branch 37
78               37:             Label
79               40:     6(bool) Load 27(ub)
80               42:     6(bool) Load 41(uba)
81               43:     6(bool) LogicalNot 42
82               44:     6(bool) LogicalAnd 40 43
83                               SelectionMerge 46 None
84                               BranchConditional 44 45 46
85               45:               Label
86               47:   10(float)   Load 12(of1)
87               48:   10(float)   FAdd 47 14
88                                 Store 12(of1) 48
89                                 Branch 46
90               46:             Label
91               49:     6(bool) Load 27(ub)
92               50:     6(bool) LogicalNot 49
93                               SelectionMerge 52 None
94                               BranchConditional 50 51 52
95               51:               Label
96               53:     6(bool)   FunctionCall 8(foo()
97                                 Branch 52
98               52:             Label
99               54:     6(bool) Phi 49 46 53 51
100                               SelectionMerge 56 None
101                               BranchConditional 54 55 56
102               55:               Label
103               57:   10(float)   Load 12(of1)
104               58:   10(float)   FAdd 57 14
105                                 Store 12(of1) 58
106                                 Branch 56
107               56:             Label
108               59:     6(bool) Load 27(ub)
109                               SelectionMerge 61 None
110                               BranchConditional 59 60 61
111               60:               Label
112               62:     6(bool)   FunctionCall 8(foo()
113                                 Branch 61
114               61:             Label
115               63:     6(bool) Phi 59 56 62 60
116                               SelectionMerge 65 None
117                               BranchConditional 63 64 65
118               64:               Label
119               66:   10(float)   Load 12(of1)
120               67:   10(float)   FAdd 66 14
121                                 Store 12(of1) 67
122                                 Branch 65
123               65:             Label
124               68:     6(bool) FunctionCall 8(foo()
125               69:     6(bool) Load 27(ub)
126               70:     6(bool) LogicalOr 68 69
127                               SelectionMerge 72 None
128                               BranchConditional 70 71 72
129               71:               Label
130               73:   10(float)   Load 12(of1)
131               74:   10(float)   FAdd 73 14
132                                 Store 12(of1) 74
133                                 Branch 72
134               72:             Label
135               75:     6(bool) FunctionCall 8(foo()
136               76:     6(bool) Load 27(ub)
137               77:     6(bool) LogicalAnd 75 76
138                               SelectionMerge 79 None
139                               BranchConditional 77 78 79
140               78:               Label
141               80:   10(float)   Load 12(of1)
142               81:   10(float)   FAdd 80 14
143                                 Store 12(of1) 81
144                                 Branch 79
145               79:             Label
146               82:     6(bool) Load 27(ub)
147               83:     6(bool) LogicalNot 82
148                               SelectionMerge 85 None
149                               BranchConditional 83 84 85
150               84:               Label
151               86:   10(float)   Load 12(of1)
152               87:   10(float)   FAdd 86 14
153                                 Store 12(of1) 87
154               88:     6(bool)   FOrdGreaterThan 87 14
155                                 Branch 85
156               85:             Label
157               89:     6(bool) Phi 82 79 88 84
158                               SelectionMerge 91 None
159                               BranchConditional 89 90 91
160               90:               Label
161               92:   22(fvec4)   Load 24(of4)
162               93:   22(fvec4)   CompositeConstruct 14 14 14 14
163               94:   22(fvec4)   FAdd 92 93
164                                 Store 24(of4) 94
165                                 Branch 91
166               91:             Label
167               95:   10(float) Load 12(of1)
168               96:   10(float) FAdd 95 14
169                               Store 12(of1) 96
170               97:     6(bool) FOrdGreaterThan 96 14
171               98:     6(bool) Load 27(ub)
172               99:     6(bool) LogicalOr 97 98
173                               SelectionMerge 101 None
174                               BranchConditional 99 100 101
175              100:               Label
176              102:   22(fvec4)   Load 24(of4)
177              103:   22(fvec4)   CompositeConstruct 14 14 14 14
178              104:   22(fvec4)   FAdd 102 103
179                                 Store 24(of4) 104
180                                 Branch 101
181              101:             Label
182              105:     6(bool) Load 27(ub)
183              106:     6(bool) LogicalNot 105
184                               SelectionMerge 108 None
185                               BranchConditional 106 107 108
186              107:               Label
187              111:   10(float)   Load 110(uf)
188              112:   10(float)   ExtInst 1(GLSL.std.450) 13(Sin) 111
189              114:   10(float)   FMul 112 113
190              115:   10(float)   Load 12(of1)
191              116:     6(bool)   FOrdGreaterThan 114 115
192                                 Branch 108
193              108:             Label
194              117:     6(bool) Phi 105 101 116 107
195                               SelectionMerge 119 None
196                               BranchConditional 117 118 119
197              118:               Label
198              120:   10(float)   Load 12(of1)
199              121:   10(float)   FAdd 120 14
200                                 Store 12(of1) 121
201                                 Branch 119
202              119:             Label
203              122:     6(bool) Load 27(ub)
204                               SelectionMerge 124 None
205                               BranchConditional 122 123 124
206              123:               Label
207              125:   10(float)   Load 110(uf)
208              126:   10(float)   ExtInst 1(GLSL.std.450) 13(Sin) 125
209              127:   10(float)   FMul 126 113
210              128:   10(float)   Load 12(of1)
211              129:     6(bool)   FOrdGreaterThan 127 128
212                                 Branch 124
213              124:             Label
214              130:     6(bool) Phi 122 119 129 123
215                               SelectionMerge 132 None
216                               BranchConditional 130 131 132
217              131:               Label
218              133:   10(float)   Load 12(of1)
219              134:   10(float)   FAdd 133 14
220                                 Store 12(of1) 134
221                                 Branch 132
222              132:             Label
223                               Return
224                               FunctionEnd
225          8(foo():     6(bool) Function None 7
226                9:             Label
227               13:   10(float) Load 12(of1)
228               15:   10(float) FAdd 13 14
229                               Store 12(of1) 15
230               16:   10(float) Load 12(of1)
231               18:     6(bool) FOrdGreaterThan 16 17
232                               ReturnValue 18
233                               FunctionEnd