Files
wgpu/tests/out/spv/break-if.spvasm
T

85 lines
1.7 KiB
Plaintext

; SPIR-V
; Version: 1.1
; Generator: rspirv
; Bound: 47
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %45 "main"
OpExecutionMode %45 LocalSize 1 1 1
%2 = OpTypeVoid
%3 = OpTypeBool
%6 = OpTypeFunction %2
%7 = OpConstantTrue %3
%14 = OpTypePointer Function %3
%15 = OpConstantNull %3
%20 = OpTypeFunction %2 %3
%5 = OpFunction %2 None %6
%4 = OpLabel
OpBranch %8
%8 = OpLabel
OpBranch %9
%9 = OpLabel
OpLoopMerge %10 %12 None
OpBranch %11
%11 = OpLabel
OpBranch %12
%12 = OpLabel
OpBranchConditional %7 %10 %9
%10 = OpLabel
OpReturn
OpFunctionEnd
%19 = OpFunction %2 None %20
%18 = OpFunctionParameter %3
%17 = OpLabel
%13 = OpVariable %14 Function %15
%16 = OpVariable %14 Function %15
OpBranch %21
%21 = OpLabel
OpBranch %22
%22 = OpLabel
OpLoopMerge %23 %25 None
OpBranch %24
%24 = OpLabel
OpBranch %25
%25 = OpLabel
OpStore %13 %18
%26 = OpLoad %3 %13
%27 = OpLogicalNotEqual %3 %18 %26
OpStore %16 %27
%28 = OpLoad %3 %16
%29 = OpLogicalEqual %3 %18 %28
OpBranchConditional %29 %23 %22
%23 = OpLabel
OpReturn
OpFunctionEnd
%34 = OpFunction %2 None %20
%33 = OpFunctionParameter %3
%32 = OpLabel
%30 = OpVariable %14 Function %15
%31 = OpVariable %14 Function %15
OpBranch %35
%35 = OpLabel
OpBranch %36
%36 = OpLabel
OpLoopMerge %37 %39 None
OpBranch %38
%38 = OpLabel
OpStore %30 %33
%40 = OpLoad %3 %30
%41 = OpLogicalNotEqual %3 %33 %40
OpStore %31 %41
OpBranch %39
%39 = OpLabel
%42 = OpLoad %3 %31
%43 = OpLogicalEqual %3 %33 %42
OpBranchConditional %43 %37 %36
%37 = OpLabel
OpReturn
OpFunctionEnd
%45 = OpFunction %2 None %6
%44 = OpLabel
OpBranch %46
%46 = OpLabel
OpReturn
OpFunctionEnd