yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

Jeff BolzImplement GL_EXT_long_vector (#4132)b937eae5

main
22.8 KiB472 linesraw
1spv.longVectorBuiltinsSpecConst.comp
2// Module Version 10300
3// Generated by (magic number): 8000b
4// Id's are bound by 321
5
6                              Capability Shader
7                              Capability Float16
8                              Capability LongVectorEXT
9                              Capability ExpectAssumeKHR
10                              Extension  "SPV_EXT_long_vector"
11                              Extension  "SPV_KHR_expect_assume"
12               1:             ExtInstImport  "GLSL.std.450"
13                              MemoryModel Logical GLSL450
14                              EntryPoint GLCompute 4  "main"
15                              ExecutionMode 4 LocalSize 64 1 1
16                              Source GLSL 450
17                              SourceExtension  "GL_EXT_buffer_reference"
18                              SourceExtension  "GL_EXT_expect_assume"
19                              SourceExtension  "GL_EXT_long_vector"
20                              SourceExtension  "GL_EXT_shader_explicit_arithmetic_types"
21                              SourceExtension  "GL_KHR_memory_scope_semantics"
22                              Name 4  "main"
23                              Name 8  "c0"
24                              Name 11  "vf"
25                              Name 16  "f"
26                              Name 30  "vf16"
27                              Name 104  "tempReturn"
28                              Name 106  "tempArg"
29                              Name 107  "ResType"
30                              Name 151  "vb"
31                              Name 178  "vi"
32                              Name 183  "vu"
33                              Name 195  "ResType"
34                              Name 242  "b"
35                              Name 249  "tempReturn"
36                              Name 252  "tempArg"
37                              Name 253  "ResType"
38                              Name 259  "tempReturn"
39                              Name 262  "tempArg"
40                              Name 270  "tempArg"
41                              Name 271  "tempArg"
42                              Name 279  "tempArg"
43                              Name 280  "tempArg"
44                              Name 281  "ResType"
45                              Name 289  "i"
46                              Decorate 8(c0) SpecId 0
47                              Decorate 320 BuiltIn WorkgroupSize
48               2:             TypeVoid
49               3:             TypeFunction 2
50               6:             TypeFloat 32
51               7:             TypeInt 32 0
52           8(c0):      7(int) SpecConstant 0
53               9:             TypeCooperativeVectorNV 6(float) 8(c0)
54              10:             TypePointer Function 9
55              15:             TypePointer Function 6(float)
56              27:             TypeFloat 16
57              28:             TypeCooperativeVectorNV 27(float16_t) 8(c0)
58              29:             TypePointer Function 28
59    107(ResType):             TypeStruct 9 9
60             148:             TypeBool
61             149:             TypeCooperativeVectorNV 148(bool) 8(c0)
62             150:             TypePointer Function 149
63             175:             TypeInt 32 1
64             176:             TypeCooperativeVectorNV 175(int) 8(c0)
65             177:             TypePointer Function 176
66             181:             TypeCooperativeVectorNV 7(int) 8(c0)
67             182:             TypePointer Function 181
68    195(ResType):             TypeStruct 9 176
69             241:             TypePointer Function 148(bool)
70    253(ResType):             TypeStruct 181 181
71    281(ResType):             TypeStruct 176 176
72             288:             TypePointer Function 175(int)
73             317:             TypeVector 7(int) 3
74             318:      7(int) Constant 64
75             319:      7(int) Constant 1
76             320:  317(ivec3) ConstantComposite 318 319 319
77         4(main):           2 Function None 3
78               5:             Label
79          11(vf):     10(ptr) Variable Function
80           16(f):     15(ptr) Variable Function
81        30(vf16):     29(ptr) Variable Function
82 104(tempReturn):     10(ptr) Variable Function
83    106(tempArg):     10(ptr) Variable Function
84         151(vb):    150(ptr) Variable Function
85         178(vi):    177(ptr) Variable Function
86         183(vu):    182(ptr) Variable Function
87          242(b):    241(ptr) Variable Function
88 249(tempReturn):    182(ptr) Variable Function
89    252(tempArg):    182(ptr) Variable Function
90 259(tempReturn):    182(ptr) Variable Function
91    262(tempArg):    182(ptr) Variable Function
92    270(tempArg):    182(ptr) Variable Function
93    271(tempArg):    182(ptr) Variable Function
94    279(tempArg):    177(ptr) Variable Function
95    280(tempArg):    177(ptr) Variable Function
96          289(i):    288(ptr) Variable Function
97              12:           9 Load 11(vf)
98              13:           9 Load 11(vf)
99              14:           9 ExtInst 1(GLSL.std.450) 40(FMax) 12 13
100                              Store 11(vf) 14
101              17:    6(float) Load 16(f)
102              18:    6(float) Load 16(f)
103              19:           9 Load 11(vf)
104              20:           9 CompositeConstruct
105              21:           9 CompositeConstruct
106              22:           9 ExtInst 1(GLSL.std.450) 49(SmoothStep) 20 21 19
107                              Store 11(vf) 22
108              23:           9 Load 11(vf)
109              24:           9 Load 11(vf)
110              25:           9 Load 11(vf)
111              26:           9 ExtInst 1(GLSL.std.450) 49(SmoothStep) 23 24 25
112                              Store 11(vf) 26
113              31:          28 Load 30(vf16)
114              32:          28 Load 30(vf16)
115              33:          28 Load 30(vf16)
116              34:          28 ExtInst 1(GLSL.std.450) 49(SmoothStep) 31 32 33
117                              Store 30(vf16) 34
118              35:           9 Load 11(vf)
119              36:           9 ExtInst 1(GLSL.std.450) 11(Radians) 35
120                              Store 11(vf) 36
121              37:           9 Load 11(vf)
122              38:           9 ExtInst 1(GLSL.std.450) 12(Degrees) 37
123                              Store 11(vf) 38
124              39:           9 Load 11(vf)
125              40:           9 ExtInst 1(GLSL.std.450) 13(Sin) 39
126                              Store 11(vf) 40
127              41:           9 Load 11(vf)
128              42:           9 ExtInst 1(GLSL.std.450) 14(Cos) 41
129                              Store 11(vf) 42
130              43:           9 Load 11(vf)
131              44:           9 ExtInst 1(GLSL.std.450) 15(Tan) 43
132                              Store 11(vf) 44
133              45:           9 Load 11(vf)
134              46:           9 ExtInst 1(GLSL.std.450) 16(Asin) 45
135                              Store 11(vf) 46
136              47:           9 Load 11(vf)
137              48:           9 ExtInst 1(GLSL.std.450) 17(Acos) 47
138                              Store 11(vf) 48
139              49:           9 Load 11(vf)
140              50:           9 ExtInst 1(GLSL.std.450) 18(Atan) 49
141                              Store 11(vf) 50
142              51:           9 Load 11(vf)
143              52:           9 Load 11(vf)
144              53:           9 ExtInst 1(GLSL.std.450) 25(Atan2) 51 52
145                              Store 11(vf) 53
146              54:           9 Load 11(vf)
147              55:           9 ExtInst 1(GLSL.std.450) 19(Sinh) 54
148                              Store 11(vf) 55
149              56:           9 Load 11(vf)
150              57:           9 ExtInst 1(GLSL.std.450) 20(Cosh) 56
151                              Store 11(vf) 57
152              58:           9 Load 11(vf)
153              59:           9 ExtInst 1(GLSL.std.450) 21(Tanh) 58
154                              Store 11(vf) 59
155              60:           9 Load 11(vf)
156              61:           9 ExtInst 1(GLSL.std.450) 22(Asinh) 60
157                              Store 11(vf) 61
158              62:           9 Load 11(vf)
159              63:           9 ExtInst 1(GLSL.std.450) 23(Acosh) 62
160                              Store 11(vf) 63
161              64:           9 Load 11(vf)
162              65:           9 ExtInst 1(GLSL.std.450) 24(Atanh) 64
163                              Store 11(vf) 65
164              66:           9 Load 11(vf)
165              67:           9 Load 11(vf)
166              68:           9 ExtInst 1(GLSL.std.450) 26(Pow) 66 67
167                              Store 11(vf) 68
168              69:           9 Load 11(vf)
169              70:           9 ExtInst 1(GLSL.std.450) 27(Exp) 69
170                              Store 11(vf) 70
171              71:           9 Load 11(vf)
172              72:           9 ExtInst 1(GLSL.std.450) 28(Log) 71
173                              Store 11(vf) 72
174              73:           9 Load 11(vf)
175              74:           9 ExtInst 1(GLSL.std.450) 29(Exp2) 73
176                              Store 11(vf) 74
177              75:           9 Load 11(vf)
178              76:           9 ExtInst 1(GLSL.std.450) 30(Log2) 75
179                              Store 11(vf) 76
180              77:           9 Load 11(vf)
181              78:           9 ExtInst 1(GLSL.std.450) 31(Sqrt) 77
182                              Store 11(vf) 78
183              79:           9 Load 11(vf)
184              80:           9 ExtInst 1(GLSL.std.450) 32(InverseSqrt) 79
185                              Store 11(vf) 80
186              81:           9 Load 11(vf)
187              82:           9 ExtInst 1(GLSL.std.450) 4(FAbs) 81
188                              Store 11(vf) 82
189              83:           9 Load 11(vf)
190              84:           9 ExtInst 1(GLSL.std.450) 6(FSign) 83
191                              Store 11(vf) 84
192              85:           9 Load 11(vf)
193              86:           9 ExtInst 1(GLSL.std.450) 8(Floor) 85
194                              Store 11(vf) 86
195              87:           9 Load 11(vf)
196              88:           9 ExtInst 1(GLSL.std.450) 3(Trunc) 87
197                              Store 11(vf) 88
198              89:           9 Load 11(vf)
199              90:           9 ExtInst 1(GLSL.std.450) 1(Round) 89
200                              Store 11(vf) 90
201              91:           9 Load 11(vf)
202              92:           9 ExtInst 1(GLSL.std.450) 2(RoundEven) 91
203                              Store 11(vf) 92
204              93:           9 Load 11(vf)
205              94:           9 ExtInst 1(GLSL.std.450) 9(Ceil) 93
206                              Store 11(vf) 94
207              95:           9 Load 11(vf)
208              96:           9 ExtInst 1(GLSL.std.450) 10(Fract) 95
209                              Store 11(vf) 96
210              97:           9 Load 11(vf)
211              98:    6(float) Load 16(f)
212              99:           9 CompositeConstruct
213             100:           9 FMod 97 99
214                              Store 11(vf) 100
215             101:           9 Load 11(vf)
216             102:           9 Load 11(vf)
217             103:           9 FMod 101 102
218                              Store 11(vf) 103
219             105:           9 Load 11(vf)
220             108:107(ResType) ExtInst 1(GLSL.std.450) 36(ModfStruct) 105
221             109:           9 CompositeExtract 108 1
222                              Store 106(tempArg) 109
223             110:           9 CompositeExtract 108 0
224                              Store 104(tempReturn) 110
225             111:           9 Load 106(tempArg)
226                              Store 11(vf) 111
227             112:           9 Load 104(tempReturn)
228                              Store 11(vf) 112
229             113:           9 Load 11(vf)
230             114:    6(float) Load 16(f)
231             115:           9 CompositeConstruct
232             116:           9 ExtInst 1(GLSL.std.450) 37(FMin) 113 115
233                              Store 11(vf) 116
234             117:           9 Load 11(vf)
235             118:           9 Load 11(vf)
236             119:           9 ExtInst 1(GLSL.std.450) 37(FMin) 117 118
237                              Store 11(vf) 119
238             120:           9 Load 11(vf)
239             121:    6(float) Load 16(f)
240             122:           9 CompositeConstruct
241             123:           9 ExtInst 1(GLSL.std.450) 40(FMax) 120 122
242                              Store 11(vf) 123
243             124:           9 Load 11(vf)
244             125:           9 Load 11(vf)
245             126:           9 ExtInst 1(GLSL.std.450) 40(FMax) 124 125
246                              Store 11(vf) 126
247             127:           9 Load 11(vf)
248             128:    6(float) Load 16(f)
249             129:    6(float) Load 16(f)
250             130:           9 CompositeConstruct
251             131:           9 CompositeConstruct
252             132:           9 ExtInst 1(GLSL.std.450) 43(FClamp) 127 130 131
253                              Store 11(vf) 132
254             133:           9 Load 11(vf)
255             134:           9 Load 11(vf)
256             135:           9 Load 11(vf)
257             136:           9 ExtInst 1(GLSL.std.450) 43(FClamp) 133 134 135
258                              Store 11(vf) 136
259             137:           9 Load 11(vf)
260             138:           9 Load 11(vf)
261             139:    6(float) Load 16(f)
262             140:           9 CompositeConstruct
263             141:           9 ExtInst 1(GLSL.std.450) 46(FMix) 137 138 140
264                              Store 11(vf) 141
265             142:           9 Load 11(vf)
266             143:           9 Load 11(vf)
267             144:           9 Load 11(vf)
268             145:           9 ExtInst 1(GLSL.std.450) 46(FMix) 142 143 144
269                              Store 11(vf) 145
270             146:           9 Load 11(vf)
271             147:           9 Load 11(vf)
272             152:         149 Load 151(vb)
273             153:           9 Select 152 147 146
274                              Store 11(vf) 153
275             154:           9 Load 11(vf)
276             155:           9 Load 11(vf)
277             156:           9 ExtInst 1(GLSL.std.450) 48(Step) 154 155
278                              Store 11(vf) 156
279             157:    6(float) Load 16(f)
280             158:           9 Load 11(vf)
281             159:           9 CompositeConstruct
282             160:           9 ExtInst 1(GLSL.std.450) 48(Step) 159 158
283                              Store 11(vf) 160
284             161:           9 Load 11(vf)
285             162:           9 Load 11(vf)
286             163:           9 Load 11(vf)
287             164:           9 ExtInst 1(GLSL.std.450) 49(SmoothStep) 161 162 163
288                              Store 11(vf) 164
289             165:    6(float) Load 16(f)
290             166:    6(float) Load 16(f)
291             167:           9 Load 11(vf)
292             168:           9 CompositeConstruct
293             169:           9 CompositeConstruct
294             170:           9 ExtInst 1(GLSL.std.450) 49(SmoothStep) 168 169 167
295                              Store 11(vf) 170
296             171:           9 Load 11(vf)
297             172:         149 IsNan 171
298                              Store 151(vb) 172
299             173:           9 Load 11(vf)
300             174:         149 IsInf 173
301                              Store 151(vb) 174
302             179:           9 Load 11(vf)
303             180:         176 Bitcast 179
304                              Store 178(vi) 180
305             184:           9 Load 11(vf)
306             185:         181 Bitcast 184
307                              Store 183(vu) 185
308             186:         176 Load 178(vi)
309             187:           9 Bitcast 186
310                              Store 11(vf) 187
311             188:         181 Load 183(vu)
312             189:           9 Bitcast 188
313                              Store 11(vf) 189
314             190:           9 Load 11(vf)
315             191:           9 Load 11(vf)
316             192:           9 Load 11(vf)
317             193:           9 ExtInst 1(GLSL.std.450) 50(Fma) 190 191 192
318                              Store 11(vf) 193
319             194:           9 Load 11(vf)
320             196:195(ResType) ExtInst 1(GLSL.std.450) 52(FrexpStruct) 194
321             197:         176 CompositeExtract 196 1
322                              Store 178(vi) 197
323             198:           9 CompositeExtract 196 0
324                              Store 11(vf) 198
325             199:           9 Load 11(vf)
326             200:         176 Load 178(vi)
327             201:           9 ExtInst 1(GLSL.std.450) 53(Ldexp) 199 200
328                              Store 11(vf) 201
329             202:           9 Load 11(vf)
330             203:    6(float) ExtInst 1(GLSL.std.450) 66(Length) 202
331                              Store 16(f) 203
332             204:           9 Load 11(vf)
333             205:           9 Load 11(vf)
334             206:    6(float) ExtInst 1(GLSL.std.450) 67(Distance) 204 205
335                              Store 16(f) 206
336             207:           9 Load 11(vf)
337             208:           9 Load 11(vf)
338             209:    6(float) Dot 207 208
339                              Store 16(f) 209
340             210:           9 Load 11(vf)
341             211:           9 ExtInst 1(GLSL.std.450) 69(Normalize) 210
342                              Store 11(vf) 211
343             212:           9 Load 11(vf)
344             213:           9 Load 11(vf)
345             214:           9 Load 11(vf)
346             215:           9 ExtInst 1(GLSL.std.450) 70(FaceForward) 212 213 214
347                              Store 11(vf) 215
348             216:           9 Load 11(vf)
349             217:           9 Load 11(vf)
350             218:           9 ExtInst 1(GLSL.std.450) 71(Reflect) 216 217
351                              Store 11(vf) 218
352             219:           9 Load 11(vf)
353             220:           9 Load 11(vf)
354             221:    6(float) Load 16(f)
355             222:           9 ExtInst 1(GLSL.std.450) 72(Refract) 219 220 221
356                              Store 11(vf) 222
357             223:           9 Load 11(vf)
358             224:           9 Load 11(vf)
359             225:         149 FOrdLessThan 223 224
360                              Store 151(vb) 225
361             226:           9 Load 11(vf)
362             227:           9 Load 11(vf)
363             228:         149 FOrdLessThanEqual 226 227
364                              Store 151(vb) 228
365             229:           9 Load 11(vf)
366             230:           9 Load 11(vf)
367             231:         149 FOrdGreaterThan 229 230
368                              Store 151(vb) 231
369             232:           9 Load 11(vf)
370             233:           9 Load 11(vf)
371             234:         149 FOrdGreaterThanEqual 232 233
372                              Store 151(vb) 234
373             235:           9 Load 11(vf)
374             236:           9 Load 11(vf)
375             237:         149 FOrdEqual 235 236
376                              Store 151(vb) 237
377             238:           9 Load 11(vf)
378             239:           9 Load 11(vf)
379             240:         149 FUnordNotEqual 238 239
380                              Store 151(vb) 240
381             243:         149 Load 151(vb)
382             244:   148(bool) Any 243
383                              Store 242(b) 244
384             245:         149 Load 151(vb)
385             246:   148(bool) All 245
386                              Store 242(b) 246
387             247:         149 Load 151(vb)
388             248:         149 LogicalNot 247
389                              Store 151(vb) 248
390             250:         181 Load 183(vu)
391             251:         181 Load 183(vu)
392             254:253(ResType) IAddCarry 250 251
393             255:         181 CompositeExtract 254 1
394                              Store 252(tempArg) 255
395             256:         181 CompositeExtract 254 0
396                              Store 249(tempReturn) 256
397             257:         181 Load 252(tempArg)
398                              Store 183(vu) 257
399             258:         181 Load 249(tempReturn)
400                              Store 183(vu) 258
401             260:         181 Load 183(vu)
402             261:         181 Load 183(vu)
403             263:253(ResType) ISubBorrow 260 261
404             264:         181 CompositeExtract 263 1
405                              Store 262(tempArg) 264
406             265:         181 CompositeExtract 263 0
407                              Store 259(tempReturn) 265
408             266:         181 Load 262(tempArg)
409                              Store 183(vu) 266
410             267:         181 Load 259(tempReturn)
411                              Store 183(vu) 267
412             268:         181 Load 183(vu)
413             269:         181 Load 183(vu)
414             272:253(ResType) UMulExtended 268 269
415             273:         181 CompositeExtract 272 0
416                              Store 271(tempArg) 273
417             274:         181 CompositeExtract 272 1
418                              Store 270(tempArg) 274
419             275:         181 Load 270(tempArg)
420                              Store 183(vu) 275
421             276:         181 Load 271(tempArg)
422                              Store 183(vu) 276
423             277:         176 Load 178(vi)
424             278:         176 Load 178(vi)
425             282:281(ResType) SMulExtended 277 278
426             283:         176 CompositeExtract 282 0
427                              Store 280(tempArg) 283
428             284:         176 CompositeExtract 282 1
429                              Store 279(tempArg) 284
430             285:         176 Load 279(tempArg)
431                              Store 178(vi) 285
432             286:         176 Load 280(tempArg)
433                              Store 178(vi) 286
434             287:         181 Load 183(vu)
435             290:    175(int) Load 289(i)
436             291:    175(int) Load 289(i)
437             292:         181 BitFieldUExtract 287 290 291
438                              Store 183(vu) 292
439             293:         181 Load 183(vu)
440             294:         181 Load 183(vu)
441             295:    175(int) Load 289(i)
442             296:    175(int) Load 289(i)
443             297:         181 BitFieldInsert 293 294 295 296
444                              Store 183(vu) 297
445             298:         181 Load 183(vu)
446             299:         181 BitReverse 298
447                              Store 183(vu) 299
448             300:         181 Load 183(vu)
449             301:         176 BitCount 300
450                              Store 178(vi) 301
451             302:         181 Load 183(vu)
452             303:         176 ExtInst 1(GLSL.std.450) 73(FindILsb) 302
453                              Store 178(vi) 303
454             304:         181 Load 183(vu)
455             305:         176 ExtInst 1(GLSL.std.450) 75(FindUMsb) 304
456                              Store 178(vi) 305
457             306:         181 Load 183(vu)
458             307:         181 Load 183(vu)
459             308:         149 Load 151(vb)
460             309:         181 Select 308 307 306
461                              Store 183(vu) 309
462             310:         149 Load 151(vb)
463             311:         149 Load 151(vb)
464             312:         149 Load 151(vb)
465             313:         149 Select 312 311 310
466                              Store 151(vb) 313
467             314:         181 Load 183(vu)
468             315:         181 Load 183(vu)
469             316:         181 ExpectKHR 314 315
470                              Store 183(vu) 316
471                              Return
472                              FunctionEnd