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