8444e20ac90b5359d71699bb1b50ef6c1fdf4640
[platform/upstream/glslang.git] / Test / baseResults / hlsl.intrinsics.double.frag.out
1 hlsl.intrinsics.double.frag
2 Shader version: 500
3 gl_FragCoord origin is upper left
4 0:? Sequence
5 0:5  Function Definition: @PixelShaderFunction(d1;d1;d1;vd2;vd3;vd4;u1;u1; ( temp float)
6 0:5    Function Parameters: 
7 0:5      'inDV1a' ( in double)
8 0:5      'inDV1b' ( in double)
9 0:5      'inDV1c' ( in double)
10 0:5      'inDV2' ( in 2-component vector of double)
11 0:5      'inDV3' ( in 3-component vector of double)
12 0:5      'inDV4' ( in 4-component vector of double)
13 0:5      'inU1a' ( in uint)
14 0:5      'inU1b' ( in uint)
15 0:?     Sequence
16 0:6      Sequence
17 0:6        move second child to first child ( temp double)
18 0:6          'r00' ( temp double)
19 0:6          fma ( temp double)
20 0:6            'inDV1a' ( in double)
21 0:6            'inDV1b' ( in double)
22 0:6            'inDV1c' ( in double)
23 0:7      Sequence
24 0:7        move second child to first child ( temp double)
25 0:7          'r01' ( temp double)
26 0:7          uint64BitsToDouble ( temp double)
27 0:7            Construct uvec2 ( temp 2-component vector of uint)
28 0:7              'inU1a' ( in uint)
29 0:7              'inU1b' ( in uint)
30 0:9      Branch: Return with expression
31 0:9        Constant:
32 0:9          0.000000
33 0:5  Function Definition: PixelShaderFunction( ( temp void)
34 0:5    Function Parameters: 
35 0:?     Sequence
36 0:5      move second child to first child ( temp double)
37 0:?         'inDV1a' ( temp double)
38 0:?         'inDV1a' (layout( location=0) flat in double)
39 0:5      move second child to first child ( temp double)
40 0:?         'inDV1b' ( temp double)
41 0:?         'inDV1b' (layout( location=1) flat in double)
42 0:5      move second child to first child ( temp double)
43 0:?         'inDV1c' ( temp double)
44 0:?         'inDV1c' (layout( location=2) flat in double)
45 0:5      move second child to first child ( temp 2-component vector of double)
46 0:?         'inDV2' ( temp 2-component vector of double)
47 0:?         'inDV2' (layout( location=3) flat in 2-component vector of double)
48 0:5      move second child to first child ( temp 3-component vector of double)
49 0:?         'inDV3' ( temp 3-component vector of double)
50 0:?         'inDV3' (layout( location=4) flat in 3-component vector of double)
51 0:5      move second child to first child ( temp 4-component vector of double)
52 0:?         'inDV4' ( temp 4-component vector of double)
53 0:?         'inDV4' (layout( location=6) flat in 4-component vector of double)
54 0:5      move second child to first child ( temp uint)
55 0:?         'inU1a' ( temp uint)
56 0:?         'inU1a' (layout( location=8) flat in uint)
57 0:5      move second child to first child ( temp uint)
58 0:?         'inU1b' ( temp uint)
59 0:?         'inU1b' (layout( location=9) flat in uint)
60 0:5      move second child to first child ( temp float)
61 0:?         '@entryPointOutput' (layout( location=0) out float)
62 0:5        Function Call: @PixelShaderFunction(d1;d1;d1;vd2;vd3;vd4;u1;u1; ( temp float)
63 0:?           'inDV1a' ( temp double)
64 0:?           'inDV1b' ( temp double)
65 0:?           'inDV1c' ( temp double)
66 0:?           'inDV2' ( temp 2-component vector of double)
67 0:?           'inDV3' ( temp 3-component vector of double)
68 0:?           'inDV4' ( temp 4-component vector of double)
69 0:?           'inU1a' ( temp uint)
70 0:?           'inU1b' ( temp uint)
71 0:?   Linker Objects
72 0:?     '@entryPointOutput' (layout( location=0) out float)
73 0:?     'inDV1a' (layout( location=0) flat in double)
74 0:?     'inDV1b' (layout( location=1) flat in double)
75 0:?     'inDV1c' (layout( location=2) flat in double)
76 0:?     'inDV2' (layout( location=3) flat in 2-component vector of double)
77 0:?     'inDV3' (layout( location=4) flat in 3-component vector of double)
78 0:?     'inDV4' (layout( location=6) flat in 4-component vector of double)
79 0:?     'inU1a' (layout( location=8) flat in uint)
80 0:?     'inU1b' (layout( location=9) flat in uint)
81
82
83 Linked fragment stage:
84
85
86 Shader version: 500
87 gl_FragCoord origin is upper left
88 0:? Sequence
89 0:5  Function Definition: @PixelShaderFunction(d1;d1;d1;vd2;vd3;vd4;u1;u1; ( temp float)
90 0:5    Function Parameters: 
91 0:5      'inDV1a' ( in double)
92 0:5      'inDV1b' ( in double)
93 0:5      'inDV1c' ( in double)
94 0:5      'inDV2' ( in 2-component vector of double)
95 0:5      'inDV3' ( in 3-component vector of double)
96 0:5      'inDV4' ( in 4-component vector of double)
97 0:5      'inU1a' ( in uint)
98 0:5      'inU1b' ( in uint)
99 0:?     Sequence
100 0:6      Sequence
101 0:6        move second child to first child ( temp double)
102 0:6          'r00' ( temp double)
103 0:6          fma ( temp double)
104 0:6            'inDV1a' ( in double)
105 0:6            'inDV1b' ( in double)
106 0:6            'inDV1c' ( in double)
107 0:7      Sequence
108 0:7        move second child to first child ( temp double)
109 0:7          'r01' ( temp double)
110 0:7          uint64BitsToDouble ( temp double)
111 0:7            Construct uvec2 ( temp 2-component vector of uint)
112 0:7              'inU1a' ( in uint)
113 0:7              'inU1b' ( in uint)
114 0:9      Branch: Return with expression
115 0:9        Constant:
116 0:9          0.000000
117 0:5  Function Definition: PixelShaderFunction( ( temp void)
118 0:5    Function Parameters: 
119 0:?     Sequence
120 0:5      move second child to first child ( temp double)
121 0:?         'inDV1a' ( temp double)
122 0:?         'inDV1a' (layout( location=0) flat in double)
123 0:5      move second child to first child ( temp double)
124 0:?         'inDV1b' ( temp double)
125 0:?         'inDV1b' (layout( location=1) flat in double)
126 0:5      move second child to first child ( temp double)
127 0:?         'inDV1c' ( temp double)
128 0:?         'inDV1c' (layout( location=2) flat in double)
129 0:5      move second child to first child ( temp 2-component vector of double)
130 0:?         'inDV2' ( temp 2-component vector of double)
131 0:?         'inDV2' (layout( location=3) flat in 2-component vector of double)
132 0:5      move second child to first child ( temp 3-component vector of double)
133 0:?         'inDV3' ( temp 3-component vector of double)
134 0:?         'inDV3' (layout( location=4) flat in 3-component vector of double)
135 0:5      move second child to first child ( temp 4-component vector of double)
136 0:?         'inDV4' ( temp 4-component vector of double)
137 0:?         'inDV4' (layout( location=6) flat in 4-component vector of double)
138 0:5      move second child to first child ( temp uint)
139 0:?         'inU1a' ( temp uint)
140 0:?         'inU1a' (layout( location=8) flat in uint)
141 0:5      move second child to first child ( temp uint)
142 0:?         'inU1b' ( temp uint)
143 0:?         'inU1b' (layout( location=9) flat in uint)
144 0:5      move second child to first child ( temp float)
145 0:?         '@entryPointOutput' (layout( location=0) out float)
146 0:5        Function Call: @PixelShaderFunction(d1;d1;d1;vd2;vd3;vd4;u1;u1; ( temp float)
147 0:?           'inDV1a' ( temp double)
148 0:?           'inDV1b' ( temp double)
149 0:?           'inDV1c' ( temp double)
150 0:?           'inDV2' ( temp 2-component vector of double)
151 0:?           'inDV3' ( temp 3-component vector of double)
152 0:?           'inDV4' ( temp 4-component vector of double)
153 0:?           'inU1a' ( temp uint)
154 0:?           'inU1b' ( temp uint)
155 0:?   Linker Objects
156 0:?     '@entryPointOutput' (layout( location=0) out float)
157 0:?     'inDV1a' (layout( location=0) flat in double)
158 0:?     'inDV1b' (layout( location=1) flat in double)
159 0:?     'inDV1c' (layout( location=2) flat in double)
160 0:?     'inDV2' (layout( location=3) flat in 2-component vector of double)
161 0:?     'inDV3' (layout( location=4) flat in 3-component vector of double)
162 0:?     'inDV4' (layout( location=6) flat in 4-component vector of double)
163 0:?     'inU1a' (layout( location=8) flat in uint)
164 0:?     'inU1b' (layout( location=9) flat in uint)
165
166 // Module Version 10000
167 // Generated by (magic number): 8000a
168 // Id's are bound by 90
169
170                               Capability Shader
171                               Capability Float64
172                1:             ExtInstImport  "GLSL.std.450"
173                               MemoryModel Logical GLSL450
174                               EntryPoint Fragment 4  "PixelShaderFunction" 44 47 50 54 58 62 66 69 72
175                               ExecutionMode 4 OriginUpperLeft
176                               Source HLSL 500
177                               Name 4  "PixelShaderFunction"
178                               Name 26  "@PixelShaderFunction(d1;d1;d1;vd2;vd3;vd4;u1;u1;"
179                               Name 18  "inDV1a"
180                               Name 19  "inDV1b"
181                               Name 20  "inDV1c"
182                               Name 21  "inDV2"
183                               Name 22  "inDV3"
184                               Name 23  "inDV4"
185                               Name 24  "inU1a"
186                               Name 25  "inU1b"
187                               Name 28  "r00"
188                               Name 33  "r01"
189                               Name 42  "inDV1a"
190                               Name 44  "inDV1a"
191                               Name 46  "inDV1b"
192                               Name 47  "inDV1b"
193                               Name 49  "inDV1c"
194                               Name 50  "inDV1c"
195                               Name 52  "inDV2"
196                               Name 54  "inDV2"
197                               Name 56  "inDV3"
198                               Name 58  "inDV3"
199                               Name 60  "inDV4"
200                               Name 62  "inDV4"
201                               Name 64  "inU1a"
202                               Name 66  "inU1a"
203                               Name 68  "inU1b"
204                               Name 69  "inU1b"
205                               Name 72  "@entryPointOutput"
206                               Name 73  "param"
207                               Name 75  "param"
208                               Name 77  "param"
209                               Name 79  "param"
210                               Name 81  "param"
211                               Name 83  "param"
212                               Name 85  "param"
213                               Name 87  "param"
214                               Decorate 44(inDV1a) Flat
215                               Decorate 44(inDV1a) Location 0
216                               Decorate 47(inDV1b) Flat
217                               Decorate 47(inDV1b) Location 1
218                               Decorate 50(inDV1c) Flat
219                               Decorate 50(inDV1c) Location 2
220                               Decorate 54(inDV2) Flat
221                               Decorate 54(inDV2) Location 3
222                               Decorate 58(inDV3) Flat
223                               Decorate 58(inDV3) Location 4
224                               Decorate 62(inDV4) Flat
225                               Decorate 62(inDV4) Location 6
226                               Decorate 66(inU1a) Flat
227                               Decorate 66(inU1a) Location 8
228                               Decorate 69(inU1b) Flat
229                               Decorate 69(inU1b) Location 9
230                               Decorate 72(@entryPointOutput) Location 0
231                2:             TypeVoid
232                3:             TypeFunction 2
233                6:             TypeFloat 64
234                7:             TypePointer Function 6(float64_t)
235                8:             TypeVector 6(float64_t) 2
236                9:             TypePointer Function 8(f64vec2)
237               10:             TypeVector 6(float64_t) 3
238               11:             TypePointer Function 10(f64vec3)
239               12:             TypeVector 6(float64_t) 4
240               13:             TypePointer Function 12(f64vec4)
241               14:             TypeInt 32 0
242               15:             TypePointer Function 14(int)
243               16:             TypeFloat 32
244               17:             TypeFunction 16(float) 7(ptr) 7(ptr) 7(ptr) 9(ptr) 11(ptr) 13(ptr) 15(ptr) 15(ptr)
245               36:             TypeVector 14(int) 2
246               39:   16(float) Constant 0
247               43:             TypePointer Input 6(float64_t)
248       44(inDV1a):     43(ptr) Variable Input
249       47(inDV1b):     43(ptr) Variable Input
250       50(inDV1c):     43(ptr) Variable Input
251               53:             TypePointer Input 8(f64vec2)
252        54(inDV2):     53(ptr) Variable Input
253               57:             TypePointer Input 10(f64vec3)
254        58(inDV3):     57(ptr) Variable Input
255               61:             TypePointer Input 12(f64vec4)
256        62(inDV4):     61(ptr) Variable Input
257               65:             TypePointer Input 14(int)
258        66(inU1a):     65(ptr) Variable Input
259        69(inU1b):     65(ptr) Variable Input
260               71:             TypePointer Output 16(float)
261 72(@entryPointOutput):     71(ptr) Variable Output
262 4(PixelShaderFunction):           2 Function None 3
263                5:             Label
264       42(inDV1a):      7(ptr) Variable Function
265       46(inDV1b):      7(ptr) Variable Function
266       49(inDV1c):      7(ptr) Variable Function
267        52(inDV2):      9(ptr) Variable Function
268        56(inDV3):     11(ptr) Variable Function
269        60(inDV4):     13(ptr) Variable Function
270        64(inU1a):     15(ptr) Variable Function
271        68(inU1b):     15(ptr) Variable Function
272        73(param):      7(ptr) Variable Function
273        75(param):      7(ptr) Variable Function
274        77(param):      7(ptr) Variable Function
275        79(param):      9(ptr) Variable Function
276        81(param):     11(ptr) Variable Function
277        83(param):     13(ptr) Variable Function
278        85(param):     15(ptr) Variable Function
279        87(param):     15(ptr) Variable Function
280               45:6(float64_t) Load 44(inDV1a)
281                               Store 42(inDV1a) 45
282               48:6(float64_t) Load 47(inDV1b)
283                               Store 46(inDV1b) 48
284               51:6(float64_t) Load 50(inDV1c)
285                               Store 49(inDV1c) 51
286               55:  8(f64vec2) Load 54(inDV2)
287                               Store 52(inDV2) 55
288               59: 10(f64vec3) Load 58(inDV3)
289                               Store 56(inDV3) 59
290               63: 12(f64vec4) Load 62(inDV4)
291                               Store 60(inDV4) 63
292               67:     14(int) Load 66(inU1a)
293                               Store 64(inU1a) 67
294               70:     14(int) Load 69(inU1b)
295                               Store 68(inU1b) 70
296               74:6(float64_t) Load 42(inDV1a)
297                               Store 73(param) 74
298               76:6(float64_t) Load 46(inDV1b)
299                               Store 75(param) 76
300               78:6(float64_t) Load 49(inDV1c)
301                               Store 77(param) 78
302               80:  8(f64vec2) Load 52(inDV2)
303                               Store 79(param) 80
304               82: 10(f64vec3) Load 56(inDV3)
305                               Store 81(param) 82
306               84: 12(f64vec4) Load 60(inDV4)
307                               Store 83(param) 84
308               86:     14(int) Load 64(inU1a)
309                               Store 85(param) 86
310               88:     14(int) Load 68(inU1b)
311                               Store 87(param) 88
312               89:   16(float) FunctionCall 26(@PixelShaderFunction(d1;d1;d1;vd2;vd3;vd4;u1;u1;) 73(param) 75(param) 77(param) 79(param) 81(param) 83(param) 85(param) 87(param)
313                               Store 72(@entryPointOutput) 89
314                               Return
315                               FunctionEnd
316 26(@PixelShaderFunction(d1;d1;d1;vd2;vd3;vd4;u1;u1;):   16(float) Function None 17
317       18(inDV1a):      7(ptr) FunctionParameter
318       19(inDV1b):      7(ptr) FunctionParameter
319       20(inDV1c):      7(ptr) FunctionParameter
320        21(inDV2):      9(ptr) FunctionParameter
321        22(inDV3):     11(ptr) FunctionParameter
322        23(inDV4):     13(ptr) FunctionParameter
323        24(inU1a):     15(ptr) FunctionParameter
324        25(inU1b):     15(ptr) FunctionParameter
325               27:             Label
326          28(r00):      7(ptr) Variable Function
327          33(r01):      7(ptr) Variable Function
328               29:6(float64_t) Load 18(inDV1a)
329               30:6(float64_t) Load 19(inDV1b)
330               31:6(float64_t) Load 20(inDV1c)
331               32:6(float64_t) ExtInst 1(GLSL.std.450) 50(Fma) 29 30 31
332                               Store 28(r00) 32
333               34:     14(int) Load 24(inU1a)
334               35:     14(int) Load 25(inU1b)
335               37:   36(ivec2) CompositeConstruct 34 35
336               38:6(float64_t) Bitcast 37
337                               Store 33(r01) 38
338                               ReturnValue 39
339                               FunctionEnd