| ; SPIR-V | |
| ; Version: 1.3 | |
| ; Generator: Google Tint Compiler; 1 | |
| ; Bound: 20 | |
| ; Schema: 0 | |
| OpCapability Shader | |
| OpMemoryModel Logical GLSL450 | |
| OpEntryPoint GLCompute %a "a" | |
| OpExecutionMode %a LocalSize 1 1 1 | |
| OpName %a "a" | |
| OpName %a_0 "a" | |
| %void = OpTypeVoid | |
| %3 = OpTypeFunction %void | |
| %int = OpTypeInt 32 1 | |
| %_ptr_Function_int = OpTypePointer Function %int | |
| %int_0 = OpConstant %int 0 | |
| %uint = OpTypeInt 32 0 | |
| %uint_2 = OpConstant %uint 2 | |
| %a = OpFunction %void None %3 | |
| %4 = OpLabel | |
| %a_0 = OpVariable %_ptr_Function_int Function | |
| OpStore %a_0 %int_0 | |
| %9 = OpLoad %int %a_0 None | |
| OpSelectionMerge %13 None | |
| OpSwitch %9 %10 0 %11 1 %12 | |
| %10 = OpLabel | |
| %14 = OpLoad %int %a_0 None | |
| %16 = OpBitcast %uint %14 | |
| %17 = OpIAdd %uint %16 %uint_2 | |
| %19 = OpBitcast %int %17 | |
| OpStore %a_0 %19 None | |
| OpBranch %13 | |
| %11 = OpLabel | |
| OpBranch %13 | |
| %12 = OpLabel | |
| OpReturn | |
| %13 = OpLabel | |
| OpReturn | |
| OpFunctionEnd |