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