35d8100ecdbbefdd2e2bf1722eab1cdefb2703ba
[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 153
11
12                               Capability Shader
13                1:             ExtInstImport  "GLSL.std.450"
14                               MemoryModel Logical GLSL450
15                               EntryPoint Fragment 4  "main" 149
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 74  "u"
33                               Name 86  "t"
34                               Name 89  "s"
35                               MemberName 89(s) 0  "t"
36                               Name 91  "f"
37                               Name 95  "color"
38                               Name 101  "e"
39                               Name 102  "param"
40                               Name 103  "param"
41                               Name 104  "param"
42                               Name 105  "param"
43                               Name 120  "ret"
44                               Name 122  "tempReturn"
45                               Name 127  "tempArg"
46                               Name 128  "param"
47                               Name 129  "param"
48                               Name 130  "param"
49                               Name 133  "arg"
50                               Name 149  "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               61:   17(float) Constant 1077936128
65               65:   17(float) Constant 1084227584
66               66:             TypeInt 32 0
67               67:     66(int) Constant 1
68               73:             TypePointer UniformConstant 17(float)
69            74(u):     73(ptr) Variable UniformConstant
70               76:   17(float) Constant 1078774989
71               77:             TypeBool
72               82:      6(int) Constant 1000000
73               84:      6(int) Constant 2000000
74               87:      6(int) Constant 2
75               88:             TypeVector 6(int) 4
76            89(s):             TypeStruct 88(ivec4)
77               90:             TypePointer Function 89(s)
78               92:      6(int) Constant 0
79               93:      6(int) Constant 32
80               96:      6(int) Constant 1
81              100:      6(int) Constant 8
82              112:      6(int) Constant 128
83              121:             TypePointer Private 6(int)
84  122(tempReturn):    121(ptr) Variable Private
85              123:   17(float) Constant 1082130432
86              124:   17(float) Constant 1065353216
87              125:   17(float) Constant 1073741824
88              126:   19(fvec3) ConstantComposite 124 125 61
89              147:             TypeVector 17(float) 4
90              148:             TypePointer Output 147(fvec4)
91 149(gl_FragColor):    148(ptr) Variable Output
92          4(main):           2 Function None 3
93                5:             Label
94            86(t):      7(ptr) Variable Function
95            91(f):     90(ptr) Variable Function
96        95(color):      7(ptr) Variable Function
97           101(e):      7(ptr) Variable Function
98       102(param):      7(ptr) Variable Function
99       103(param):      7(ptr) Variable Function
100       104(param):      7(ptr) Variable Function
101       105(param):      7(ptr) Variable Function
102         120(ret):     18(ptr) Variable Function
103     127(tempArg):      7(ptr) Variable Function
104       128(param):     18(ptr) Variable Function
105       129(param):     20(ptr) Variable Function
106       130(param):      7(ptr) Variable Function
107         133(arg):     18(ptr) Variable Function
108                               Store 86(t) 87
109               94:      7(ptr) AccessChain 91(f) 92 67
110                               Store 94 93
111               97:      6(int) Load 86(t)
112               98:      6(int) Load 86(t)
113               99:      6(int) IAdd 97 98
114                               Store 102(param) 96
115                               Store 103(param) 99
116              106:      7(ptr) AccessChain 91(f) 92 67
117              107:      6(int) Load 106
118                               Store 105(param) 107
119              108:      6(int) FunctionCall 15(foo(i1;i1;i1;i1;i1;i1;) 102(param) 87 103(param) 100 104(param) 105(param)
120              109:      6(int) Load 104(param)
121                               Store 101(e) 109
122              110:      6(int) Load 105(param)
123              111:      7(ptr) AccessChain 91(f) 92 67
124                               Store 111 110
125                               Store 95(color) 108
126              113:      6(int) Load 101(e)
127              114:      7(ptr) AccessChain 91(f) 92 67
128              115:      6(int) Load 114
129              116:      6(int) IAdd 113 115
130              117:      6(int) IMul 112 116
131              118:      6(int) Load 95(color)
132              119:      6(int) IAdd 118 117
133                               Store 95(color) 119
134                               Store 128(param) 123
135                               Store 129(param) 126
136              131:      6(int) FunctionCall 25(foo2(f1;vf3;i1;) 128(param) 129(param) 130(param)
137              132:      6(int) Load 130(param)
138                               Store 127(tempArg) 132
139                               Store 122(tempReturn) 131
140              134:      6(int) Load 127(tempArg)
141              135:   17(float) ConvertSToF 134
142                               Store 133(arg) 135
143              136:      6(int) Load 122(tempReturn)
144              137:   17(float) ConvertSToF 136
145                               Store 120(ret) 137
146              138:   17(float) Load 120(ret)
147              139:   17(float) Load 133(arg)
148              140:   17(float) FAdd 138 139
149              141:      6(int) ConvertFToS 140
150              142:      6(int) Load 95(color)
151              143:      6(int) IAdd 142 141
152                               Store 95(color) 143
153              144:      6(int) FunctionCall 28(foo3()
154              145:      6(int) Load 95(color)
155              146:      6(int) IAdd 145 144
156                               Store 95(color) 146
157              150:      6(int) Load 95(color)
158              151:   17(float) ConvertSToF 150
159              152:  147(fvec4) CompositeConstruct 151 151 151 151
160                               Store 149(gl_FragColor) 152
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               62:   17(float) Load 22(a)
213               63:   17(float) FMul 61 62
214               64:      6(int) ConvertFToS 63
215                               Store 24(r) 64
216               68:     18(ptr) AccessChain 23(b) 67
217               69:   17(float) Load 68
218               70:   17(float) FMul 65 69
219               71:      6(int) ConvertFToS 70
220                               ReturnValue 71
221                               FunctionEnd
222        28(foo3():      6(int) Function None 27
223               29:             Label
224               75:   17(float) Load 74(u)
225               78:    77(bool) FOrdGreaterThan 75 76
226                               SelectionMerge 80 None
227                               BranchConditional 78 79 80
228               79:               Label
229                                 Kill
230               80:             Label
231                               ReturnValue 84
232                               FunctionEnd