blob: 926fec56a3d344dc9b8596b5bde957ae9830ce6f [file]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 48
; 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 %x "x"
OpName %y "y"
OpName %z "z"
OpName %a "a"
OpName %b "b"
OpName %b_0 "b"
OpName %unused_entry_point "unused_entry_point"
%int = OpTypeInt 32 1
%6 = OpTypeFunction %int %int %int %int
%uint = OpTypeInt 32 0
%int_1 = OpConstant %int 1
%_ptr_Function_int = OpTypePointer Function %int
%int_2 = OpConstant %int 2
%void = OpTypeVoid
%33 = OpTypeFunction %void
%int_3 = OpConstant %int 3
%int_4 = OpConstant %int 4
%int_5 = OpConstant %int 5
%c = OpFunction %int None %6
%x = OpFunctionParameter %int
%y = OpFunctionParameter %int
%z = OpFunctionParameter %int
%7 = OpLabel
%a = OpVariable %_ptr_Function_int Function
%9 = OpBitcast %uint %int_1
%11 = OpBitcast %uint %x
%12 = OpIAdd %uint %9 %11
%13 = OpBitcast %int %12
%14 = OpBitcast %uint %13
%15 = OpBitcast %uint %y
%16 = OpIAdd %uint %14 %15
%17 = OpBitcast %int %16
%18 = OpBitcast %uint %17
%19 = OpBitcast %uint %z
%20 = OpIAdd %uint %18 %19
%21 = OpBitcast %int %20
OpStore %a %21
%24 = OpLoad %int %a None
%25 = OpBitcast %uint %24
%26 = OpBitcast %uint %int_2
%28 = OpIAdd %uint %25 %26
%29 = OpBitcast %int %28
OpStore %a %29 None
%30 = OpLoad %int %a None
OpReturnValue %30
OpFunctionEnd
%b = OpFunction %void None %33
%34 = OpLabel
%b_0 = OpVariable %_ptr_Function_int Function
%35 = OpFunctionCall %int %c %int_2 %int_3 %int_4
OpStore %b_0 %35
%39 = OpFunctionCall %int %c %int_3 %int_4 %int_5
%41 = OpLoad %int %b_0 None
%42 = OpBitcast %uint %41
%43 = OpBitcast %uint %39
%44 = OpIAdd %uint %42 %43
%45 = OpBitcast %int %44
OpStore %b_0 %45 None
OpReturn
OpFunctionEnd
%unused_entry_point = OpFunction %void None %33
%47 = OpLabel
OpReturn
OpFunctionEnd