xref: /aosp_15_r20/external/skia/tests/sksl/shared/DeadDoWhileLoop.asm.frag (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1               OpCapability Shader
2          %1 = OpExtInstImport "GLSL.std.450"
3               OpMemoryModel Logical GLSL450
4               OpEntryPoint Fragment %main "main" %sk_FragColor
5               OpExecutionMode %main OriginUpperLeft
6               OpName %sk_FragColor "sk_FragColor"
7               OpName %main "main"
8               OpDecorate %sk_FragColor RelaxedPrecision
9               OpDecorate %sk_FragColor Location 0
10               OpDecorate %sk_FragColor Index 0
11      %float = OpTypeFloat 32
12    %v4float = OpTypeVector %float 4
13%_ptr_Output_v4float = OpTypePointer Output %v4float
14%sk_FragColor = OpVariable %_ptr_Output_v4float Output
15       %void = OpTypeVoid
16          %8 = OpTypeFunction %void
17    %float_1 = OpConstant %float 1
18         %16 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
19       %bool = OpTypeBool
20      %false = OpConstantFalse %bool
21       %main = OpFunction %void None %8
22          %9 = OpLabel
23               OpBranch %10
24         %10 = OpLabel
25               OpLoopMerge %14 %13 None
26               OpBranch %11
27         %11 = OpLabel
28               OpStore %sk_FragColor %16
29               OpBranch %12
30         %12 = OpLabel
31               OpBranch %13
32         %13 = OpLabel
33               OpBranchConditional %false %10 %14
34         %14 = OpLabel
35               OpReturn
36               OpFunctionEnd
37