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