blob: 51bf86ff5b515df9afc73409fc8aa18dd8135a40 [file] [log] [blame]
David Netod1a026e2021-07-30 16:03:06 +00001; Test: SpvParserCFGTest_FindIfSelectionInternalHeaders_TrueBranch_SwitchBreak_Ok.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
44OpSelectionMerge %99 None
45OpSwitch %uint_20 %99 20 %20
46%20 = OpLabel
47OpSelectionMerge %40 None
48OpBranchConditional %5 %99 %30
49%30 = OpLabel
50OpBranch %40
51%40 = OpLabel
52OpBranch %99
53%99 = OpLabel
54OpReturn
55OpFunctionEnd
56