1a6524f788caf8387d79c1b6f9f76f8b869d9a68
[platform/upstream/glslang.git] / Test / baseResults / hlsl.intrinsics.double.frag.out
1 hlsl.intrinsics.double.frag
2 Shader version: 450
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) in double)
39 0:5      move second child to first child ( temp double)
40 0:?         'inDV1b' ( temp double)
41 0:?         'inDV1b' (layout( location=1) in double)
42 0:5      move second child to first child ( temp double)
43 0:?         'inDV1c' ( temp double)
44 0:?         'inDV1c' (layout( location=2) 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) 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) 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) 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) in uint)
57 0:5      move second child to first child ( temp uint)
58 0:?         'inU1b' ( temp uint)
59 0:?         'inU1b' (layout( location=9) 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) in double)
74 0:?     'inDV1b' (layout( location=1) in double)
75 0:?     'inDV1c' (layout( location=2) in double)
76 0:?     'inDV2' (layout( location=3) in 2-component vector of double)
77 0:?     'inDV3' (layout( location=4) in 3-component vector of double)
78 0:?     'inDV4' (layout( location=6) in 4-component vector of double)
79 0:?     'inU1a' (layout( location=8) in uint)
80 0:?     'inU1b' (layout( location=9) in uint)
81
82
83 Linked fragment stage:
84
85
86 Shader version: 450
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) in double)
123 0:5      move second child to first child ( temp double)
124 0:?         'inDV1b' ( temp double)
125 0:?         'inDV1b' (layout( location=1) in double)
126 0:5      move second child to first child ( temp double)
127 0:?         'inDV1c' ( temp double)
128 0:?         'inDV1c' (layout( location=2) 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) 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) 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) 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) in uint)
141 0:5      move second child to first child ( temp uint)
142 0:?         'inU1b' ( temp uint)
143 0:?         'inU1b' (layout( location=9) 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) in double)
158 0:?     'inDV1b' (layout( location=1) in double)
159 0:?     'inDV1c' (layout( location=2) in double)
160 0:?     'inDV2' (layout( location=3) in 2-component vector of double)
161 0:?     'inDV3' (layout( location=4) in 3-component vector of double)
162 0:?     'inDV4' (layout( location=6) in 4-component vector of double)
163 0:?     'inU1a' (layout( location=8) in uint)
164 0:?     'inU1b' (layout( location=9) in uint)
165
166 // Module Version 10000
167 // Generated by (magic number): 80001
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                               Name 4  "PixelShaderFunction"
177                               Name 26  "@PixelShaderFunction(d1;d1;d1;vd2;vd3;vd4;u1;u1;"
178                               Name 18  "inDV1a"
179                               Name 19  "inDV1b"
180                               Name 20  "inDV1c"
181                               Name 21  "inDV2"
182                               Name 22  "inDV3"
183                               Name 23  "inDV4"
184                               Name 24  "inU1a"
185                               Name 25  "inU1b"
186                               Name 28  "r00"
187                               Name 33  "r01"
188                               Name 42  "inDV1a"
189                               Name 44  "inDV1a"
190                               Name 46  "inDV1b"
191                               Name 47  "inDV1b"
192                               Name 49  "inDV1c"
193                               Name 50  "inDV1c"
194                               Name 52  "inDV2"
195                               Name 54  "inDV2"
196                               Name 56  "inDV3"
197                               Name 58  "inDV3"
198                               Name 60  "inDV4"
199                               Name 62  "inDV4"
200                               Name 64  "inU1a"
201                               Name 66  "inU1a"
202                               Name 68  "inU1b"
203                               Name 69  "inU1b"
204                               Name 72  "@entryPointOutput"
205                               Name 73  "param"
206                               Name 75  "param"
207                               Name 77  "param"
208                               Name 79  "param"
209                               Name 81  "param"
210                               Name 83  "param"
211                               Name 85  "param"
212                               Name 87  "param"
213                               Decorate 44(inDV1a) Location 0
214                               Decorate 47(inDV1b) Location 1
215                               Decorate 50(inDV1c) Location 2
216                               Decorate 54(inDV2) Location 3
217                               Decorate 58(inDV3) Location 4
218                               Decorate 62(inDV4) Location 6
219                               Decorate 66(inU1a) Location 8
220                               Decorate 69(inU1b) Location 9
221                               Decorate 72(@entryPointOutput) Location 0
222                2:             TypeVoid
223                3:             TypeFunction 2
224                6:             TypeFloat 64
225                7:             TypePointer Function 6(float)
226                8:             TypeVector 6(float) 2
227                9:             TypePointer Function 8(fvec2)
228               10:             TypeVector 6(float) 3
229               11:             TypePointer Function 10(fvec3)
230               12:             TypeVector 6(float) 4
231               13:             TypePointer Function 12(fvec4)
232               14:             TypeInt 32 0
233               15:             TypePointer Function 14(int)
234               16:             TypeFloat 32
235               17:             TypeFunction 16(float) 7(ptr) 7(ptr) 7(ptr) 9(ptr) 11(ptr) 13(ptr) 15(ptr) 15(ptr)
236               36:             TypeVector 14(int) 2
237               39:   16(float) Constant 0
238               43:             TypePointer Input 6(float)
239       44(inDV1a):     43(ptr) Variable Input
240       47(inDV1b):     43(ptr) Variable Input
241       50(inDV1c):     43(ptr) Variable Input
242               53:             TypePointer Input 8(fvec2)
243        54(inDV2):     53(ptr) Variable Input
244               57:             TypePointer Input 10(fvec3)
245        58(inDV3):     57(ptr) Variable Input
246               61:             TypePointer Input 12(fvec4)
247        62(inDV4):     61(ptr) Variable Input
248               65:             TypePointer Input 14(int)
249        66(inU1a):     65(ptr) Variable Input
250        69(inU1b):     65(ptr) Variable Input
251               71:             TypePointer Output 16(float)
252 72(@entryPointOutput):     71(ptr) Variable Output
253 4(PixelShaderFunction):           2 Function None 3
254                5:             Label
255       42(inDV1a):      7(ptr) Variable Function
256       46(inDV1b):      7(ptr) Variable Function
257       49(inDV1c):      7(ptr) Variable Function
258        52(inDV2):      9(ptr) Variable Function
259        56(inDV3):     11(ptr) Variable Function
260        60(inDV4):     13(ptr) Variable Function
261        64(inU1a):     15(ptr) Variable Function
262        68(inU1b):     15(ptr) Variable Function
263        73(param):      7(ptr) Variable Function
264        75(param):      7(ptr) Variable Function
265        77(param):      7(ptr) Variable Function
266        79(param):      9(ptr) Variable Function
267        81(param):     11(ptr) Variable Function
268        83(param):     13(ptr) Variable Function
269        85(param):     15(ptr) Variable Function
270        87(param):     15(ptr) Variable Function
271               45:    6(float) Load 44(inDV1a)
272                               Store 42(inDV1a) 45
273               48:    6(float) Load 47(inDV1b)
274                               Store 46(inDV1b) 48
275               51:    6(float) Load 50(inDV1c)
276                               Store 49(inDV1c) 51
277               55:    8(fvec2) Load 54(inDV2)
278                               Store 52(inDV2) 55
279               59:   10(fvec3) Load 58(inDV3)
280                               Store 56(inDV3) 59
281               63:   12(fvec4) Load 62(inDV4)
282                               Store 60(inDV4) 63
283               67:     14(int) Load 66(inU1a)
284                               Store 64(inU1a) 67
285               70:     14(int) Load 69(inU1b)
286                               Store 68(inU1b) 70
287               74:    6(float) Load 42(inDV1a)
288                               Store 73(param) 74
289               76:    6(float) Load 46(inDV1b)
290                               Store 75(param) 76
291               78:    6(float) Load 49(inDV1c)
292                               Store 77(param) 78
293               80:    8(fvec2) Load 52(inDV2)
294                               Store 79(param) 80
295               82:   10(fvec3) Load 56(inDV3)
296                               Store 81(param) 82
297               84:   12(fvec4) Load 60(inDV4)
298                               Store 83(param) 84
299               86:     14(int) Load 64(inU1a)
300                               Store 85(param) 86
301               88:     14(int) Load 68(inU1b)
302                               Store 87(param) 88
303               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)
304                               Store 72(@entryPointOutput) 89
305                               Return
306                               FunctionEnd
307 26(@PixelShaderFunction(d1;d1;d1;vd2;vd3;vd4;u1;u1;):   16(float) Function None 17
308       18(inDV1a):      7(ptr) FunctionParameter
309       19(inDV1b):      7(ptr) FunctionParameter
310       20(inDV1c):      7(ptr) FunctionParameter
311        21(inDV2):      9(ptr) FunctionParameter
312        22(inDV3):     11(ptr) FunctionParameter
313        23(inDV4):     13(ptr) FunctionParameter
314        24(inU1a):     15(ptr) FunctionParameter
315        25(inU1b):     15(ptr) FunctionParameter
316               27:             Label
317          28(r00):      7(ptr) Variable Function
318          33(r01):      7(ptr) Variable Function
319               29:    6(float) Load 18(inDV1a)
320               30:    6(float) Load 19(inDV1b)
321               31:    6(float) Load 20(inDV1c)
322               32:    6(float) ExtInst 1(GLSL.std.450) 50(Fma) 29 30 31
323                               Store 28(r00) 32
324               34:     14(int) Load 24(inU1a)
325               35:     14(int) Load 25(inU1b)
326               37:   36(ivec2) CompositeConstruct 34 35
327               38:    6(float) Bitcast 37
328                               Store 33(r01) 38
329                               ReturnValue 39
330                               FunctionEnd