Update rive-cpp to 2.0 version
[platform/core/uifw/rive-tizen.git] / submodule / skia / tests / sksl / intrinsics / Inversesqrt.asm.frag
1 OpCapability Shader
2 %1 = OpExtInstImport "GLSL.std.450"
3 OpMemoryModel Logical GLSL450
4 OpEntryPoint Fragment %_entrypoint_v "_entrypoint" %sk_FragColor %sk_Clockwise
5 OpExecutionMode %_entrypoint_v OriginUpperLeft
6 OpName %sk_FragColor "sk_FragColor"
7 OpName %sk_Clockwise "sk_Clockwise"
8 OpName %_UniformBuffer "_UniformBuffer"
9 OpMemberName %_UniformBuffer 0 "inputVal"
10 OpMemberName %_UniformBuffer 1 "expected"
11 OpMemberName %_UniformBuffer 2 "colorGreen"
12 OpMemberName %_UniformBuffer 3 "colorRed"
13 OpName %_entrypoint_v "_entrypoint_v"
14 OpName %main "main"
15 OpName %negativeVal "negativeVal"
16 OpDecorate %sk_FragColor RelaxedPrecision
17 OpDecorate %sk_FragColor Location 0
18 OpDecorate %sk_FragColor Index 0
19 OpDecorate %sk_Clockwise BuiltIn FrontFacing
20 OpMemberDecorate %_UniformBuffer 0 Offset 0
21 OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision
22 OpMemberDecorate %_UniformBuffer 1 Offset 16
23 OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision
24 OpMemberDecorate %_UniformBuffer 2 Offset 32
25 OpMemberDecorate %_UniformBuffer 2 RelaxedPrecision
26 OpMemberDecorate %_UniformBuffer 3 Offset 48
27 OpMemberDecorate %_UniformBuffer 3 RelaxedPrecision
28 OpDecorate %_UniformBuffer Block
29 OpDecorate %10 Binding 0
30 OpDecorate %10 DescriptorSet 0
31 OpDecorate %negativeVal RelaxedPrecision
32 OpDecorate %34 RelaxedPrecision
33 OpDecorate %39 RelaxedPrecision
34 OpDecorate %40 RelaxedPrecision
35 OpDecorate %43 RelaxedPrecision
36 OpDecorate %44 RelaxedPrecision
37 OpDecorate %48 RelaxedPrecision
38 OpDecorate %50 RelaxedPrecision
39 OpDecorate %51 RelaxedPrecision
40 OpDecorate %53 RelaxedPrecision
41 OpDecorate %54 RelaxedPrecision
42 OpDecorate %61 RelaxedPrecision
43 OpDecorate %63 RelaxedPrecision
44 OpDecorate %64 RelaxedPrecision
45 OpDecorate %67 RelaxedPrecision
46 OpDecorate %68 RelaxedPrecision
47 OpDecorate %75 RelaxedPrecision
48 OpDecorate %77 RelaxedPrecision
49 OpDecorate %79 RelaxedPrecision
50 OpDecorate %88 RelaxedPrecision
51 OpDecorate %89 RelaxedPrecision
52 OpDecorate %97 RelaxedPrecision
53 OpDecorate %98 RelaxedPrecision
54 OpDecorate %107 RelaxedPrecision
55 OpDecorate %108 RelaxedPrecision
56 OpDecorate %117 RelaxedPrecision
57 OpDecorate %123 RelaxedPrecision
58 OpDecorate %125 RelaxedPrecision
59 OpDecorate %126 RelaxedPrecision
60 OpDecorate %131 RelaxedPrecision
61 OpDecorate %134 RelaxedPrecision
62 OpDecorate %135 RelaxedPrecision
63 OpDecorate %141 RelaxedPrecision
64 OpDecorate %144 RelaxedPrecision
65 OpDecorate %145 RelaxedPrecision
66 OpDecorate %151 RelaxedPrecision
67 OpDecorate %153 RelaxedPrecision
68 OpDecorate %163 RelaxedPrecision
69 OpDecorate %166 RelaxedPrecision
70 OpDecorate %167 RelaxedPrecision
71 %float = OpTypeFloat 32
72 %v4float = OpTypeVector %float 4
73 %_ptr_Output_v4float = OpTypePointer Output %v4float
74 %sk_FragColor = OpVariable %_ptr_Output_v4float Output
75 %bool = OpTypeBool
76 %_ptr_Input_bool = OpTypePointer Input %bool
77 %sk_Clockwise = OpVariable %_ptr_Input_bool Input
78 %_UniformBuffer = OpTypeStruct %v4float %v4float %v4float %v4float
79 %_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
80 %10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
81 %void = OpTypeVoid
82 %15 = OpTypeFunction %void
83 %float_0 = OpConstant %float 0
84 %v2float = OpTypeVector %float 2
85 %19 = OpConstantComposite %v2float %float_0 %float_0
86 %_ptr_Function_v2float = OpTypePointer Function %v2float
87 %23 = OpTypeFunction %v4float %_ptr_Function_v2float
88 %_ptr_Function_v4float = OpTypePointer Function %v4float
89 %float_n1 = OpConstant %float -1
90 %float_n4 = OpConstant %float -4
91 %float_n16 = OpConstant %float -16
92 %float_n64 = OpConstant %float -64
93 %32 = OpConstantComposite %v4float %float_n1 %float_n4 %float_n16 %float_n64
94 %false = OpConstantFalse %bool
95 %_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
96 %int = OpTypeInt 32 1
97 %int_0 = OpConstant %int 0
98 %int_1 = OpConstant %int 1
99 %v2bool = OpTypeVector %bool 2
100 %v3float = OpTypeVector %float 3
101 %v3bool = OpTypeVector %bool 3
102 %v4bool = OpTypeVector %bool 4
103 %float_1 = OpConstant %float 1
104 %float_0_5 = OpConstant %float 0.5
105 %95 = OpConstantComposite %v2float %float_1 %float_0_5
106 %float_0_25 = OpConstant %float 0.25
107 %105 = OpConstantComposite %v3float %float_1 %float_0_5 %float_0_25
108 %float_0_125 = OpConstant %float 0.125
109 %115 = OpConstantComposite %v4float %float_1 %float_0_5 %float_0_25 %float_0_125
110 %132 = OpConstantComposite %v2float %float_n1 %float_n4
111 %142 = OpConstantComposite %v3float %float_n1 %float_n4 %float_n16
112 %int_2 = OpConstant %int 2
113 %int_3 = OpConstant %int 3
114 %_entrypoint_v = OpFunction %void None %15
115 %16 = OpLabel
116 %20 = OpVariable %_ptr_Function_v2float Function
117 OpStore %20 %19
118 %22 = OpFunctionCall %v4float %main %20
119 OpStore %sk_FragColor %22
120 OpReturn
121 OpFunctionEnd
122 %main = OpFunction %v4float None %23
123 %24 = OpFunctionParameter %_ptr_Function_v2float
124 %25 = OpLabel
125 %negativeVal = OpVariable %_ptr_Function_v4float Function
126 %157 = OpVariable %_ptr_Function_v4float Function
127 OpStore %negativeVal %32
128 %35 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
129 %39 = OpLoad %v4float %35
130 %40 = OpCompositeExtract %float %39 0
131 %34 = OpExtInst %float %1 InverseSqrt %40
132 %41 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
133 %43 = OpLoad %v4float %41
134 %44 = OpCompositeExtract %float %43 0
135 %45 = OpFOrdEqual %bool %34 %44
136 OpSelectionMerge %47 None
137 OpBranchConditional %45 %46 %47
138 %46 = OpLabel
139 %49 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
140 %50 = OpLoad %v4float %49
141 %51 = OpVectorShuffle %v2float %50 %50 0 1
142 %48 = OpExtInst %v2float %1 InverseSqrt %51
143 %52 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
144 %53 = OpLoad %v4float %52
145 %54 = OpVectorShuffle %v2float %53 %53 0 1
146 %55 = OpFOrdEqual %v2bool %48 %54
147 %57 = OpAll %bool %55
148 OpBranch %47
149 %47 = OpLabel
150 %58 = OpPhi %bool %false %25 %57 %46
151 OpSelectionMerge %60 None
152 OpBranchConditional %58 %59 %60
153 %59 = OpLabel
154 %62 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
155 %63 = OpLoad %v4float %62
156 %64 = OpVectorShuffle %v3float %63 %63 0 1 2
157 %61 = OpExtInst %v3float %1 InverseSqrt %64
158 %66 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
159 %67 = OpLoad %v4float %66
160 %68 = OpVectorShuffle %v3float %67 %67 0 1 2
161 %69 = OpFOrdEqual %v3bool %61 %68
162 %71 = OpAll %bool %69
163 OpBranch %60
164 %60 = OpLabel
165 %72 = OpPhi %bool %false %47 %71 %59
166 OpSelectionMerge %74 None
167 OpBranchConditional %72 %73 %74
168 %73 = OpLabel
169 %76 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
170 %77 = OpLoad %v4float %76
171 %75 = OpExtInst %v4float %1 InverseSqrt %77
172 %78 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
173 %79 = OpLoad %v4float %78
174 %80 = OpFOrdEqual %v4bool %75 %79
175 %82 = OpAll %bool %80
176 OpBranch %74
177 %74 = OpLabel
178 %83 = OpPhi %bool %false %60 %82 %73
179 OpSelectionMerge %85 None
180 OpBranchConditional %83 %84 %85
181 %84 = OpLabel
182 %87 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
183 %88 = OpLoad %v4float %87
184 %89 = OpCompositeExtract %float %88 0
185 %90 = OpFOrdEqual %bool %float_1 %89
186 OpBranch %85
187 %85 = OpLabel
188 %91 = OpPhi %bool %false %74 %90 %84
189 OpSelectionMerge %93 None
190 OpBranchConditional %91 %92 %93
191 %92 = OpLabel
192 %96 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
193 %97 = OpLoad %v4float %96
194 %98 = OpVectorShuffle %v2float %97 %97 0 1
195 %99 = OpFOrdEqual %v2bool %95 %98
196 %100 = OpAll %bool %99
197 OpBranch %93
198 %93 = OpLabel
199 %101 = OpPhi %bool %false %85 %100 %92
200 OpSelectionMerge %103 None
201 OpBranchConditional %101 %102 %103
202 %102 = OpLabel
203 %106 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
204 %107 = OpLoad %v4float %106
205 %108 = OpVectorShuffle %v3float %107 %107 0 1 2
206 %109 = OpFOrdEqual %v3bool %105 %108
207 %110 = OpAll %bool %109
208 OpBranch %103
209 %103 = OpLabel
210 %111 = OpPhi %bool %false %93 %110 %102
211 OpSelectionMerge %113 None
212 OpBranchConditional %111 %112 %113
213 %112 = OpLabel
214 %116 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
215 %117 = OpLoad %v4float %116
216 %118 = OpFOrdEqual %v4bool %115 %117
217 %119 = OpAll %bool %118
218 OpBranch %113
219 %113 = OpLabel
220 %120 = OpPhi %bool %false %103 %119 %112
221 OpSelectionMerge %122 None
222 OpBranchConditional %120 %121 %122
223 %121 = OpLabel
224 %123 = OpExtInst %float %1 InverseSqrt %float_n1
225 %124 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
226 %125 = OpLoad %v4float %124
227 %126 = OpCompositeExtract %float %125 0
228 %127 = OpFOrdEqual %bool %123 %126
229 OpBranch %122
230 %122 = OpLabel
231 %128 = OpPhi %bool %false %113 %127 %121
232 OpSelectionMerge %130 None
233 OpBranchConditional %128 %129 %130
234 %129 = OpLabel
235 %131 = OpExtInst %v2float %1 InverseSqrt %132
236 %133 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
237 %134 = OpLoad %v4float %133
238 %135 = OpVectorShuffle %v2float %134 %134 0 1
239 %136 = OpFOrdEqual %v2bool %131 %135
240 %137 = OpAll %bool %136
241 OpBranch %130
242 %130 = OpLabel
243 %138 = OpPhi %bool %false %122 %137 %129
244 OpSelectionMerge %140 None
245 OpBranchConditional %138 %139 %140
246 %139 = OpLabel
247 %141 = OpExtInst %v3float %1 InverseSqrt %142
248 %143 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
249 %144 = OpLoad %v4float %143
250 %145 = OpVectorShuffle %v3float %144 %144 0 1 2
251 %146 = OpFOrdEqual %v3bool %141 %145
252 %147 = OpAll %bool %146
253 OpBranch %140
254 %140 = OpLabel
255 %148 = OpPhi %bool %false %130 %147 %139
256 OpSelectionMerge %150 None
257 OpBranchConditional %148 %149 %150
258 %149 = OpLabel
259 %151 = OpExtInst %v4float %1 InverseSqrt %32
260 %152 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
261 %153 = OpLoad %v4float %152
262 %154 = OpFOrdEqual %v4bool %151 %153
263 %155 = OpAll %bool %154
264 OpBranch %150
265 %150 = OpLabel
266 %156 = OpPhi %bool %false %140 %155 %149
267 OpSelectionMerge %160 None
268 OpBranchConditional %156 %158 %159
269 %158 = OpLabel
270 %161 = OpAccessChain %_ptr_Uniform_v4float %10 %int_2
271 %163 = OpLoad %v4float %161
272 OpStore %157 %163
273 OpBranch %160
274 %159 = OpLabel
275 %164 = OpAccessChain %_ptr_Uniform_v4float %10 %int_3
276 %166 = OpLoad %v4float %164
277 OpStore %157 %166
278 OpBranch %160
279 %160 = OpLabel
280 %167 = OpLoad %v4float %157
281 OpReturnValue %167
282 OpFunctionEnd