blob: 16f154d66a2740c36b2896aaadc2948a8b3d417c [file] [log] [blame]
Antonio Maioranod6f6f002023-09-13 17:50:46 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 0
4; Bound: 38
5; Schema: 0
6 OpCapability Shader
7 OpMemoryModel Logical GLSL450
8 OpEntryPoint GLCompute %main "main"
9 OpExecutionMode %main LocalSize 1 1 1
10 OpName %main "main"
11 OpName %i "i"
12 OpName %j "j"
13 %void = OpTypeVoid
14 %1 = OpTypeFunction %void
15 %int = OpTypeInt 32 1
16 %6 = OpConstantNull %int
17%_ptr_Function_int = OpTypePointer Function %int
18 %int_2 = OpConstant %int 2
19 %bool = OpTypeBool
20 %main = OpFunction %void None %1
21 %4 = OpLabel
22 %i = OpVariable %_ptr_Function_int Function %6
23 %j = OpVariable %_ptr_Function_int Function %6
24 OpStore %i %6
25 OpBranch %9
26 %9 = OpLabel
27 OpLoopMerge %10 %11 None
28 OpBranch %12
29 %12 = OpLabel
30 %14 = OpLoad %int %i
31 %16 = OpSLessThan %bool %14 %int_2
32 %13 = OpLogicalNot %bool %16
33 OpSelectionMerge %18 None
34 OpBranchConditional %13 %19 %18
35 %19 = OpLabel
36 OpBranch %10
37 %18 = OpLabel
38 OpStore %j %6
39 OpBranch %21
40 %21 = OpLabel
41 OpLoopMerge %22 %23 None
42 OpBranch %24
43 %24 = OpLabel
44 %26 = OpLoad %int %j
45 %27 = OpSLessThan %bool %26 %int_2
46 %25 = OpLogicalNot %bool %27
47 OpSelectionMerge %28 None
48 OpBranchConditional %25 %29 %28
49 %29 = OpLabel
50 OpBranch %22
51 %28 = OpLabel
52 %31 = OpLoad %int %i
53 OpSelectionMerge %30 None
54 OpSwitch %31 %32 0 %33
55 %33 = OpLabel
56 OpBranch %23
57 %32 = OpLabel
58 OpBranch %30
59 %30 = OpLabel
60 OpBranch %23
61 %23 = OpLabel
62 %34 = OpLoad %int %j
63 %35 = OpIAdd %int %34 %int_2
64 OpStore %j %35
65 OpBranch %21
66 %22 = OpLabel
67 OpBranch %11
68 %11 = OpLabel
69 %36 = OpLoad %int %i
70 %37 = OpIAdd %int %36 %int_2
71 OpStore %i %37
72 OpBranch %9
73 %10 = OpLabel
74 OpReturn
75 OpFunctionEnd