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