blob: fa7500e2f63309908dac6e1ca673f05da921d481 [file]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 22
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
OpExecutionMode %unused_entry_point LocalSize 1 1 1
OpName %c "c"
OpName %a "a"
OpName %b "b"
OpName %unused_entry_point "unused_entry_point"
%void = OpTypeVoid
%3 = OpTypeFunction %void
%int = OpTypeInt 32 1
%_ptr_Function_int = OpTypePointer Function %int
%int_1 = OpConstant %int 1
%uint = OpTypeInt 32 0
%int_2 = OpConstant %int 2
%c = OpFunction %void None %3
%4 = OpLabel
%a = OpVariable %_ptr_Function_int Function
OpStore %a %int_1
%9 = OpLoad %int %a None
%11 = OpBitcast %uint %9
%12 = OpBitcast %uint %int_2
%14 = OpIAdd %uint %11 %12
%15 = OpBitcast %int %14
OpStore %a %15 None
OpReturn
OpFunctionEnd
%b = OpFunction %void None %3
%17 = OpLabel
%18 = OpFunctionCall %void %c
%19 = OpFunctionCall %void %c
OpReturn
OpFunctionEnd
%unused_entry_point = OpFunction %void None %3
%21 = OpLabel
OpReturn
OpFunctionEnd