Debian Codegraph @

third_party/spirv-cross/shaders-no-opt/asm/frag/for-loop-inverted-test.asm.frag

raw
1 OpCapability Shader
2 %1 = OpExtInstImport "GLSL.std.450"
3 OpMemoryModel Logical GLSL450
4 OpEntryPoint Fragment %main "main"
5 OpExecutionMode %main OriginUpperLeft
6 OpSource GLSL 450
7 OpName %main "main"
8 %void = OpTypeVoid
9 %3 = OpTypeFunction %void
10 %int = OpTypeInt 32 1
11 %int_0 = OpConstant %int 0
12 %int_16 = OpConstant %int 16
13 %bool = OpTypeBool
14 %int_1 = OpConstant %int 1
15 %main = OpFunction %void None %3
16 %5 = OpLabel
17 OpBranch %8
18 %8 = OpLabel
19 %10 = OpPhi %int %12 %7 %int_0 %5
20 OpLoopMerge %6 %7 None
21 OpBranch %11
22 %11 = OpLabel
23 %16 = OpIEqual %bool %10 %int_16
24 OpBranchConditional %16 %6 %19
25 %19 = OpLabel
26 OpBranch %17
27 %17 = OpLabel
28 %21 = OpIAdd %int %10 %int_1
29 OpBranch %7
30 %7 = OpLabel
31 %12 = OpPhi %int %21 %17
32 OpBranch %8
33 %6 = OpLabel
34 OpReturn
35 OpFunctionEnd