blob: abbbadb84c2d566933231d5f1cea8c166a17667a [file] [log] [blame]
David Netod1a026e2021-07-30 16:03:06 +00001; Test: SpvParserCFGTest_EmitBody_Branch_LoopContinue_FromSwitch.spvasm
2; SPIR-V
3; Version: 1.0
4; Generator: Khronos SPIR-V Tools Assembler; 0
5; Bound: 1000
6; Schema: 0
7OpCapability Shader
8OpMemoryModel Logical Simple
9OpEntryPoint Fragment %100 "main"
10OpExecutionMode %100 OriginUpperLeft
11OpName %var "var"
12%void = OpTypeVoid
13%3 = OpTypeFunction %void
14%bool = OpTypeBool
15%5 = OpConstantNull %bool
16%true = OpConstantTrue %bool
17%false = OpConstantFalse %bool
18%uint = OpTypeInt 32 0
19%int = OpTypeInt 32 1
20%uint_42 = OpConstant %uint 42
21%int_42 = OpConstant %int 42
22%13 = OpTypeFunction %uint
23%uint_0 = OpConstant %uint 0
24%uint_1 = OpConstant %uint 1
25%uint_2 = OpConstant %uint 2
26%uint_3 = OpConstant %uint 3
27%uint_4 = OpConstant %uint 4
28%uint_5 = OpConstant %uint 5
29%uint_6 = OpConstant %uint 6
30%uint_7 = OpConstant %uint 7
31%uint_8 = OpConstant %uint 8
32%uint_10 = OpConstant %uint 10
33%uint_20 = OpConstant %uint 20
34%uint_30 = OpConstant %uint 30
35%uint_40 = OpConstant %uint 40
36%uint_50 = OpConstant %uint 50
37%uint_90 = OpConstant %uint 90
38%uint_99 = OpConstant %uint 99
39%_ptr_Private_uint = OpTypePointer Private %uint
40%var = OpVariable %_ptr_Private_uint Private
41%uint_999 = OpConstant %uint 999
42%100 = OpFunction %void None %3
43%10 = OpLabel
44OpStore %var %uint_1
45OpBranch %20
46%20 = OpLabel
47OpStore %var %uint_2
48OpLoopMerge %99 %80 None
49OpBranch %30
50%30 = OpLabel
51OpStore %var %uint_3
52OpSelectionMerge %79 None
53OpSwitch %uint_42 %79 40 %40
54%40 = OpLabel
55OpStore %var %uint_4
56OpBranch %80
57%79 = OpLabel
58OpStore %var %uint_5
59OpBranch %80
60%80 = OpLabel
61OpStore %var %uint_6
62OpBranch %20
63%99 = OpLabel
64OpStore %var %uint_7
65OpReturn
66OpFunctionEnd
67