blob: 1a4bc100080af7220d6012d08d133e67ddf18bbb [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 31
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
OpExecutionMode %unused_entry_point LocalSize 1 1 1
OpName %global "global"
OpName %unused_entry_point "unused_entry_point"
OpName %foo "foo"
OpName %x "x"
OpName %baz "baz"
OpName %x_0 "x"
OpName %bar "bar"
OpName %x_1 "x"
OpName %main "main"
%int = OpTypeInt 32 1
%_ptr_Private_int = OpTypePointer Private %int
%4 = OpConstantNull %int
%global = OpVariable %_ptr_Private_int Private %4
%void = OpTypeVoid
%5 = OpTypeFunction %void
%float = OpTypeFloat 32
%9 = OpTypeFunction %void %float
%17 = OpTypeFunction %int %int
%int_42 = OpConstant %int 42
%unused_entry_point = OpFunction %void None %5
%8 = OpLabel
OpReturn
OpFunctionEnd
%foo = OpFunction %void None %9
%x = OpFunctionParameter %float
%13 = OpLabel
%15 = OpConvertFToS %int %x
OpSelectionMerge %14 None
OpSwitch %15 %16
%16 = OpLabel
OpBranch %14
%14 = OpLabel
OpReturn
OpFunctionEnd
%baz = OpFunction %int None %17
%x_0 = OpFunctionParameter %int
%20 = OpLabel
OpStore %global %int_42
OpReturnValue %x_0
OpFunctionEnd
%bar = OpFunction %void None %9
%x_1 = OpFunctionParameter %float
%24 = OpLabel
%27 = OpConvertFToS %int %x_1
%26 = OpFunctionCall %int %baz %27
OpSelectionMerge %25 None
OpSwitch %26 %28
%28 = OpLabel
OpBranch %25
%25 = OpLabel
OpReturn
OpFunctionEnd
%main = OpFunction %void None %5
%30 = OpLabel
OpReturn
OpFunctionEnd