blob: 911fd7ac1b03086e3462c3042faff080ee98b357 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 27
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %a "a"
OpExecutionMode %a LocalSize 1 1 1
OpName %a "a"
OpName %a_0 "a"
OpName %b "b"
OpName %c "c"
%void = OpTypeVoid
%3 = OpTypeFunction %void
%int = OpTypeInt 32 1
%_ptr_Function_int = OpTypePointer Function %int
%int_0 = OpConstant %int 0
%uint = OpTypeInt 32 0
%_ptr_Function_uint = OpTypePointer Function %uint
%uint_3 = OpConstant %uint 3
%uint_123 = OpConstant %uint 123
%a = OpFunction %void None %3
%4 = OpLabel
%a_0 = OpVariable %_ptr_Function_int Function
%b = OpVariable %_ptr_Function_uint Function
%c = OpVariable %_ptr_Function_uint Function
OpStore %a_0 %int_0
%9 = OpLoad %int %a_0 None
OpSelectionMerge %12 None
OpSwitch %9 %10 0 %11 2 %11 4 %11 1 %10
%11 = OpLabel
OpStore %b %uint_3
%17 = OpLoad %uint %b None
OpSelectionMerge %20 None
OpSwitch %17 %18 0 %19 1 %18 2 %18 3 %18
%19 = OpLabel
OpBranch %20
%18 = OpLabel
OpStore %c %uint_123
%23 = OpLoad %uint %c None
OpSelectionMerge %26 None
OpSwitch %23 %24 0 %25
%24 = OpLabel
OpReturn
%25 = OpLabel
OpBranch %26
%26 = OpLabel
OpReturn
%20 = OpLabel
OpBranch %12
%10 = OpLabel
OpReturn
%12 = OpLabel
OpReturn
OpFunctionEnd