Update rive-cpp to 2.0 version
[platform/core/uifw/rive-tizen.git] / submodule / skia / tests / sksl / intrinsics / Tanh.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 OpDecorate %sk_FragColor RelaxedPrecision
16 OpDecorate %sk_FragColor Location 0
17 OpDecorate %sk_FragColor Index 0
18 OpDecorate %sk_Clockwise BuiltIn FrontFacing
19 OpMemberDecorate %_UniformBuffer 0 Offset 0
20 OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision
21 OpMemberDecorate %_UniformBuffer 1 Offset 16
22 OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision
23 OpMemberDecorate %_UniformBuffer 2 Offset 32
24 OpMemberDecorate %_UniformBuffer 2 RelaxedPrecision
25 OpMemberDecorate %_UniformBuffer 3 Offset 48
26 OpMemberDecorate %_UniformBuffer 3 RelaxedPrecision
27 OpDecorate %_UniformBuffer Block
28 OpDecorate %10 Binding 0
29 OpDecorate %10 DescriptorSet 0
30 OpDecorate %27 RelaxedPrecision
31 OpDecorate %32 RelaxedPrecision
32 OpDecorate %33 RelaxedPrecision
33 OpDecorate %36 RelaxedPrecision
34 OpDecorate %37 RelaxedPrecision
35 OpDecorate %41 RelaxedPrecision
36 OpDecorate %43 RelaxedPrecision
37 OpDecorate %44 RelaxedPrecision
38 OpDecorate %46 RelaxedPrecision
39 OpDecorate %47 RelaxedPrecision
40 OpDecorate %54 RelaxedPrecision
41 OpDecorate %56 RelaxedPrecision
42 OpDecorate %57 RelaxedPrecision
43 OpDecorate %60 RelaxedPrecision
44 OpDecorate %61 RelaxedPrecision
45 OpDecorate %68 RelaxedPrecision
46 OpDecorate %70 RelaxedPrecision
47 OpDecorate %72 RelaxedPrecision
48 OpDecorate %80 RelaxedPrecision
49 OpDecorate %81 RelaxedPrecision
50 OpDecorate %87 RelaxedPrecision
51 OpDecorate %88 RelaxedPrecision
52 OpDecorate %96 RelaxedPrecision
53 OpDecorate %97 RelaxedPrecision
54 OpDecorate %105 RelaxedPrecision
55 OpDecorate %116 RelaxedPrecision
56 OpDecorate %119 RelaxedPrecision
57 OpDecorate %120 RelaxedPrecision
58 %float = OpTypeFloat 32
59 %v4float = OpTypeVector %float 4
60 %_ptr_Output_v4float = OpTypePointer Output %v4float
61 %sk_FragColor = OpVariable %_ptr_Output_v4float Output
62 %bool = OpTypeBool
63 %_ptr_Input_bool = OpTypePointer Input %bool
64 %sk_Clockwise = OpVariable %_ptr_Input_bool Input
65 %_UniformBuffer = OpTypeStruct %v4float %v4float %v4float %v4float
66 %_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
67 %10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
68 %void = OpTypeVoid
69 %15 = OpTypeFunction %void
70 %float_0 = OpConstant %float 0
71 %v2float = OpTypeVector %float 2
72 %19 = OpConstantComposite %v2float %float_0 %float_0
73 %_ptr_Function_v2float = OpTypePointer Function %v2float
74 %23 = OpTypeFunction %v4float %_ptr_Function_v2float
75 %false = OpConstantFalse %bool
76 %_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
77 %int = OpTypeInt 32 1
78 %int_0 = OpConstant %int 0
79 %int_1 = OpConstant %int 1
80 %v2bool = OpTypeVector %bool 2
81 %v3float = OpTypeVector %float 3
82 %v3bool = OpTypeVector %bool 3
83 %v4bool = OpTypeVector %bool 4
84 %94 = OpConstantComposite %v3float %float_0 %float_0 %float_0
85 %103 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0
86 %_ptr_Function_v4float = OpTypePointer Function %v4float
87 %int_2 = OpConstant %int 2
88 %int_3 = OpConstant %int 3
89 %_entrypoint_v = OpFunction %void None %15
90 %16 = OpLabel
91 %20 = OpVariable %_ptr_Function_v2float Function
92 OpStore %20 %19
93 %22 = OpFunctionCall %v4float %main %20
94 OpStore %sk_FragColor %22
95 OpReturn
96 OpFunctionEnd
97 %main = OpFunction %v4float None %23
98 %24 = OpFunctionParameter %_ptr_Function_v2float
99 %25 = OpLabel
100 %109 = OpVariable %_ptr_Function_v4float Function
101 %28 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
102 %32 = OpLoad %v4float %28
103 %33 = OpCompositeExtract %float %32 0
104 %27 = OpExtInst %float %1 Tanh %33
105 %34 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
106 %36 = OpLoad %v4float %34
107 %37 = OpCompositeExtract %float %36 0
108 %38 = OpFOrdEqual %bool %27 %37
109 OpSelectionMerge %40 None
110 OpBranchConditional %38 %39 %40
111 %39 = OpLabel
112 %42 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
113 %43 = OpLoad %v4float %42
114 %44 = OpVectorShuffle %v2float %43 %43 0 1
115 %41 = OpExtInst %v2float %1 Tanh %44
116 %45 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
117 %46 = OpLoad %v4float %45
118 %47 = OpVectorShuffle %v2float %46 %46 0 1
119 %48 = OpFOrdEqual %v2bool %41 %47
120 %50 = OpAll %bool %48
121 OpBranch %40
122 %40 = OpLabel
123 %51 = OpPhi %bool %false %25 %50 %39
124 OpSelectionMerge %53 None
125 OpBranchConditional %51 %52 %53
126 %52 = OpLabel
127 %55 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
128 %56 = OpLoad %v4float %55
129 %57 = OpVectorShuffle %v3float %56 %56 0 1 2
130 %54 = OpExtInst %v3float %1 Tanh %57
131 %59 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
132 %60 = OpLoad %v4float %59
133 %61 = OpVectorShuffle %v3float %60 %60 0 1 2
134 %62 = OpFOrdEqual %v3bool %54 %61
135 %64 = OpAll %bool %62
136 OpBranch %53
137 %53 = OpLabel
138 %65 = OpPhi %bool %false %40 %64 %52
139 OpSelectionMerge %67 None
140 OpBranchConditional %65 %66 %67
141 %66 = OpLabel
142 %69 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
143 %70 = OpLoad %v4float %69
144 %68 = OpExtInst %v4float %1 Tanh %70
145 %71 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
146 %72 = OpLoad %v4float %71
147 %73 = OpFOrdEqual %v4bool %68 %72
148 %75 = OpAll %bool %73
149 OpBranch %67
150 %67 = OpLabel
151 %76 = OpPhi %bool %false %53 %75 %66
152 OpSelectionMerge %78 None
153 OpBranchConditional %76 %77 %78
154 %77 = OpLabel
155 %79 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
156 %80 = OpLoad %v4float %79
157 %81 = OpCompositeExtract %float %80 0
158 %82 = OpFOrdEqual %bool %float_0 %81
159 OpBranch %78
160 %78 = OpLabel
161 %83 = OpPhi %bool %false %67 %82 %77
162 OpSelectionMerge %85 None
163 OpBranchConditional %83 %84 %85
164 %84 = OpLabel
165 %86 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
166 %87 = OpLoad %v4float %86
167 %88 = OpVectorShuffle %v2float %87 %87 0 1
168 %89 = OpFOrdEqual %v2bool %19 %88
169 %90 = OpAll %bool %89
170 OpBranch %85
171 %85 = OpLabel
172 %91 = OpPhi %bool %false %78 %90 %84
173 OpSelectionMerge %93 None
174 OpBranchConditional %91 %92 %93
175 %92 = OpLabel
176 %95 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
177 %96 = OpLoad %v4float %95
178 %97 = OpVectorShuffle %v3float %96 %96 0 1 2
179 %98 = OpFOrdEqual %v3bool %94 %97
180 %99 = OpAll %bool %98
181 OpBranch %93
182 %93 = OpLabel
183 %100 = OpPhi %bool %false %85 %99 %92
184 OpSelectionMerge %102 None
185 OpBranchConditional %100 %101 %102
186 %101 = OpLabel
187 %104 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
188 %105 = OpLoad %v4float %104
189 %106 = OpFOrdEqual %v4bool %103 %105
190 %107 = OpAll %bool %106
191 OpBranch %102
192 %102 = OpLabel
193 %108 = OpPhi %bool %false %93 %107 %101
194 OpSelectionMerge %113 None
195 OpBranchConditional %108 %111 %112
196 %111 = OpLabel
197 %114 = OpAccessChain %_ptr_Uniform_v4float %10 %int_2
198 %116 = OpLoad %v4float %114
199 OpStore %109 %116
200 OpBranch %113
201 %112 = OpLabel
202 %117 = OpAccessChain %_ptr_Uniform_v4float %10 %int_3
203 %119 = OpLoad %v4float %117
204 OpStore %109 %119
205 OpBranch %113
206 %113 = OpLabel
207 %120 = OpLoad %v4float %109
208 OpReturnValue %120
209 OpFunctionEnd