| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 25 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %main "main" |
| OpExecutionMode %main LocalSize 1 1 1 |
| OpName %f "f" |
| OpName %a "a" |
| OpName %b "b" |
| OpName %c "c" |
| OpName %main "main" |
| %int = OpTypeInt 32 1 |
| %6 = OpTypeFunction %int %int %int %int |
| %uint = OpTypeInt 32 0 |
| %void = OpTypeVoid |
| %19 = OpTypeFunction %void |
| %int_1 = OpConstant %int 1 |
| %int_2 = OpConstant %int 2 |
| %int_3 = OpConstant %int 3 |
| %f = OpFunction %int None %6 |
| %a = OpFunctionParameter %int |
| %b = OpFunctionParameter %int |
| %c = OpFunctionParameter %int |
| %7 = OpLabel |
| %9 = OpBitcast %uint %a |
| %10 = OpBitcast %uint %b |
| %11 = OpIMul %uint %9 %10 |
| %12 = OpBitcast %int %11 |
| %13 = OpBitcast %uint %12 |
| %14 = OpBitcast %uint %c |
| %15 = OpIAdd %uint %13 %14 |
| %16 = OpBitcast %int %15 |
| OpReturnValue %16 |
| OpFunctionEnd |
| %main = OpFunction %void None %19 |
| %20 = OpLabel |
| %21 = OpFunctionCall %int %f %int_1 %int_2 %int_3 |
| OpReturn |
| OpFunctionEnd |