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