Debian Codegraph @

third_party/spirv-cross/shaders-no-opt/asm/frag/loop-merge-to-continue.asm.invalid.frag

raw
1 ; SPIR-V
2 ; Version: 1.0
3 ; Generator: Khronos Glslang Reference Front End; 3
4 ; Bound: 51
5 ; Schema: 0
6 OpCapability Shader
7 %1 = OpExtInstImport "GLSL.std.450"
8 OpMemoryModel Logical GLSL450
9 OpEntryPoint Fragment %main "main" %FragColor %v0
10 OpExecutionMode %main OriginUpperLeft
11 OpSource GLSL 450
12 OpName %main "main"
13 OpName %FragColor "FragColor"
14 OpName %i "i"
15 OpName %j "j"
16 OpName %v0 "v0"
17 OpDecorate %FragColor Location 0
18 OpDecorate %v0 Location 0
19 %void = OpTypeVoid
20 %3 = OpTypeFunction %void
21 %float = OpTypeFloat 32
22 %v4float = OpTypeVector %float 4
23 %_ptr_Output_v4float = OpTypePointer Output %v4float
24 %FragColor = OpVariable %_ptr_Output_v4float Output
25 %float_1 = OpConstant %float 1
26 %11 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
27 %int = OpTypeInt 32 1
28 %_ptr_Function_int = OpTypePointer Function %int
29 %int_0 = OpConstant %int 0
30 %int_4 = OpConstant %int 4
31 %bool = OpTypeBool
32 %_ptr_Input_v4float = OpTypePointer Input %v4float
33 %v0 = OpVariable %_ptr_Input_v4float Input
34 %int_3 = OpConstant %int 3
35 %_ptr_Input_float = OpTypePointer Input %float
36 %int_1 = OpConstant %int 1
37 %main = OpFunction %void None %3
38 %5 = OpLabel
39 %i = OpVariable %_ptr_Function_int Function
40 %j = OpVariable %_ptr_Function_int Function
41 OpStore %FragColor %11
42 OpStore %i %int_0
43 OpBranch %16
44 %16 = OpLabel
45 OpLoopMerge %18 %19 None
46 OpBranch %20
47 %20 = OpLabel
48 %21 = OpLoad %int %i
49 %24 = OpSLessThan %bool %21 %int_4
50 OpBranchConditional %24 %17 %18
51 %17 = OpLabel
52 OpStore %j %int_0
53 OpBranch %26
54 %26 = OpLabel
55 OpLoopMerge %19 %29 None
56 OpBranch %30
57 %30 = OpLabel
58 %31 = OpLoad %int %j
59 %32 = OpSLessThan %bool %31 %int_4
60 OpBranchConditional %32 %27 %19
61 %27 = OpLabel
62 %35 = OpLoad %int %i
63 %36 = OpLoad %int %j
64 %37 = OpIAdd %int %35 %36
65 %39 = OpBitwiseAnd %int %37 %int_3
66 %41 = OpAccessChain %_ptr_Input_float %v0 %39
67 %42 = OpLoad %float %41
68 %43 = OpLoad %v4float %FragColor
69 %44 = OpCompositeConstruct %v4float %42 %42 %42 %42
70 %45 = OpFAdd %v4float %43 %44
71 OpStore %FragColor %45
72 OpBranch %29
73 %29 = OpLabel
74 %46 = OpLoad %int %j
75 %48 = OpIAdd %int %46 %int_1
76 OpStore %j %48
77 OpBranch %26
78 %19 = OpLabel
79 %49 = OpLoad %int %i
80 %50 = OpIAdd %int %49 %int_1
81 OpStore %i %50
82 OpBranch %16
83 %18 = OpLabel
84 OpReturn
85 OpFunctionEnd