Update rive-cpp to 2.0 version
[platform/core/uifw/rive-tizen.git] / submodule / skia / tests / sksl / intrinsics / Any.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 "inputH4"
10 OpMemberName %_UniformBuffer 1 "expectedH4"
11 OpMemberName %_UniformBuffer 2 "colorGreen"
12 OpMemberName %_UniformBuffer 3 "colorRed"
13 OpName %_entrypoint_v "_entrypoint_v"
14 OpName %main "main"
15 OpName %inputVal "inputVal"
16 OpName %expected "expected"
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 %33 RelaxedPrecision
33 OpDecorate %34 RelaxedPrecision
34 OpDecorate %36 RelaxedPrecision
35 OpDecorate %38 RelaxedPrecision
36 OpDecorate %40 RelaxedPrecision
37 OpDecorate %46 RelaxedPrecision
38 OpDecorate %47 RelaxedPrecision
39 OpDecorate %49 RelaxedPrecision
40 OpDecorate %51 RelaxedPrecision
41 OpDecorate %53 RelaxedPrecision
42 OpDecorate %95 RelaxedPrecision
43 OpDecorate %98 RelaxedPrecision
44 OpDecorate %99 RelaxedPrecision
45 %float = OpTypeFloat 32
46 %v4float = OpTypeVector %float 4
47 %_ptr_Output_v4float = OpTypePointer Output %v4float
48 %sk_FragColor = OpVariable %_ptr_Output_v4float Output
49 %bool = OpTypeBool
50 %_ptr_Input_bool = OpTypePointer Input %bool
51 %sk_Clockwise = OpVariable %_ptr_Input_bool Input
52 %_UniformBuffer = OpTypeStruct %v4float %v4float %v4float %v4float
53 %_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
54 %10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
55 %void = OpTypeVoid
56 %15 = OpTypeFunction %void
57 %float_0 = OpConstant %float 0
58 %v2float = OpTypeVector %float 2
59 %19 = OpConstantComposite %v2float %float_0 %float_0
60 %_ptr_Function_v2float = OpTypePointer Function %v2float
61 %23 = OpTypeFunction %v4float %_ptr_Function_v2float
62 %v4bool = OpTypeVector %bool 4
63 %_ptr_Function_v4bool = OpTypePointer Function %v4bool
64 %_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
65 %int = OpTypeInt 32 1
66 %int_0 = OpConstant %int 0
67 %int_1 = OpConstant %int 1
68 %false = OpConstantFalse %bool
69 %v2bool = OpTypeVector %bool 2
70 %v3bool = OpTypeVector %bool 3
71 %_ptr_Function_v4float = OpTypePointer Function %v4float
72 %int_2 = OpConstant %int 2
73 %int_3 = OpConstant %int 3
74 %_entrypoint_v = OpFunction %void None %15
75 %16 = OpLabel
76 %20 = OpVariable %_ptr_Function_v2float Function
77 OpStore %20 %19
78 %22 = OpFunctionCall %v4float %main %20
79 OpStore %sk_FragColor %22
80 OpReturn
81 OpFunctionEnd
82 %main = OpFunction %v4float None %23
83 %24 = OpFunctionParameter %_ptr_Function_v2float
84 %25 = OpLabel
85 %inputVal = OpVariable %_ptr_Function_v4bool Function
86 %expected = OpVariable %_ptr_Function_v4bool Function
87 %88 = OpVariable %_ptr_Function_v4float Function
88 %29 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
89 %33 = OpLoad %v4float %29
90 %34 = OpCompositeExtract %float %33 0
91 %35 = OpFUnordNotEqual %bool %34 %float_0
92 %36 = OpCompositeExtract %float %33 1
93 %37 = OpFUnordNotEqual %bool %36 %float_0
94 %38 = OpCompositeExtract %float %33 2
95 %39 = OpFUnordNotEqual %bool %38 %float_0
96 %40 = OpCompositeExtract %float %33 3
97 %41 = OpFUnordNotEqual %bool %40 %float_0
98 %42 = OpCompositeConstruct %v4bool %35 %37 %39 %41
99 OpStore %inputVal %42
100 %44 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
101 %46 = OpLoad %v4float %44
102 %47 = OpCompositeExtract %float %46 0
103 %48 = OpFUnordNotEqual %bool %47 %float_0
104 %49 = OpCompositeExtract %float %46 1
105 %50 = OpFUnordNotEqual %bool %49 %float_0
106 %51 = OpCompositeExtract %float %46 2
107 %52 = OpFUnordNotEqual %bool %51 %float_0
108 %53 = OpCompositeExtract %float %46 3
109 %54 = OpFUnordNotEqual %bool %53 %float_0
110 %55 = OpCompositeConstruct %v4bool %48 %50 %52 %54
111 OpStore %expected %55
112 %58 = OpVectorShuffle %v2bool %42 %42 0 1
113 %57 = OpAny %bool %58
114 %60 = OpCompositeExtract %bool %55 0
115 %61 = OpLogicalEqual %bool %57 %60
116 OpSelectionMerge %63 None
117 OpBranchConditional %61 %62 %63
118 %62 = OpLabel
119 %65 = OpVectorShuffle %v3bool %42 %42 0 1 2
120 %64 = OpAny %bool %65
121 %67 = OpCompositeExtract %bool %55 1
122 %68 = OpLogicalEqual %bool %64 %67
123 OpBranch %63
124 %63 = OpLabel
125 %69 = OpPhi %bool %false %25 %68 %62
126 OpSelectionMerge %71 None
127 OpBranchConditional %69 %70 %71
128 %70 = OpLabel
129 %72 = OpAny %bool %42
130 %73 = OpCompositeExtract %bool %55 2
131 %74 = OpLogicalEqual %bool %72 %73
132 OpBranch %71
133 %71 = OpLabel
134 %75 = OpPhi %bool %false %63 %74 %70
135 OpSelectionMerge %77 None
136 OpBranchConditional %75 %76 %77
137 %76 = OpLabel
138 %78 = OpLogicalEqual %bool %false %60
139 OpBranch %77
140 %77 = OpLabel
141 %79 = OpPhi %bool %false %71 %78 %76
142 OpSelectionMerge %81 None
143 OpBranchConditional %79 %80 %81
144 %80 = OpLabel
145 %82 = OpCompositeExtract %bool %55 1
146 OpBranch %81
147 %81 = OpLabel
148 %83 = OpPhi %bool %false %77 %82 %80
149 OpSelectionMerge %85 None
150 OpBranchConditional %83 %84 %85
151 %84 = OpLabel
152 %86 = OpCompositeExtract %bool %55 2
153 OpBranch %85
154 %85 = OpLabel
155 %87 = OpPhi %bool %false %81 %86 %84
156 OpSelectionMerge %92 None
157 OpBranchConditional %87 %90 %91
158 %90 = OpLabel
159 %93 = OpAccessChain %_ptr_Uniform_v4float %10 %int_2
160 %95 = OpLoad %v4float %93
161 OpStore %88 %95
162 OpBranch %92
163 %91 = OpLabel
164 %96 = OpAccessChain %_ptr_Uniform_v4float %10 %int_3
165 %98 = OpLoad %v4float %96
166 OpStore %88 %98
167 OpBranch %92
168 %92 = OpLabel
169 %99 = OpLoad %v4float %88
170 OpReturnValue %99
171 OpFunctionEnd