glslang-zig/Test/baseResults/spv.debuginfo.implicit_br.glsl.frag.out
Sajjad Mirza f69d2768e5
Use line and column from node on DebugLexicalBlock.
* Fix bug in TestFixture.h, debug info gets enabled when nonsemantic debug info is requested.
2024-10-04 14:11:27 -04:00

335 lines
18 KiB
Text

spv.debuginfo.implicit_br.glsl.frag
// Module Version 10000
// Generated by (magic number): 8000b
// Id's are bound by 204
Capability Shader
Extension "SPV_KHR_non_semantic_info"
1: ExtInstImport "NonSemantic.Shader.DebugInfo.100"
3: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 14 "main" 196
ExecutionMode 14 OriginUpperLeft
2: String "spv.debuginfo.implicit_br.glsl.frag"
8: String "uint"
18: String "test_if"
21: String "// OpModuleProcessed auto-map-locations
// OpModuleProcessed auto-map-bindings
// OpModuleProcessed client vulkan100
// OpModuleProcessed target-env vulkan1.0
// OpModuleProcessed keep-uncalled
// OpModuleProcessed entry-point main
#line 1
#version 460
out int outx;
int counter = 0;
void test_if() {
if (false) {
counter += 1;
}
}
void test_ifelse() {
if (false) {
counter += 1;
}
else {
counter += 2;
}
}
void test_if_compound() {
if (false) {
if (false) {
counter += 1;
}
}
}
void test_if_compound2() {
if (false) {
if (false) {
counter += 1;
}
counter += 2;
}
}
void test_switch() {
switch (0) {
case 0:
counter += 1;
// implict fallthrough
case 1:
counter += 2;
break;
default:
counter += 3;
// implicit break
}
}
void main() {
test_if();
test_ifelse();
test_if_compound();
test_if_compound2();
test_switch();
outx = counter;
}"
28: String "test_ifelse"
33: String "test_if_compound"
38: String "test_if_compound2"
43: String "test_switch"
46: String "main"
50: String "int"
56: String "counter"
65: String "bool"
198: String "outx"
Name 14 "main"
Name 16 "test_if("
Name 26 "test_ifelse("
Name 31 "test_if_compound("
Name 36 "test_if_compound2("
Name 41 "test_switch("
Name 54 "counter"
Name 196 "outx"
Decorate 196(outx) Location 0
4: TypeVoid
5: TypeFunction 4
7: TypeInt 32 0
10: 7(int) Constant 32
11: 7(int) Constant 6
12: 7(int) Constant 0
9: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 8 10 11 12
13: 7(int) Constant 3
6: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4
20: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 2 21
23: 7(int) Constant 1
24: 7(int) Constant 4
25: 7(int) Constant 2
22: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 23 24 20 25
19: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 18 6 20 11 12 22 18 13 11
30: 7(int) Constant 12
29: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 28 6 20 30 12 22 28 13 30
35: 7(int) Constant 21
34: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 33 6 20 35 12 22 33 13 35
40: 7(int) Constant 29
39: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 38 6 20 40 12 22 38 13 40
45: 7(int) Constant 39
44: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 43 6 20 45 12 22 43 13 45
48: 7(int) Constant 53
47: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 46 6 20 48 12 22 46 13 48
49: TypeInt 32 1
51: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 50 10 24 12
52: TypePointer Private 49(int)
53: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 51 11 12
54(counter): 52(ptr) Variable Private
57: 7(int) Constant 8
55: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 56 51 20 24 12 22 56 54(counter) 57
58: 49(int) Constant 0
64: TypeBool
66: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 65 10 25 12
67: 64(bool) ConstantFalse
71: 7(int) Constant 17
70: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 20 57 71 19
72: 49(int) Constant 1
79: 7(int) Constant 10
86: 7(int) Constant 14
85: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 20 86 71 29
92: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 20 71 71 29
93: 49(int) Constant 2
100: 7(int) Constant 19
107: 7(int) Constant 23
108: 7(int) Constant 9
106: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 20 107 108 34
114: 7(int) Constant 24
113: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 20 114 35 106
121: 7(int) Constant 27
128: 7(int) Constant 31
127: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 20 128 108 39
133: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 20 10 35 127
141: 7(int) Constant 35
145: 7(int) Constant 37
156: 7(int) Constant 42
161: 7(int) Constant 45
164: 7(int) Constant 46
166: 49(int) Constant 3
170: 7(int) Constant 48
175: 7(int) Constant 51
181: 7(int) Constant 54
184: 7(int) Constant 55
187: 7(int) Constant 56
190: 7(int) Constant 57
193: 7(int) Constant 58
194: TypePointer Output 49(int)
195: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 51 13 12
196(outx): 194(ptr) Variable Output
199: 7(int) Constant 59
197: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 198 51 20 199 12 22 198 196(outx) 57
203: 7(int) Constant 60
14(main): 4 Function None 5
15: Label
59: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 22
60: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 24 24 12 12
Store 54(counter) 58
177: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 47
178: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 48 48 12 12
176: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 47 14(main)
180: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 181 181 12 12
179: 4 FunctionCall 16(test_if()
183: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 184 184 12 12
182: 4 FunctionCall 26(test_ifelse()
186: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 187 187 12 12
185: 4 FunctionCall 31(test_if_compound()
189: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 190 190 12 12
188: 4 FunctionCall 36(test_if_compound2()
192: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 193 193 12 12
191: 4 FunctionCall 41(test_switch()
201: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 199 199 12 12
200: 49(int) Load 54(counter)
Store 196(outx) 200
202: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 203 203 12 12
Return
FunctionEnd
16(test_if(): 4 Function None 5
17: Label
62: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 19
63: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 11 11 12 12
61: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 19 16(test_if()
SelectionMerge 69 None
BranchConditional 67 68 69
68: Label
74: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 70
75: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 57 57 12 12
73: 49(int) Load 54(counter)
76: 49(int) IAdd 73 72
Store 54(counter) 76
Branch 69
69: Label
77: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 19
78: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 79 79 12 12
Return
FunctionEnd
26(test_ifelse(): 4 Function None 5
27: Label
81: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 29
82: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 30 30 12 12
80: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 29 26(test_ifelse()
SelectionMerge 84 None
BranchConditional 67 83 91
83: Label
88: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 85
89: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 86 86 12 12
87: 49(int) Load 54(counter)
90: 49(int) IAdd 87 72
Store 54(counter) 90
Branch 84
91: Label
95: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 92
96: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 71 71 12 12
94: 49(int) Load 54(counter)
97: 49(int) IAdd 94 93
Store 54(counter) 97
Branch 84
84: Label
98: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 29
99: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 100 100 12 12
Return
FunctionEnd
31(test_if_compound(): 4 Function None 5
32: Label
102: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 34
103: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 35 35 12 12
101: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 34 31(test_if_compound()
SelectionMerge 105 None
BranchConditional 67 104 105
104: Label
111: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 106
112: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 35 35 12 12
SelectionMerge 110 None
BranchConditional 67 109 110
109: Label
116: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 113
117: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 114 114 12 12
115: 49(int) Load 54(counter)
118: 49(int) IAdd 115 72
Store 54(counter) 118
Branch 110
110: Label
Branch 105
105: Label
119: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 34
120: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 121 121 12 12
Return
FunctionEnd
36(test_if_compound2(): 4 Function None 5
37: Label
123: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 39
124: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 40 40 12 12
122: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 39 36(test_if_compound2()
SelectionMerge 126 None
BranchConditional 67 125 126
125: Label
131: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 127
132: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 40 40 12 12
SelectionMerge 130 None
BranchConditional 67 129 130
129: Label
135: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 133
136: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 10 10 12 12
134: 49(int) Load 54(counter)
137: 49(int) IAdd 134 72
Store 54(counter) 137
Branch 130
130: Label
139: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 127
140: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 141 141 12 12
138: 49(int) Load 54(counter)
142: 49(int) IAdd 138 93
Store 54(counter) 142
Branch 126
126: Label
143: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 39
144: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 145 145 12 12
Return
FunctionEnd
41(test_switch(): 4 Function None 5
42: Label
147: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 44
148: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 45 45 12 12
146: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 44 41(test_switch()
SelectionMerge 152 None
Switch 58 151
case 0: 149
case 1: 150
151: Label
168: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 44
169: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 170 170 12 12
167: 49(int) Load 54(counter)
171: 49(int) IAdd 167 166
Store 54(counter) 171
Branch 152
149: Label
154: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 44
155: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 156 156 12 12
153: 49(int) Load 54(counter)
157: 49(int) IAdd 153 72
Store 54(counter) 157
Branch 150
150: Label
159: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 44
160: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 161 161 12 12
158: 49(int) Load 54(counter)
162: 49(int) IAdd 158 93
Store 54(counter) 162
163: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 164 164 12 12
Branch 152
152: Label
173: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 44
174: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 20 175 175 12 12
Return
FunctionEnd