xref: /aosp_15_r20/external/skia/tests/sksl/shared/EmptyBlocksES3.asm.frag (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1               OpCapability Shader
2          %1 = OpExtInstImport "GLSL.std.450"
3               OpMemoryModel Logical GLSL450
4               OpEntryPoint Fragment %_entrypoint_v "_entrypoint" %sk_FragColor
5               OpExecutionMode %_entrypoint_v OriginUpperLeft
6               OpName %sk_FragColor "sk_FragColor"
7               OpName %_UniformBuffer "_UniformBuffer"
8               OpMemberName %_UniformBuffer 0 "colorWhite"
9               OpName %_entrypoint_v "_entrypoint_v"
10               OpName %main "main"
11               OpName %color "color"
12               OpDecorate %sk_FragColor RelaxedPrecision
13               OpDecorate %sk_FragColor Location 0
14               OpDecorate %sk_FragColor Index 0
15               OpMemberDecorate %_UniformBuffer 0 Offset 0
16               OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision
17               OpDecorate %_UniformBuffer Block
18               OpDecorate %7 Binding 0
19               OpDecorate %7 DescriptorSet 0
20               OpDecorate %color RelaxedPrecision
21               OpDecorate %30 RelaxedPrecision
22               OpDecorate %31 RelaxedPrecision
23               OpDecorate %41 RelaxedPrecision
24               OpDecorate %42 RelaxedPrecision
25               OpDecorate %56 RelaxedPrecision
26               OpDecorate %57 RelaxedPrecision
27               OpDecorate %65 RelaxedPrecision
28               OpDecorate %66 RelaxedPrecision
29               OpDecorate %68 RelaxedPrecision
30      %float = OpTypeFloat 32
31    %v4float = OpTypeVector %float 4
32%_ptr_Output_v4float = OpTypePointer Output %v4float
33%sk_FragColor = OpVariable %_ptr_Output_v4float Output
34%_UniformBuffer = OpTypeStruct %v4float
35%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
36          %7 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
37       %void = OpTypeVoid
38         %12 = OpTypeFunction %void
39    %float_0 = OpConstant %float 0
40    %v2float = OpTypeVector %float 2
41         %16 = OpConstantComposite %v2float %float_0 %float_0
42%_ptr_Function_v2float = OpTypePointer Function %v2float
43         %20 = OpTypeFunction %v4float %_ptr_Function_v2float
44%_ptr_Function_v4float = OpTypePointer Function %v4float
45         %25 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0
46%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
47        %int = OpTypeInt 32 1
48      %int_0 = OpConstant %int 0
49    %float_1 = OpConstant %float 1
50       %bool = OpTypeBool
51%_ptr_Function_float = OpTypePointer Function %float
52      %int_1 = OpConstant %int 1
53    %float_2 = OpConstant %float 2
54      %int_3 = OpConstant %int 3
55%_entrypoint_v = OpFunction %void None %12
56         %13 = OpLabel
57         %17 = OpVariable %_ptr_Function_v2float Function
58               OpStore %17 %16
59         %19 = OpFunctionCall %v4float %main %17
60               OpStore %sk_FragColor %19
61               OpReturn
62               OpFunctionEnd
63       %main = OpFunction %v4float None %20
64         %21 = OpFunctionParameter %_ptr_Function_v2float
65         %22 = OpLabel
66      %color = OpVariable %_ptr_Function_v4float Function
67               OpStore %color %25
68         %26 = OpAccessChain %_ptr_Uniform_v4float %7 %int_0
69         %30 = OpLoad %v4float %26
70         %31 = OpCompositeExtract %float %30 0
71         %33 = OpFOrdEqual %bool %31 %float_1
72               OpSelectionMerge %36 None
73               OpBranchConditional %33 %35 %36
74         %35 = OpLabel
75         %37 = OpAccessChain %_ptr_Function_float %color %int_1
76               OpStore %37 %float_1
77               OpBranch %36
78         %36 = OpLabel
79         %40 = OpAccessChain %_ptr_Uniform_v4float %7 %int_0
80         %41 = OpLoad %v4float %40
81         %42 = OpCompositeExtract %float %41 0
82         %44 = OpFOrdEqual %bool %42 %float_2
83               OpSelectionMerge %47 None
84               OpBranchConditional %44 %45 %46
85         %45 = OpLabel
86               OpBranch %47
87         %46 = OpLabel
88         %48 = OpAccessChain %_ptr_Function_float %color %int_3
89               OpStore %48 %float_1
90               OpBranch %47
91         %47 = OpLabel
92               OpBranch %50
93         %50 = OpLabel
94               OpLoopMerge %54 %53 None
95               OpBranch %51
96         %51 = OpLabel
97         %55 = OpAccessChain %_ptr_Uniform_v4float %7 %int_0
98         %56 = OpLoad %v4float %55
99         %57 = OpCompositeExtract %float %56 0
100         %58 = OpFOrdEqual %bool %57 %float_2
101               OpBranchConditional %58 %52 %54
102         %52 = OpLabel
103               OpBranch %53
104         %53 = OpLabel
105               OpBranch %50
106         %54 = OpLabel
107               OpBranch %59
108         %59 = OpLabel
109               OpLoopMerge %63 %62 None
110               OpBranch %60
111         %60 = OpLabel
112               OpBranch %61
113         %61 = OpLabel
114               OpBranch %62
115         %62 = OpLabel
116         %64 = OpAccessChain %_ptr_Uniform_v4float %7 %int_0
117         %65 = OpLoad %v4float %64
118         %66 = OpCompositeExtract %float %65 0
119         %67 = OpFOrdEqual %bool %66 %float_2
120               OpBranchConditional %67 %59 %63
121         %63 = OpLabel
122         %68 = OpLoad %v4float %color
123               OpReturnValue %68
124               OpFunctionEnd
125