Files
wgpu/tests/out/spv/functions.spvasm
T

94 lines
2.5 KiB
Plaintext

; SPIR-V
; Version: 1.1
; Generator: rspirv
; Bound: 78
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %73 "main"
OpExecutionMode %73 LocalSize 1 1 1
%2 = OpTypeVoid
%4 = OpTypeFloat 32
%3 = OpTypeVector %4 2
%5 = OpTypeInt 32 1
%6 = OpTypeVector %5 2
%8 = OpTypeInt 32 0
%7 = OpTypeVector %8 3
%9 = OpTypeVector %5 4
%12 = OpTypeFunction %3
%13 = OpConstant %4 2.0
%14 = OpConstant %4 0.5
%22 = OpTypeFunction %5
%23 = OpConstant %5 1
%24 = OpConstant %8 1
%25 = OpConstant %5 4
%26 = OpConstant %5 2
%31 = OpConstantNull %5
%42 = OpConstantNull %8
%74 = OpTypeFunction %2
%11 = OpFunction %3 None %12
%10 = OpLabel
OpBranch %15
%15 = OpLabel
%16 = OpCompositeConstruct %3 %13 %13
%17 = OpCompositeConstruct %3 %14 %14
%18 = OpCompositeConstruct %3 %14 %14
%19 = OpExtInst %3 %1 Fma %16 %17 %18
OpReturnValue %19
OpFunctionEnd
%21 = OpFunction %5 None %22
%20 = OpLabel
OpBranch %27
%27 = OpLabel
%28 = OpCompositeConstruct %6 %23 %23
%29 = OpCompositeConstruct %6 %23 %23
%32 = OpCompositeExtract %5 %28 0
%33 = OpCompositeExtract %5 %29 0
%34 = OpIMul %5 %32 %33
%35 = OpIAdd %5 %31 %34
%36 = OpCompositeExtract %5 %28 1
%37 = OpCompositeExtract %5 %29 1
%38 = OpIMul %5 %36 %37
%30 = OpIAdd %5 %35 %38
%39 = OpCompositeConstruct %7 %24 %24 %24
%40 = OpCompositeConstruct %7 %24 %24 %24
%43 = OpCompositeExtract %8 %39 0
%44 = OpCompositeExtract %8 %40 0
%45 = OpIMul %8 %43 %44
%46 = OpIAdd %8 %42 %45
%47 = OpCompositeExtract %8 %39 1
%48 = OpCompositeExtract %8 %40 1
%49 = OpIMul %8 %47 %48
%50 = OpIAdd %8 %46 %49
%51 = OpCompositeExtract %8 %39 2
%52 = OpCompositeExtract %8 %40 2
%53 = OpIMul %8 %51 %52
%41 = OpIAdd %8 %50 %53
%54 = OpCompositeConstruct %9 %25 %25 %25 %25
%55 = OpCompositeConstruct %9 %26 %26 %26 %26
%57 = OpCompositeExtract %5 %54 0
%58 = OpCompositeExtract %5 %55 0
%59 = OpIMul %5 %57 %58
%60 = OpIAdd %5 %31 %59
%61 = OpCompositeExtract %5 %54 1
%62 = OpCompositeExtract %5 %55 1
%63 = OpIMul %5 %61 %62
%64 = OpIAdd %5 %60 %63
%65 = OpCompositeExtract %5 %54 2
%66 = OpCompositeExtract %5 %55 2
%67 = OpIMul %5 %65 %66
%68 = OpIAdd %5 %64 %67
%69 = OpCompositeExtract %5 %54 3
%70 = OpCompositeExtract %5 %55 3
%71 = OpIMul %5 %69 %70
%56 = OpIAdd %5 %68 %71
OpReturnValue %56
OpFunctionEnd
%73 = OpFunction %2 None %74
%72 = OpLabel
OpBranch %75
%75 = OpLabel
%76 = OpFunctionCall %3 %11
%77 = OpFunctionCall %5 %21
OpReturn
OpFunctionEnd