AST: Fix shift conversions, which don't require matching types.

The base and shift amount need to be integers, but not of the same type.
This fixes #1296 and replaces #1297.
This commit is contained in:
John Kessenich 2018-03-15 21:07:35 -06:00
parent 6e899be5ec
commit 647fccaf2f
9 changed files with 1475 additions and 1413 deletions

View file

@ -1,7 +1,7 @@
spv.int16.frag
// Module Version 10000
// Generated by (magic number): 80006
// Id's are bound by 525
// Id's are bound by 523
Capability Shader
Capability Float16
@ -55,48 +55,48 @@ spv.int16.frag
Name 220 "i"
Name 227 "uv"
Name 243 "i64"
Name 283 "b"
Name 345 "i16v"
Name 348 "i16"
Name 358 "u16v"
Name 360 "u16"
Name 430 "i32"
Name 433 "i64"
Name 436 "i16v4"
Name 439 "u32"
Name 440 "u16v2"
Name 444 "u64"
Name 447 "u16v4"
Name 459 "bv"
Name 520 "Block"
MemberName 520(Block) 0 "i16"
MemberName 520(Block) 1 "i16v2"
MemberName 520(Block) 2 "i16v3"
MemberName 520(Block) 3 "i16v4"
MemberName 520(Block) 4 "u16"
MemberName 520(Block) 5 "u16v2"
MemberName 520(Block) 6 "u16v3"
MemberName 520(Block) 7 "u16v4"
Name 522 "block"
Name 523 "si16"
Name 524 "su16"
Name 281 "b"
Name 343 "i16v"
Name 346 "i16"
Name 356 "u16v"
Name 358 "u16"
Name 428 "i32"
Name 431 "i64"
Name 434 "i16v4"
Name 437 "u32"
Name 438 "u16v2"
Name 442 "u64"
Name 445 "u16v4"
Name 457 "bv"
Name 518 "Block"
MemberName 518(Block) 0 "i16"
MemberName 518(Block) 1 "i16v2"
MemberName 518(Block) 2 "i16v3"
MemberName 518(Block) 3 "i16v4"
MemberName 518(Block) 4 "u16"
MemberName 518(Block) 5 "u16v2"
MemberName 518(Block) 6 "u16v3"
MemberName 518(Block) 7 "u16v4"
Name 520 "block"
Name 521 "si16"
Name 522 "su16"
MemberDecorate 24(Uniforms) 0 Offset 0
Decorate 24(Uniforms) Block
Decorate 26 DescriptorSet 0
Decorate 26 Binding 0
MemberDecorate 520(Block) 0 Offset 0
MemberDecorate 520(Block) 1 Offset 4
MemberDecorate 520(Block) 2 Offset 8
MemberDecorate 520(Block) 3 Offset 16
MemberDecorate 520(Block) 4 Offset 24
MemberDecorate 520(Block) 5 Offset 28
MemberDecorate 520(Block) 6 Offset 32
MemberDecorate 520(Block) 7 Offset 40
Decorate 520(Block) Block
Decorate 522(block) DescriptorSet 0
Decorate 522(block) Binding 1
Decorate 523(si16) SpecId 100
Decorate 524(su16) SpecId 101
MemberDecorate 518(Block) 0 Offset 0
MemberDecorate 518(Block) 1 Offset 4
MemberDecorate 518(Block) 2 Offset 8
MemberDecorate 518(Block) 3 Offset 16
MemberDecorate 518(Block) 4 Offset 24
MemberDecorate 518(Block) 5 Offset 28
MemberDecorate 518(Block) 6 Offset 32
MemberDecorate 518(Block) 7 Offset 40
Decorate 518(Block) Block
Decorate 520(block) DescriptorSet 0
Decorate 520(block) Binding 1
Decorate 521(si16) SpecId 100
Decorate 522(su16) SpecId 101
2: TypeVoid
3: TypeFunction 2
14: TypeInt 16 1
@ -171,28 +171,28 @@ spv.int16.frag
242: TypePointer Function 71(int)
264: 17(int) Constant 1
270: 17(int) Constant 2
275: TypeVector 27(int) 3
282: TypePointer Function 173(bool)
284: 17(int) Constant 0
298: TypePointer Function 17(int)
356: 52(ivec2) ConstantComposite 21 21
365: 193(ivec3) ConstantComposite 184 184 184
407: 173(bool) ConstantTrue
414: 173(bool) ConstantFalse
415: 174(bvec2) ConstantComposite 414 414
427: TypeVector 173(bool) 3
428: 427(bvec3) ConstantComposite 414 414 414
434: TypeVector 14(int) 4
435: TypePointer Function 434(ivec4)
443: TypePointer Function 77(int)
445: TypeVector 36(int) 4
446: TypePointer Function 445(ivec4)
458: TypePointer Function 427(bvec3)
520(Block): TypeStruct 14(int) 52(ivec2) 197(ivec3) 434(ivec4) 36(int) 57(ivec2) 193(ivec3) 445(ivec4)
521: TypePointer Uniform 520(Block)
522(block): 521(ptr) Variable Uniform
523(si16): 14(int) SpecConstant 4294967286
524(su16): 36(int) SpecConstant 20
276: TypeVector 27(int) 3
280: TypePointer Function 173(bool)
282: 17(int) Constant 0
296: TypePointer Function 17(int)
354: 52(ivec2) ConstantComposite 21 21
363: 193(ivec3) ConstantComposite 184 184 184
405: 173(bool) ConstantTrue
412: 173(bool) ConstantFalse
413: 174(bvec2) ConstantComposite 412 412
425: TypeVector 173(bool) 3
426: 425(bvec3) ConstantComposite 412 412 412
432: TypeVector 14(int) 4
433: TypePointer Function 432(ivec4)
441: TypePointer Function 77(int)
443: TypeVector 36(int) 4
444: TypePointer Function 443(ivec4)
456: TypePointer Function 425(bvec3)
518(Block): TypeStruct 14(int) 52(ivec2) 197(ivec3) 432(ivec4) 36(int) 57(ivec2) 193(ivec3) 443(ivec4)
519: TypePointer Uniform 518(Block)
520(block): 519(ptr) Variable Uniform
521(si16): 14(int) SpecConstant 4294967286
522(su16): 36(int) SpecConstant 20
4(main): 2 Function None 3
5: Label
Return
@ -371,7 +371,7 @@ spv.int16.frag
220(i): 219(ptr) Variable Function
227(uv): 226(ptr) Variable Function
243(i64): 242(ptr) Variable Function
283(b): 282(ptr) Variable Function
281(b): 280(ptr) Variable Function
196: 193(ivec3) Load 195(u16v)
198: 197(ivec3) CompositeConstruct 179 179 179
199: 193(ivec3) IAdd 196 198
@ -460,287 +460,285 @@ spv.int16.frag
273: 14(int) ShiftLeftLogical 269 272
Store 200(i16) 273
274: 193(ivec3) Load 195(u16v)
276: 275(ivec3) UConvert 274
277: 275(ivec3) Bitcast 276
278: 27(int) Load 220(i)
279: 275(ivec3) CompositeConstruct 278 278 278
280: 275(ivec3) ShiftLeftLogical 277 279
281: 225(ivec3) Bitcast 280
Store 227(uv) 281
285: 37(ptr) AccessChain 195(u16v) 284
286: 36(int) Load 285
287: 14(int) Load 200(i16)
288: 36(int) Bitcast 287
289: 173(bool) INotEqual 286 288
Store 283(b) 289
290: 14(int) Load 200(i16)
291: 36(int) Bitcast 290
292: 37(ptr) AccessChain 195(u16v) 284
293: 36(int) Load 292
294: 173(bool) IEqual 291 293
Store 283(b) 294
295: 37(ptr) AccessChain 195(u16v) 284
296: 36(int) Load 295
297: 17(int) UConvert 296
299: 298(ptr) AccessChain 227(uv) 264
300: 17(int) Load 299
301: 173(bool) UGreaterThan 297 300
Store 283(b) 301
302: 14(int) Load 200(i16)
303: 27(int) SConvert 302
304: 27(int) Load 220(i)
305: 173(bool) SLessThan 303 304
Store 283(b) 305
306: 37(ptr) AccessChain 195(u16v) 264
307: 36(int) Load 306
308: 17(int) UConvert 307
309: 298(ptr) AccessChain 227(uv) 284
310: 17(int) Load 309
311: 173(bool) UGreaterThanEqual 308 310
Store 283(b) 311
312: 14(int) Load 200(i16)
313: 27(int) SConvert 312
314: 27(int) Load 220(i)
315: 173(bool) SLessThanEqual 313 314
Store 283(b) 315
316: 14(int) Load 200(i16)
317: 27(int) SConvert 316
318: 17(int) Bitcast 317
319: 225(ivec3) Load 227(uv)
320: 225(ivec3) CompositeConstruct 318 318 318
321: 225(ivec3) BitwiseOr 319 320
Store 227(uv) 321
322: 14(int) Load 200(i16)
323: 27(int) SConvert 322
324: 27(int) Load 220(i)
325: 27(int) BitwiseOr 323 324
Store 220(i) 325
326: 14(int) Load 200(i16)
327: 71(int) SConvert 326
328: 71(int) Load 243(i64)
329: 71(int) BitwiseAnd 328 327
Store 243(i64) 329
330: 193(ivec3) Load 195(u16v)
331: 225(ivec3) UConvert 330
332: 225(ivec3) Load 227(uv)
333: 225(ivec3) BitwiseAnd 331 332
Store 227(uv) 333
334: 14(int) Load 200(i16)
335: 27(int) SConvert 334
336: 17(int) Bitcast 335
337: 225(ivec3) Load 227(uv)
338: 225(ivec3) CompositeConstruct 336 336 336
339: 225(ivec3) BitwiseXor 337 338
Store 227(uv) 339
340: 193(ivec3) Load 195(u16v)
341: 14(int) Load 200(i16)
342: 36(int) Bitcast 341
343: 193(ivec3) CompositeConstruct 342 342 342
344: 193(ivec3) BitwiseXor 340 343
Store 195(u16v) 344
275: 27(int) Load 220(i)
277: 276(ivec3) CompositeConstruct 275 275 275
278: 193(ivec3) ShiftLeftLogical 274 277
279: 225(ivec3) UConvert 278
Store 227(uv) 279
283: 37(ptr) AccessChain 195(u16v) 282
284: 36(int) Load 283
285: 14(int) Load 200(i16)
286: 36(int) Bitcast 285
287: 173(bool) INotEqual 284 286
Store 281(b) 287
288: 14(int) Load 200(i16)
289: 36(int) Bitcast 288
290: 37(ptr) AccessChain 195(u16v) 282
291: 36(int) Load 290
292: 173(bool) IEqual 289 291
Store 281(b) 292
293: 37(ptr) AccessChain 195(u16v) 282
294: 36(int) Load 293
295: 17(int) UConvert 294
297: 296(ptr) AccessChain 227(uv) 264
298: 17(int) Load 297
299: 173(bool) UGreaterThan 295 298
Store 281(b) 299
300: 14(int) Load 200(i16)
301: 27(int) SConvert 300
302: 27(int) Load 220(i)
303: 173(bool) SLessThan 301 302
Store 281(b) 303
304: 37(ptr) AccessChain 195(u16v) 264
305: 36(int) Load 304
306: 17(int) UConvert 305
307: 296(ptr) AccessChain 227(uv) 282
308: 17(int) Load 307
309: 173(bool) UGreaterThanEqual 306 308
Store 281(b) 309
310: 14(int) Load 200(i16)
311: 27(int) SConvert 310
312: 27(int) Load 220(i)
313: 173(bool) SLessThanEqual 311 312
Store 281(b) 313
314: 14(int) Load 200(i16)
315: 27(int) SConvert 314
316: 17(int) Bitcast 315
317: 225(ivec3) Load 227(uv)
318: 225(ivec3) CompositeConstruct 316 316 316
319: 225(ivec3) BitwiseOr 317 318
Store 227(uv) 319
320: 14(int) Load 200(i16)
321: 27(int) SConvert 320
322: 27(int) Load 220(i)
323: 27(int) BitwiseOr 321 322
Store 220(i) 323
324: 14(int) Load 200(i16)
325: 71(int) SConvert 324
326: 71(int) Load 243(i64)
327: 71(int) BitwiseAnd 326 325
Store 243(i64) 327
328: 193(ivec3) Load 195(u16v)
329: 225(ivec3) UConvert 328
330: 225(ivec3) Load 227(uv)
331: 225(ivec3) BitwiseAnd 329 330
Store 227(uv) 331
332: 14(int) Load 200(i16)
333: 27(int) SConvert 332
334: 17(int) Bitcast 333
335: 225(ivec3) Load 227(uv)
336: 225(ivec3) CompositeConstruct 334 334 334
337: 225(ivec3) BitwiseXor 335 336
Store 227(uv) 337
338: 193(ivec3) Load 195(u16v)
339: 14(int) Load 200(i16)
340: 36(int) Bitcast 339
341: 193(ivec3) CompositeConstruct 340 340 340
342: 193(ivec3) BitwiseXor 338 341
Store 195(u16v) 342
Return
FunctionEnd
12(builtinFuncs(): 2 Function None 3
13: Label
345(i16v): 53(ptr) Variable Function
348(i16): 15(ptr) Variable Function
358(u16v): 194(ptr) Variable Function
360(u16): 37(ptr) Variable Function
430(i32): 219(ptr) Variable Function
433(i64): 242(ptr) Variable Function
436(i16v4): 435(ptr) Variable Function
439(u32): 298(ptr) Variable Function
440(u16v2): 58(ptr) Variable Function
444(u64): 443(ptr) Variable Function
447(u16v4): 446(ptr) Variable Function
459(bv): 458(ptr) Variable Function
346: 52(ivec2) Load 345(i16v)
347: 52(ivec2) ExtInst 1(GLSL.std.450) 5(SAbs) 346
Store 345(i16v) 347
349: 14(int) Load 348(i16)
350: 14(int) ExtInst 1(GLSL.std.450) 7(SSign) 349
Store 348(i16) 350
351: 52(ivec2) Load 345(i16v)
352: 14(int) Load 348(i16)
353: 52(ivec2) CompositeConstruct 352 352
354: 52(ivec2) ExtInst 1(GLSL.std.450) 39(SMin) 351 353
Store 345(i16v) 354
355: 52(ivec2) Load 345(i16v)
357: 52(ivec2) ExtInst 1(GLSL.std.450) 39(SMin) 355 356
Store 345(i16v) 357
359: 193(ivec3) Load 358(u16v)
361: 36(int) Load 360(u16)
362: 193(ivec3) CompositeConstruct 361 361 361
363: 193(ivec3) ExtInst 1(GLSL.std.450) 38(UMin) 359 362
Store 358(u16v) 363
364: 193(ivec3) Load 358(u16v)
366: 193(ivec3) ExtInst 1(GLSL.std.450) 38(UMin) 364 365
Store 358(u16v) 366
367: 52(ivec2) Load 345(i16v)
368: 14(int) Load 348(i16)
369: 52(ivec2) CompositeConstruct 368 368
370: 52(ivec2) ExtInst 1(GLSL.std.450) 42(SMax) 367 369
Store 345(i16v) 370
371: 52(ivec2) Load 345(i16v)
372: 52(ivec2) ExtInst 1(GLSL.std.450) 42(SMax) 371 356
Store 345(i16v) 372
373: 193(ivec3) Load 358(u16v)
374: 36(int) Load 360(u16)
375: 193(ivec3) CompositeConstruct 374 374 374
376: 193(ivec3) ExtInst 1(GLSL.std.450) 41(UMax) 373 375
Store 358(u16v) 376
377: 193(ivec3) Load 358(u16v)
378: 193(ivec3) ExtInst 1(GLSL.std.450) 41(UMax) 377 365
Store 358(u16v) 378
379: 52(ivec2) Load 345(i16v)
380: 14(int) Load 348(i16)
381: 14(int) SNegate 380
382: 14(int) Load 348(i16)
383: 52(ivec2) CompositeConstruct 381 381
384: 52(ivec2) CompositeConstruct 382 382
385: 52(ivec2) ExtInst 1(GLSL.std.450) 45(SClamp) 379 383 384
Store 345(i16v) 385
386: 52(ivec2) Load 345(i16v)
387: 52(ivec2) Load 345(i16v)
388: 52(ivec2) SNegate 387
389: 52(ivec2) Load 345(i16v)
390: 52(ivec2) ExtInst 1(GLSL.std.450) 45(SClamp) 386 388 389
Store 345(i16v) 390
391: 193(ivec3) Load 358(u16v)
392: 36(int) Load 360(u16)
393: 36(int) SNegate 392
394: 36(int) Load 360(u16)
395: 193(ivec3) CompositeConstruct 393 393 393
396: 193(ivec3) CompositeConstruct 394 394 394
397: 193(ivec3) ExtInst 1(GLSL.std.450) 44(UClamp) 391 395 396
Store 358(u16v) 397
398: 193(ivec3) Load 358(u16v)
399: 193(ivec3) Load 358(u16v)
400: 193(ivec3) SNegate 399
401: 193(ivec3) Load 358(u16v)
402: 193(ivec3) ExtInst 1(GLSL.std.450) 44(UClamp) 398 400 401
Store 358(u16v) 402
403: 15(ptr) AccessChain 345(i16v) 284
343(i16v): 53(ptr) Variable Function
346(i16): 15(ptr) Variable Function
356(u16v): 194(ptr) Variable Function
358(u16): 37(ptr) Variable Function
428(i32): 219(ptr) Variable Function
431(i64): 242(ptr) Variable Function
434(i16v4): 433(ptr) Variable Function
437(u32): 296(ptr) Variable Function
438(u16v2): 58(ptr) Variable Function
442(u64): 441(ptr) Variable Function
445(u16v4): 444(ptr) Variable Function
457(bv): 456(ptr) Variable Function
344: 52(ivec2) Load 343(i16v)
345: 52(ivec2) ExtInst 1(GLSL.std.450) 5(SAbs) 344
Store 343(i16v) 345
347: 14(int) Load 346(i16)
348: 14(int) ExtInst 1(GLSL.std.450) 7(SSign) 347
Store 346(i16) 348
349: 52(ivec2) Load 343(i16v)
350: 14(int) Load 346(i16)
351: 52(ivec2) CompositeConstruct 350 350
352: 52(ivec2) ExtInst 1(GLSL.std.450) 39(SMin) 349 351
Store 343(i16v) 352
353: 52(ivec2) Load 343(i16v)
355: 52(ivec2) ExtInst 1(GLSL.std.450) 39(SMin) 353 354
Store 343(i16v) 355
357: 193(ivec3) Load 356(u16v)
359: 36(int) Load 358(u16)
360: 193(ivec3) CompositeConstruct 359 359 359
361: 193(ivec3) ExtInst 1(GLSL.std.450) 38(UMin) 357 360
Store 356(u16v) 361
362: 193(ivec3) Load 356(u16v)
364: 193(ivec3) ExtInst 1(GLSL.std.450) 38(UMin) 362 363
Store 356(u16v) 364
365: 52(ivec2) Load 343(i16v)
366: 14(int) Load 346(i16)
367: 52(ivec2) CompositeConstruct 366 366
368: 52(ivec2) ExtInst 1(GLSL.std.450) 42(SMax) 365 367
Store 343(i16v) 368
369: 52(ivec2) Load 343(i16v)
370: 52(ivec2) ExtInst 1(GLSL.std.450) 42(SMax) 369 354
Store 343(i16v) 370
371: 193(ivec3) Load 356(u16v)
372: 36(int) Load 358(u16)
373: 193(ivec3) CompositeConstruct 372 372 372
374: 193(ivec3) ExtInst 1(GLSL.std.450) 41(UMax) 371 373
Store 356(u16v) 374
375: 193(ivec3) Load 356(u16v)
376: 193(ivec3) ExtInst 1(GLSL.std.450) 41(UMax) 375 363
Store 356(u16v) 376
377: 52(ivec2) Load 343(i16v)
378: 14(int) Load 346(i16)
379: 14(int) SNegate 378
380: 14(int) Load 346(i16)
381: 52(ivec2) CompositeConstruct 379 379
382: 52(ivec2) CompositeConstruct 380 380
383: 52(ivec2) ExtInst 1(GLSL.std.450) 45(SClamp) 377 381 382
Store 343(i16v) 383
384: 52(ivec2) Load 343(i16v)
385: 52(ivec2) Load 343(i16v)
386: 52(ivec2) SNegate 385
387: 52(ivec2) Load 343(i16v)
388: 52(ivec2) ExtInst 1(GLSL.std.450) 45(SClamp) 384 386 387
Store 343(i16v) 388
389: 193(ivec3) Load 356(u16v)
390: 36(int) Load 358(u16)
391: 36(int) SNegate 390
392: 36(int) Load 358(u16)
393: 193(ivec3) CompositeConstruct 391 391 391
394: 193(ivec3) CompositeConstruct 392 392 392
395: 193(ivec3) ExtInst 1(GLSL.std.450) 44(UClamp) 389 393 394
Store 356(u16v) 395
396: 193(ivec3) Load 356(u16v)
397: 193(ivec3) Load 356(u16v)
398: 193(ivec3) SNegate 397
399: 193(ivec3) Load 356(u16v)
400: 193(ivec3) ExtInst 1(GLSL.std.450) 44(UClamp) 396 398 399
Store 356(u16v) 400
401: 15(ptr) AccessChain 343(i16v) 282
402: 14(int) Load 401
403: 15(ptr) AccessChain 343(i16v) 264
404: 14(int) Load 403
405: 15(ptr) AccessChain 345(i16v) 264
406: 14(int) Load 405
408: 14(int) Select 407 406 404
Store 348(i16) 408
409: 14(int) Load 348(i16)
410: 52(ivec2) CompositeConstruct 409 409
411: 14(int) Load 348(i16)
412: 14(int) SNegate 411
413: 52(ivec2) CompositeConstruct 412 412
416: 52(ivec2) Select 415 413 410
Store 345(i16v) 416
417: 37(ptr) AccessChain 358(u16v) 284
406: 14(int) Select 405 404 402
Store 346(i16) 406
407: 14(int) Load 346(i16)
408: 52(ivec2) CompositeConstruct 407 407
409: 14(int) Load 346(i16)
410: 14(int) SNegate 409
411: 52(ivec2) CompositeConstruct 410 410
414: 52(ivec2) Select 413 411 408
Store 343(i16v) 414
415: 37(ptr) AccessChain 356(u16v) 282
416: 36(int) Load 415
417: 37(ptr) AccessChain 356(u16v) 264
418: 36(int) Load 417
419: 37(ptr) AccessChain 358(u16v) 264
420: 36(int) Load 419
421: 36(int) Select 407 420 418
Store 360(u16) 421
422: 36(int) Load 360(u16)
423: 193(ivec3) CompositeConstruct 422 422 422
424: 36(int) Load 360(u16)
425: 36(int) SNegate 424
426: 193(ivec3) CompositeConstruct 425 425 425
429: 193(ivec3) Select 428 426 423
Store 358(u16v) 429
431: 52(ivec2) Load 345(i16v)
432: 27(int) Bitcast 431
Store 430(i32) 432
437: 434(ivec4) Load 436(i16v4)
438: 71(int) Bitcast 437
Store 433(i64) 438
441: 57(ivec2) Load 440(u16v2)
442: 17(int) Bitcast 441
Store 439(u32) 442
448: 445(ivec4) Load 447(u16v4)
449: 77(int) Bitcast 448
Store 444(u64) 449
450: 27(int) Load 430(i32)
451: 52(ivec2) Bitcast 450
Store 345(i16v) 451
452: 71(int) Load 433(i64)
453: 434(ivec4) Bitcast 452
Store 436(i16v4) 453
454: 17(int) Load 439(u32)
455: 57(ivec2) Bitcast 454
Store 440(u16v2) 455
456: 77(int) Load 444(u64)
457: 445(ivec4) Bitcast 456
Store 447(u16v4) 457
460: 193(ivec3) Load 358(u16v)
461: 36(int) Load 360(u16)
462: 193(ivec3) CompositeConstruct 461 461 461
463: 427(bvec3) ULessThan 460 462
Store 459(bv) 463
464: 52(ivec2) Load 345(i16v)
465: 14(int) Load 348(i16)
466: 52(ivec2) CompositeConstruct 465 465
467: 174(bvec2) SLessThan 464 466
468: 427(bvec3) Load 459(bv)
469: 427(bvec3) VectorShuffle 468 467 3 4 2
Store 459(bv) 469
470: 193(ivec3) Load 358(u16v)
471: 36(int) Load 360(u16)
472: 193(ivec3) CompositeConstruct 471 471 471
473: 427(bvec3) ULessThanEqual 470 472
Store 459(bv) 473
474: 52(ivec2) Load 345(i16v)
475: 14(int) Load 348(i16)
476: 52(ivec2) CompositeConstruct 475 475
477: 174(bvec2) SLessThanEqual 474 476
478: 427(bvec3) Load 459(bv)
479: 427(bvec3) VectorShuffle 478 477 3 4 2
Store 459(bv) 479
480: 193(ivec3) Load 358(u16v)
481: 36(int) Load 360(u16)
482: 193(ivec3) CompositeConstruct 481 481 481
483: 427(bvec3) UGreaterThan 480 482
Store 459(bv) 483
484: 52(ivec2) Load 345(i16v)
485: 14(int) Load 348(i16)
486: 52(ivec2) CompositeConstruct 485 485
487: 174(bvec2) SGreaterThan 484 486
488: 427(bvec3) Load 459(bv)
489: 427(bvec3) VectorShuffle 488 487 3 4 2
Store 459(bv) 489
490: 193(ivec3) Load 358(u16v)
491: 36(int) Load 360(u16)
492: 193(ivec3) CompositeConstruct 491 491 491
493: 427(bvec3) UGreaterThanEqual 490 492
Store 459(bv) 493
494: 52(ivec2) Load 345(i16v)
495: 14(int) Load 348(i16)
496: 52(ivec2) CompositeConstruct 495 495
497: 174(bvec2) SGreaterThanEqual 494 496
498: 427(bvec3) Load 459(bv)
499: 427(bvec3) VectorShuffle 498 497 3 4 2
Store 459(bv) 499
500: 193(ivec3) Load 358(u16v)
501: 36(int) Load 360(u16)
502: 193(ivec3) CompositeConstruct 501 501 501
503: 427(bvec3) IEqual 500 502
Store 459(bv) 503
504: 52(ivec2) Load 345(i16v)
505: 14(int) Load 348(i16)
506: 52(ivec2) CompositeConstruct 505 505
507: 174(bvec2) IEqual 504 506
508: 427(bvec3) Load 459(bv)
509: 427(bvec3) VectorShuffle 508 507 3 4 2
Store 459(bv) 509
510: 193(ivec3) Load 358(u16v)
511: 36(int) Load 360(u16)
512: 193(ivec3) CompositeConstruct 511 511 511
513: 427(bvec3) INotEqual 510 512
Store 459(bv) 513
514: 52(ivec2) Load 345(i16v)
515: 14(int) Load 348(i16)
516: 52(ivec2) CompositeConstruct 515 515
517: 174(bvec2) INotEqual 514 516
518: 427(bvec3) Load 459(bv)
519: 427(bvec3) VectorShuffle 518 517 3 4 2
Store 459(bv) 519
419: 36(int) Select 405 418 416
Store 358(u16) 419
420: 36(int) Load 358(u16)
421: 193(ivec3) CompositeConstruct 420 420 420
422: 36(int) Load 358(u16)
423: 36(int) SNegate 422
424: 193(ivec3) CompositeConstruct 423 423 423
427: 193(ivec3) Select 426 424 421
Store 356(u16v) 427
429: 52(ivec2) Load 343(i16v)
430: 27(int) Bitcast 429
Store 428(i32) 430
435: 432(ivec4) Load 434(i16v4)
436: 71(int) Bitcast 435
Store 431(i64) 436
439: 57(ivec2) Load 438(u16v2)
440: 17(int) Bitcast 439
Store 437(u32) 440
446: 443(ivec4) Load 445(u16v4)
447: 77(int) Bitcast 446
Store 442(u64) 447
448: 27(int) Load 428(i32)
449: 52(ivec2) Bitcast 448
Store 343(i16v) 449
450: 71(int) Load 431(i64)
451: 432(ivec4) Bitcast 450
Store 434(i16v4) 451
452: 17(int) Load 437(u32)
453: 57(ivec2) Bitcast 452
Store 438(u16v2) 453
454: 77(int) Load 442(u64)
455: 443(ivec4) Bitcast 454
Store 445(u16v4) 455
458: 193(ivec3) Load 356(u16v)
459: 36(int) Load 358(u16)
460: 193(ivec3) CompositeConstruct 459 459 459
461: 425(bvec3) ULessThan 458 460
Store 457(bv) 461
462: 52(ivec2) Load 343(i16v)
463: 14(int) Load 346(i16)
464: 52(ivec2) CompositeConstruct 463 463
465: 174(bvec2) SLessThan 462 464
466: 425(bvec3) Load 457(bv)
467: 425(bvec3) VectorShuffle 466 465 3 4 2
Store 457(bv) 467
468: 193(ivec3) Load 356(u16v)
469: 36(int) Load 358(u16)
470: 193(ivec3) CompositeConstruct 469 469 469
471: 425(bvec3) ULessThanEqual 468 470
Store 457(bv) 471
472: 52(ivec2) Load 343(i16v)
473: 14(int) Load 346(i16)
474: 52(ivec2) CompositeConstruct 473 473
475: 174(bvec2) SLessThanEqual 472 474
476: 425(bvec3) Load 457(bv)
477: 425(bvec3) VectorShuffle 476 475 3 4 2
Store 457(bv) 477
478: 193(ivec3) Load 356(u16v)
479: 36(int) Load 358(u16)
480: 193(ivec3) CompositeConstruct 479 479 479
481: 425(bvec3) UGreaterThan 478 480
Store 457(bv) 481
482: 52(ivec2) Load 343(i16v)
483: 14(int) Load 346(i16)
484: 52(ivec2) CompositeConstruct 483 483
485: 174(bvec2) SGreaterThan 482 484
486: 425(bvec3) Load 457(bv)
487: 425(bvec3) VectorShuffle 486 485 3 4 2
Store 457(bv) 487
488: 193(ivec3) Load 356(u16v)
489: 36(int) Load 358(u16)
490: 193(ivec3) CompositeConstruct 489 489 489
491: 425(bvec3) UGreaterThanEqual 488 490
Store 457(bv) 491
492: 52(ivec2) Load 343(i16v)
493: 14(int) Load 346(i16)
494: 52(ivec2) CompositeConstruct 493 493
495: 174(bvec2) SGreaterThanEqual 492 494
496: 425(bvec3) Load 457(bv)
497: 425(bvec3) VectorShuffle 496 495 3 4 2
Store 457(bv) 497
498: 193(ivec3) Load 356(u16v)
499: 36(int) Load 358(u16)
500: 193(ivec3) CompositeConstruct 499 499 499
501: 425(bvec3) IEqual 498 500
Store 457(bv) 501
502: 52(ivec2) Load 343(i16v)
503: 14(int) Load 346(i16)
504: 52(ivec2) CompositeConstruct 503 503
505: 174(bvec2) IEqual 502 504
506: 425(bvec3) Load 457(bv)
507: 425(bvec3) VectorShuffle 506 505 3 4 2
Store 457(bv) 507
508: 193(ivec3) Load 356(u16v)
509: 36(int) Load 358(u16)
510: 193(ivec3) CompositeConstruct 509 509 509
511: 425(bvec3) INotEqual 508 510
Store 457(bv) 511
512: 52(ivec2) Load 343(i16v)
513: 14(int) Load 346(i16)
514: 52(ivec2) CompositeConstruct 513 513
515: 174(bvec2) INotEqual 512 514
516: 425(bvec3) Load 457(bv)
517: 425(bvec3) VectorShuffle 516 515 3 4 2
Store 457(bv) 517
Return
FunctionEnd