30edb0ad0c6d6c6209ea50d2da61031f4fb98e73
[platform/upstream/glslang.git] / Test / baseResults / hlsl.intrinsics.f3216.frag.out
1 hlsl.intrinsics.f3216.frag
2 Shader version: 450
3 gl_FragCoord origin is upper left
4 0:? Sequence
5 0:2  Function Definition: PixelShaderFunctionS(f1; ( temp uint)
6 0:2    Function Parameters: 
7 0:2      'inF0' ( in float)
8 0:?     Sequence
9 0:3      Branch: Return with expression
10 0:3        packHalf2x16 ( temp uint)
11 0:3          Construct vec2 ( temp 2-component vector of float)
12 0:3            'inF0' ( in float)
13 0:3            Constant:
14 0:3              0.000000
15 0:7  Function Definition: PixelShaderFunction1(vf1; ( temp 1-component vector of uint)
16 0:7    Function Parameters: 
17 0:7      'inF0' ( in 1-component vector of float)
18 0:?     Sequence
19 0:8      Branch: Return with expression
20 0:8        Construct uint ( temp 1-component vector of uint)
21 0:8          packHalf2x16 ( temp uint)
22 0:8            Construct vec2 ( temp 2-component vector of float)
23 0:8              Construct float ( in float)
24 0:8                'inF0' ( in 1-component vector of float)
25 0:8              Constant:
26 0:8                0.000000
27 0:12  Function Definition: PixelShaderFunction2(vf2; ( temp 2-component vector of uint)
28 0:12    Function Parameters: 
29 0:12      'inF0' ( in 2-component vector of float)
30 0:?     Sequence
31 0:13      Branch: Return with expression
32 0:13        Construct uvec2 ( temp 2-component vector of uint)
33 0:13          packHalf2x16 ( temp uint)
34 0:13            Construct vec2 ( temp 2-component vector of float)
35 0:13              direct index ( temp float)
36 0:13                'inF0' ( in 2-component vector of float)
37 0:13                Constant:
38 0:13                  0 (const int)
39 0:13              Constant:
40 0:13                0.000000
41 0:13          packHalf2x16 ( temp uint)
42 0:13            Construct vec2 ( temp 2-component vector of float)
43 0:13              direct index ( temp float)
44 0:13                'inF0' ( in 2-component vector of float)
45 0:13                Constant:
46 0:13                  1 (const int)
47 0:13              Constant:
48 0:13                0.000000
49 0:17  Function Definition: PixelShaderFunction3(vf3; ( temp 3-component vector of uint)
50 0:17    Function Parameters: 
51 0:17      'inF0' ( in 3-component vector of float)
52 0:?     Sequence
53 0:18      Branch: Return with expression
54 0:18        Construct uvec3 ( temp 3-component vector of uint)
55 0:18          packHalf2x16 ( temp uint)
56 0:18            Construct vec2 ( temp 2-component vector of float)
57 0:18              direct index ( temp float)
58 0:18                'inF0' ( in 3-component vector of float)
59 0:18                Constant:
60 0:18                  0 (const int)
61 0:18              Constant:
62 0:18                0.000000
63 0:18          packHalf2x16 ( temp uint)
64 0:18            Construct vec2 ( temp 2-component vector of float)
65 0:18              direct index ( temp float)
66 0:18                'inF0' ( in 3-component vector of float)
67 0:18                Constant:
68 0:18                  1 (const int)
69 0:18              Constant:
70 0:18                0.000000
71 0:18          packHalf2x16 ( temp uint)
72 0:18            Construct vec2 ( temp 2-component vector of float)
73 0:18              direct index ( temp float)
74 0:18                'inF0' ( in 3-component vector of float)
75 0:18                Constant:
76 0:18                  2 (const int)
77 0:18              Constant:
78 0:18                0.000000
79 0:22  Function Definition: PixelShaderFunction(vf4; ( temp 4-component vector of uint)
80 0:22    Function Parameters: 
81 0:22      'inF0' ( in 4-component vector of float)
82 0:?     Sequence
83 0:23      Branch: Return with expression
84 0:23        Construct uvec4 ( temp 4-component vector of uint)
85 0:23          packHalf2x16 ( temp uint)
86 0:23            Construct vec2 ( temp 2-component vector of float)
87 0:23              direct index ( temp float)
88 0:23                'inF0' ( in 4-component vector of float)
89 0:23                Constant:
90 0:23                  0 (const int)
91 0:23              Constant:
92 0:23                0.000000
93 0:23          packHalf2x16 ( temp uint)
94 0:23            Construct vec2 ( temp 2-component vector of float)
95 0:23              direct index ( temp float)
96 0:23                'inF0' ( in 4-component vector of float)
97 0:23                Constant:
98 0:23                  1 (const int)
99 0:23              Constant:
100 0:23                0.000000
101 0:23          packHalf2x16 ( temp uint)
102 0:23            Construct vec2 ( temp 2-component vector of float)
103 0:23              direct index ( temp float)
104 0:23                'inF0' ( in 4-component vector of float)
105 0:23                Constant:
106 0:23                  2 (const int)
107 0:23              Constant:
108 0:23                0.000000
109 0:23          packHalf2x16 ( temp uint)
110 0:23            Construct vec2 ( temp 2-component vector of float)
111 0:23              direct index ( temp float)
112 0:23                'inF0' ( in 4-component vector of float)
113 0:23                Constant:
114 0:23                  3 (const int)
115 0:23              Constant:
116 0:23                0.000000
117 0:27  Function Definition: @main( ( temp 4-component vector of float)
118 0:27    Function Parameters: 
119 0:?     Sequence
120 0:28      Branch: Return with expression
121 0:28        Constant:
122 0:28          0.000000
123 0:28          0.000000
124 0:28          0.000000
125 0:28          0.000000
126 0:27  Function Definition: main( ( temp void)
127 0:27    Function Parameters: 
128 0:?     Sequence
129 0:27      move second child to first child ( temp 4-component vector of float)
130 0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
131 0:27        Function Call: @main( ( temp 4-component vector of float)
132 0:?   Linker Objects
133 0:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
134
135
136 Linked fragment stage:
137
138
139 Shader version: 450
140 gl_FragCoord origin is upper left
141 0:? Sequence
142 0:2  Function Definition: PixelShaderFunctionS(f1; ( temp uint)
143 0:2    Function Parameters: 
144 0:2      'inF0' ( in float)
145 0:?     Sequence
146 0:3      Branch: Return with expression
147 0:3        packHalf2x16 ( temp uint)
148 0:3          Construct vec2 ( temp 2-component vector of float)
149 0:3            'inF0' ( in float)
150 0:3            Constant:
151 0:3              0.000000
152 0:7  Function Definition: PixelShaderFunction1(vf1; ( temp 1-component vector of uint)
153 0:7    Function Parameters: 
154 0:7      'inF0' ( in 1-component vector of float)
155 0:?     Sequence
156 0:8      Branch: Return with expression
157 0:8        Construct uint ( temp 1-component vector of uint)
158 0:8          packHalf2x16 ( temp uint)
159 0:8            Construct vec2 ( temp 2-component vector of float)
160 0:8              Construct float ( in float)
161 0:8                'inF0' ( in 1-component vector of float)
162 0:8              Constant:
163 0:8                0.000000
164 0:12  Function Definition: PixelShaderFunction2(vf2; ( temp 2-component vector of uint)
165 0:12    Function Parameters: 
166 0:12      'inF0' ( in 2-component vector of float)
167 0:?     Sequence
168 0:13      Branch: Return with expression
169 0:13        Construct uvec2 ( temp 2-component vector of uint)
170 0:13          packHalf2x16 ( temp uint)
171 0:13            Construct vec2 ( temp 2-component vector of float)
172 0:13              direct index ( temp float)
173 0:13                'inF0' ( in 2-component vector of float)
174 0:13                Constant:
175 0:13                  0 (const int)
176 0:13              Constant:
177 0:13                0.000000
178 0:13          packHalf2x16 ( temp uint)
179 0:13            Construct vec2 ( temp 2-component vector of float)
180 0:13              direct index ( temp float)
181 0:13                'inF0' ( in 2-component vector of float)
182 0:13                Constant:
183 0:13                  1 (const int)
184 0:13              Constant:
185 0:13                0.000000
186 0:17  Function Definition: PixelShaderFunction3(vf3; ( temp 3-component vector of uint)
187 0:17    Function Parameters: 
188 0:17      'inF0' ( in 3-component vector of float)
189 0:?     Sequence
190 0:18      Branch: Return with expression
191 0:18        Construct uvec3 ( temp 3-component vector of uint)
192 0:18          packHalf2x16 ( temp uint)
193 0:18            Construct vec2 ( temp 2-component vector of float)
194 0:18              direct index ( temp float)
195 0:18                'inF0' ( in 3-component vector of float)
196 0:18                Constant:
197 0:18                  0 (const int)
198 0:18              Constant:
199 0:18                0.000000
200 0:18          packHalf2x16 ( temp uint)
201 0:18            Construct vec2 ( temp 2-component vector of float)
202 0:18              direct index ( temp float)
203 0:18                'inF0' ( in 3-component vector of float)
204 0:18                Constant:
205 0:18                  1 (const int)
206 0:18              Constant:
207 0:18                0.000000
208 0:18          packHalf2x16 ( temp uint)
209 0:18            Construct vec2 ( temp 2-component vector of float)
210 0:18              direct index ( temp float)
211 0:18                'inF0' ( in 3-component vector of float)
212 0:18                Constant:
213 0:18                  2 (const int)
214 0:18              Constant:
215 0:18                0.000000
216 0:22  Function Definition: PixelShaderFunction(vf4; ( temp 4-component vector of uint)
217 0:22    Function Parameters: 
218 0:22      'inF0' ( in 4-component vector of float)
219 0:?     Sequence
220 0:23      Branch: Return with expression
221 0:23        Construct uvec4 ( temp 4-component vector of uint)
222 0:23          packHalf2x16 ( temp uint)
223 0:23            Construct vec2 ( temp 2-component vector of float)
224 0:23              direct index ( temp float)
225 0:23                'inF0' ( in 4-component vector of float)
226 0:23                Constant:
227 0:23                  0 (const int)
228 0:23              Constant:
229 0:23                0.000000
230 0:23          packHalf2x16 ( temp uint)
231 0:23            Construct vec2 ( temp 2-component vector of float)
232 0:23              direct index ( temp float)
233 0:23                'inF0' ( in 4-component vector of float)
234 0:23                Constant:
235 0:23                  1 (const int)
236 0:23              Constant:
237 0:23                0.000000
238 0:23          packHalf2x16 ( temp uint)
239 0:23            Construct vec2 ( temp 2-component vector of float)
240 0:23              direct index ( temp float)
241 0:23                'inF0' ( in 4-component vector of float)
242 0:23                Constant:
243 0:23                  2 (const int)
244 0:23              Constant:
245 0:23                0.000000
246 0:23          packHalf2x16 ( temp uint)
247 0:23            Construct vec2 ( temp 2-component vector of float)
248 0:23              direct index ( temp float)
249 0:23                'inF0' ( in 4-component vector of float)
250 0:23                Constant:
251 0:23                  3 (const int)
252 0:23              Constant:
253 0:23                0.000000
254 0:27  Function Definition: @main( ( temp 4-component vector of float)
255 0:27    Function Parameters: 
256 0:?     Sequence
257 0:28      Branch: Return with expression
258 0:28        Constant:
259 0:28          0.000000
260 0:28          0.000000
261 0:28          0.000000
262 0:28          0.000000
263 0:27  Function Definition: main( ( temp void)
264 0:27    Function Parameters: 
265 0:?     Sequence
266 0:27      move second child to first child ( temp 4-component vector of float)
267 0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
268 0:27        Function Call: @main( ( temp 4-component vector of float)
269 0:?   Linker Objects
270 0:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
271
272 // Module Version 10000
273 // Generated by (magic number): 80001
274 // Id's are bound by 106
275
276                               Capability Shader
277                1:             ExtInstImport  "GLSL.std.450"
278                               MemoryModel Logical GLSL450
279                               EntryPoint Fragment 4  "main" 104
280                               ExecutionMode 4 OriginUpperLeft
281                               Name 4  "main"
282                               Name 11  "PixelShaderFunctionS(f1;"
283                               Name 10  "inF0"
284                               Name 14  "PixelShaderFunction1(vf1;"
285                               Name 13  "inF0"
286                               Name 21  "PixelShaderFunction2(vf2;"
287                               Name 20  "inF0"
288                               Name 28  "PixelShaderFunction3(vf3;"
289                               Name 27  "inF0"
290                               Name 35  "PixelShaderFunction(vf4;"
291                               Name 34  "inF0"
292                               Name 38  "@main("
293                               Name 104  "@entryPointOutput"
294                               Decorate 104(@entryPointOutput) Location 0
295                2:             TypeVoid
296                3:             TypeFunction 2
297                6:             TypeFloat 32
298                7:             TypePointer Function 6(float)
299                8:             TypeInt 32 0
300                9:             TypeFunction 8(int) 7(ptr)
301               16:             TypeVector 6(float) 2
302               17:             TypePointer Function 16(fvec2)
303               18:             TypeVector 8(int) 2
304               19:             TypeFunction 18(ivec2) 17(ptr)
305               23:             TypeVector 6(float) 3
306               24:             TypePointer Function 23(fvec3)
307               25:             TypeVector 8(int) 3
308               26:             TypeFunction 25(ivec3) 24(ptr)
309               30:             TypeVector 6(float) 4
310               31:             TypePointer Function 30(fvec4)
311               32:             TypeVector 8(int) 4
312               33:             TypeFunction 32(ivec4) 31(ptr)
313               37:             TypeFunction 30(fvec4)
314               41:    6(float) Constant 0
315               51:      8(int) Constant 0
316               56:      8(int) Constant 1
317               72:      8(int) Constant 2
318               92:      8(int) Constant 3
319              100:   30(fvec4) ConstantComposite 41 41 41 41
320              103:             TypePointer Output 30(fvec4)
321 104(@entryPointOutput):    103(ptr) Variable Output
322          4(main):           2 Function None 3
323                5:             Label
324              105:   30(fvec4) FunctionCall 38(@main()
325                               Store 104(@entryPointOutput) 105
326                               Return
327                               FunctionEnd
328 11(PixelShaderFunctionS(f1;):      8(int) Function None 9
329         10(inF0):      7(ptr) FunctionParameter
330               12:             Label
331               40:    6(float) Load 10(inF0)
332               42:   16(fvec2) CompositeConstruct 40 41
333               43:      8(int) ExtInst 1(GLSL.std.450) 58(PackHalf2x16) 42
334                               ReturnValue 43
335                               FunctionEnd
336 14(PixelShaderFunction1(vf1;):      8(int) Function None 9
337         13(inF0):      7(ptr) FunctionParameter
338               15:             Label
339               46:    6(float) Load 13(inF0)
340               47:   16(fvec2) CompositeConstruct 46 41
341               48:      8(int) ExtInst 1(GLSL.std.450) 58(PackHalf2x16) 47
342                               ReturnValue 48
343                               FunctionEnd
344 21(PixelShaderFunction2(vf2;):   18(ivec2) Function None 19
345         20(inF0):     17(ptr) FunctionParameter
346               22:             Label
347               52:      7(ptr) AccessChain 20(inF0) 51
348               53:    6(float) Load 52
349               54:   16(fvec2) CompositeConstruct 53 41
350               55:      8(int) ExtInst 1(GLSL.std.450) 58(PackHalf2x16) 54
351               57:      7(ptr) AccessChain 20(inF0) 56
352               58:    6(float) Load 57
353               59:   16(fvec2) CompositeConstruct 58 41
354               60:      8(int) ExtInst 1(GLSL.std.450) 58(PackHalf2x16) 59
355               61:   18(ivec2) CompositeConstruct 55 60
356                               ReturnValue 61
357                               FunctionEnd
358 28(PixelShaderFunction3(vf3;):   25(ivec3) Function None 26
359         27(inF0):     24(ptr) FunctionParameter
360               29:             Label
361               64:      7(ptr) AccessChain 27(inF0) 51
362               65:    6(float) Load 64
363               66:   16(fvec2) CompositeConstruct 65 41
364               67:      8(int) ExtInst 1(GLSL.std.450) 58(PackHalf2x16) 66
365               68:      7(ptr) AccessChain 27(inF0) 56
366               69:    6(float) Load 68
367               70:   16(fvec2) CompositeConstruct 69 41
368               71:      8(int) ExtInst 1(GLSL.std.450) 58(PackHalf2x16) 70
369               73:      7(ptr) AccessChain 27(inF0) 72
370               74:    6(float) Load 73
371               75:   16(fvec2) CompositeConstruct 74 41
372               76:      8(int) ExtInst 1(GLSL.std.450) 58(PackHalf2x16) 75
373               77:   25(ivec3) CompositeConstruct 67 71 76
374                               ReturnValue 77
375                               FunctionEnd
376 35(PixelShaderFunction(vf4;):   32(ivec4) Function None 33
377         34(inF0):     31(ptr) FunctionParameter
378               36:             Label
379               80:      7(ptr) AccessChain 34(inF0) 51
380               81:    6(float) Load 80
381               82:   16(fvec2) CompositeConstruct 81 41
382               83:      8(int) ExtInst 1(GLSL.std.450) 58(PackHalf2x16) 82
383               84:      7(ptr) AccessChain 34(inF0) 56
384               85:    6(float) Load 84
385               86:   16(fvec2) CompositeConstruct 85 41
386               87:      8(int) ExtInst 1(GLSL.std.450) 58(PackHalf2x16) 86
387               88:      7(ptr) AccessChain 34(inF0) 72
388               89:    6(float) Load 88
389               90:   16(fvec2) CompositeConstruct 89 41
390               91:      8(int) ExtInst 1(GLSL.std.450) 58(PackHalf2x16) 90
391               93:      7(ptr) AccessChain 34(inF0) 92
392               94:    6(float) Load 93
393               95:   16(fvec2) CompositeConstruct 94 41
394               96:      8(int) ExtInst 1(GLSL.std.450) 58(PackHalf2x16) 95
395               97:   32(ivec4) CompositeConstruct 83 87 91 96
396                               ReturnValue 97
397                               FunctionEnd
398       38(@main():   30(fvec4) Function None 37
399               39:             Label
400                               ReturnValue 100
401                               FunctionEnd