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