Don't remove SPIR-V blocks before codegen.
[platform/upstream/glslang.git] / Test / baseResults / spv.functionSemantics.frag.out
1 spv.functionSemantics.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 156
11
12                               Capability Shader
13                1:             ExtInstImport  "GLSL.std.450"
14                               MemoryModel Logical GLSL450
15                               EntryPoint Fragment 4  "main" 152
16                               ExecutionMode 4 OriginLowerLeft
17                               Source GLSL 400
18                               Name 4  "main"
19                               Name 15  "foo(i1;i1;i1;i1;i1;i1;"
20                               Name 9  "a"
21                               Name 10  "b"
22                               Name 11  "c"
23                               Name 12  "d"
24                               Name 13  "e"
25                               Name 14  "f"
26                               Name 25  "foo2(f1;vf3;i1;"
27                               Name 22  "a"
28                               Name 23  "b"
29                               Name 24  "r"
30                               Name 28  "foo3("
31                               Name 30  "sum"
32                               Name 76  "u"
33                               Name 89  "t"
34                               Name 92  "s"
35                               MemberName 92(s) 0  "t"
36                               Name 94  "f"
37                               Name 98  "color"
38                               Name 104  "e"
39                               Name 105  "param"
40                               Name 106  "param"
41                               Name 107  "param"
42                               Name 108  "param"
43                               Name 123  "ret"
44                               Name 125  "tempReturn"
45                               Name 130  "tempArg"
46                               Name 131  "param"
47                               Name 132  "param"
48                               Name 133  "param"
49                               Name 136  "arg"
50                               Name 152  "gl_FragColor"
51                2:             TypeVoid
52                3:             TypeFunction 2
53                6:             TypeInt 32 1
54                7:             TypePointer Function 6(int)
55                8:             TypeFunction 6(int) 7(ptr) 6(int) 7(ptr) 6(int) 7(ptr) 7(ptr)
56               17:             TypeFloat 32
57               18:             TypePointer Function 17(float)
58               19:             TypeVector 17(float) 3
59               20:             TypePointer Function 19(fvec3)
60               21:             TypeFunction 6(int) 18(ptr) 20(ptr) 7(ptr)
61               27:             TypeFunction 6(int)
62               38:      6(int) Constant 64
63               43:      6(int) Constant 1024
64               62:   17(float) Constant 1077936128
65               66:   17(float) Constant 1084227584
66               67:             TypeInt 32 0
67               68:     67(int) Constant 1
68               75:             TypePointer UniformConstant 17(float)
69            76(u):     75(ptr) Variable UniformConstant
70               78:   17(float) Constant 1078774989
71               79:             TypeBool
72               84:      6(int) Constant 1000000
73               86:      6(int) Constant 2000000
74               90:      6(int) Constant 2
75               91:             TypeVector 6(int) 4
76            92(s):             TypeStruct 91(ivec4)
77               93:             TypePointer Function 92(s)
78               95:      6(int) Constant 0
79               96:      6(int) Constant 32
80               99:      6(int) Constant 1
81              103:      6(int) Constant 8
82              115:      6(int) Constant 128
83              124:             TypePointer Private 6(int)
84  125(tempReturn):    124(ptr) Variable Private
85              126:   17(float) Constant 1082130432
86              127:   17(float) Constant 1065353216
87              128:   17(float) Constant 1073741824
88              129:   19(fvec3) ConstantComposite 127 128 62
89              150:             TypeVector 17(float) 4
90              151:             TypePointer Output 150(fvec4)
91 152(gl_FragColor):    151(ptr) Variable Output
92          4(main):           2 Function None 3
93                5:             Label
94            89(t):      7(ptr) Variable Function
95            94(f):     93(ptr) Variable Function
96        98(color):      7(ptr) Variable Function
97           104(e):      7(ptr) Variable Function
98       105(param):      7(ptr) Variable Function
99       106(param):      7(ptr) Variable Function
100       107(param):      7(ptr) Variable Function
101       108(param):      7(ptr) Variable Function
102         123(ret):     18(ptr) Variable Function
103     130(tempArg):      7(ptr) Variable Function
104       131(param):     18(ptr) Variable Function
105       132(param):     20(ptr) Variable Function
106       133(param):      7(ptr) Variable Function
107         136(arg):     18(ptr) Variable Function
108                               Store 89(t) 90
109               97:      7(ptr) AccessChain 94(f) 95 68
110                               Store 97 96
111              100:      6(int) Load 89(t)
112              101:      6(int) Load 89(t)
113              102:      6(int) IAdd 100 101
114                               Store 105(param) 99
115                               Store 106(param) 102
116              109:      7(ptr) AccessChain 94(f) 95 68
117              110:      6(int) Load 109
118                               Store 108(param) 110
119              111:      6(int) FunctionCall 15(foo(i1;i1;i1;i1;i1;i1;) 105(param) 90 106(param) 103 107(param) 108(param)
120              112:      6(int) Load 107(param)
121                               Store 104(e) 112
122              113:      6(int) Load 108(param)
123              114:      7(ptr) AccessChain 94(f) 95 68
124                               Store 114 113
125                               Store 98(color) 111
126              116:      6(int) Load 104(e)
127              117:      7(ptr) AccessChain 94(f) 95 68
128              118:      6(int) Load 117
129              119:      6(int) IAdd 116 118
130              120:      6(int) IMul 115 119
131              121:      6(int) Load 98(color)
132              122:      6(int) IAdd 121 120
133                               Store 98(color) 122
134                               Store 131(param) 126
135                               Store 132(param) 129
136              134:      6(int) FunctionCall 25(foo2(f1;vf3;i1;) 131(param) 132(param) 133(param)
137              135:      6(int) Load 133(param)
138                               Store 130(tempArg) 135
139                               Store 125(tempReturn) 134
140              137:      6(int) Load 130(tempArg)
141              138:   17(float) ConvertSToF 137
142                               Store 136(arg) 138
143              139:      6(int) Load 125(tempReturn)
144              140:   17(float) ConvertSToF 139
145                               Store 123(ret) 140
146              141:   17(float) Load 123(ret)
147              142:   17(float) Load 136(arg)
148              143:   17(float) FAdd 141 142
149              144:      6(int) ConvertFToS 143
150              145:      6(int) Load 98(color)
151              146:      6(int) IAdd 145 144
152                               Store 98(color) 146
153              147:      6(int) FunctionCall 28(foo3()
154              148:      6(int) Load 98(color)
155              149:      6(int) IAdd 148 147
156                               Store 98(color) 149
157              153:      6(int) Load 98(color)
158              154:   17(float) ConvertSToF 153
159              155:  150(fvec4) CompositeConstruct 154 154 154 154
160                               Store 152(gl_FragColor) 155
161                               Return
162                               FunctionEnd
163 15(foo(i1;i1;i1;i1;i1;i1;):      6(int) Function None 8
164             9(a):      7(ptr) FunctionParameter
165            10(b):      6(int) FunctionParameter
166            11(c):      7(ptr) FunctionParameter
167            12(d):      6(int) FunctionParameter
168            13(e):      7(ptr) FunctionParameter
169            14(f):      7(ptr) FunctionParameter
170               16:             Label
171          30(sum):      7(ptr) Variable Function
172               31:      6(int) Load 9(a)
173               32:      6(int) IAdd 31 10(b)
174               33:      6(int) Load 11(c)
175               34:      6(int) IAdd 32 33
176               35:      6(int) IAdd 34 12(d)
177               36:      6(int) Load 14(f)
178               37:      6(int) IAdd 35 36
179                               Store 30(sum) 37
180               39:      6(int) Load 9(a)
181               40:      6(int) IMul 39 38
182                               Store 9(a) 40
183               41:      6(int) Load 11(c)
184               42:      6(int) IMul 41 38
185                               Store 11(c) 42
186                               Store 13(e) 43
187               44:      6(int) Load 14(f)
188               45:      6(int) IMul 44 38
189                               Store 14(f) 45
190               46:      6(int) Load 9(a)
191               47:      6(int) IMul 38 10(b)
192               48:      6(int) IAdd 46 47
193               49:      6(int) Load 11(c)
194               50:      6(int) IAdd 48 49
195               51:      6(int) IMul 38 12(d)
196               52:      6(int) IAdd 50 51
197               53:      6(int) Load 13(e)
198               54:      6(int) IAdd 52 53
199               55:      6(int) Load 14(f)
200               56:      6(int) IAdd 54 55
201               57:      6(int) Load 30(sum)
202               58:      6(int) IAdd 57 56
203                               Store 30(sum) 58
204               59:      6(int) Load 30(sum)
205                               ReturnValue 59
206                               FunctionEnd
207 25(foo2(f1;vf3;i1;):      6(int) Function None 21
208            22(a):     18(ptr) FunctionParameter
209            23(b):     20(ptr) FunctionParameter
210            24(r):      7(ptr) FunctionParameter
211               26:             Label
212               63:   17(float) Load 22(a)
213               64:   17(float) FMul 62 63
214               65:      6(int) ConvertFToS 64
215                               Store 24(r) 65
216               69:     18(ptr) AccessChain 23(b) 68
217               70:   17(float) Load 69
218               71:   17(float) FMul 66 70
219               72:      6(int) ConvertFToS 71
220                               ReturnValue 72
221                               FunctionEnd
222        28(foo3():      6(int) Function None 27
223               29:             Label
224               77:   17(float) Load 76(u)
225               80:    79(bool) FOrdGreaterThan 77 78
226                               SelectionMerge 82 None
227                               BranchConditional 80 81 82
228               81:               Label
229                                 Kill
230               82:             Label
231                               ReturnValue 86
232                               FunctionEnd