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