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