blob: cc53917841e63642bab3f0301f79a4c837879162 [file] [log] [blame]
dan sinclair49d1a2d2022-06-16 12:01:27 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 0
4; Bound: 27
5; Schema: 0
6 OpCapability Shader
7 OpMemoryModel Logical GLSL450
8 OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
9 OpExecutionMode %unused_entry_point LocalSize 1 1 1
10 OpName %unused_entry_point "unused_entry_point"
11 OpName %f "f"
12 OpName %i "i"
13 %void = OpTypeVoid
14 %1 = OpTypeFunction %void
15 %int = OpTypeInt 32 1
16 %5 = OpTypeFunction %int
17%_ptr_Function_int = OpTypePointer Function %int
18 %11 = OpConstantNull %int
19 %int_4 = OpConstant %int 4
20 %bool = OpTypeBool
21 %int_1 = OpConstant %int 1
22%unused_entry_point = OpFunction %void None %1
23 %4 = OpLabel
24 OpReturn
25 OpFunctionEnd
26 %f = OpFunction %int None %5
27 %8 = OpLabel
28 %i = OpVariable %_ptr_Function_int Function %11
29 OpBranch %12
30 %12 = OpLabel
31 OpLoopMerge %13 %14 None
32 OpBranch %15
33 %15 = OpLabel
34 %17 = OpLoad %int %i
35 %19 = OpSLessThan %bool %17 %int_4
36 %16 = OpLogicalNot %bool %19
37 OpSelectionMerge %21 None
38 OpBranchConditional %16 %22 %21
39 %22 = OpLabel
40 OpBranch %13
41 %21 = OpLabel
42 %23 = OpLoad %int %i
43 %25 = OpIAdd %int %23 %int_1
44 OpStore %i %25
45 OpBranch %14
46 %14 = OpLabel
47 OpBranch %12
48 %13 = OpLabel
49 %26 = OpLoad %int %i
50 OpReturnValue %26
51 OpFunctionEnd